From nobody@FreeBSD.org  Tue Feb 26 03:03:31 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 79F624C7
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 03:03:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 48EE4924
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 03:03:31 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1Q33Vw8061003
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Feb 2013 03:03:31 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r1Q33VFn061002;
	Tue, 26 Feb 2013 03:03:31 GMT
	(envelope-from nobody)
Message-Id: <201302260303.r1Q33VFn061002@red.freebsd.org>
Date: Tue, 26 Feb 2013 03:03:31 GMT
From: Han Hwei Woo <han+freebsd@astutehosting.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/commoncpp fails to compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176434
>Category:       ports
>Synopsis:       devel/commoncpp fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    acm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 26 03:10:00 UTC 2013
>Closed-Date:    Sun Mar 24 04:53:49 UTC 2013
>Last-Modified:  Sun Mar 24 05:00:00 UTC 2013
>Originator:     Han Hwei Woo
>Release:        9.1-RELEASE
>Organization:
Astute Hosting Incorporated
>Environment:
FreeBSD packages 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
devel/commoncpp fails to compile due to missing IFNAMSIZ being undefined, with the following error:

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I/usr/local/include -I../src -DCCXX_EXPORT_LIBRARY -D_THREAD_SAFE -D_GNU_SOURCE -I/usr/local/include -I../inc -O2 -pipe -fno-strict-aliasing -MT nat.lo -MD -MP -MF .deps/nat.Tpo -c nat.cpp  -fPIC -DPIC -o .libs/nat.o
In file included from /usr/include/netinet/ip_compat.h:929,
                 from nat.cpp:88:
/usr/include/net/if_var.h:125: error: 'IFNAMSIZ' was not declared in this scope
/usr/include/net/if_var.h:151: error: field 'if_data' has incomplete type
/usr/include/net/if_var.h:718: error: field 'if_data' has incomplete type
gmake[2]: *** [nat.lo] Error 1
gmake[2]: Leaving directory `/var/ports/basejail/usr/ports/devel/commoncpp/work/commoncpp2-1.8.1/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/ports/basejail/usr/ports/devel/commoncpp/work/commoncpp2-1.8.1'
gmake: *** [all] Error 2
*** Error code 1

Stop in /basejail/usr/ports/devel/commoncpp.

>How-To-Repeat:
Try to compile devel/commoncpp currently in ports.

# New ports collection makefile for:    CommonC++
# Date created:                         25 July 2000
# Whom:                                 David Sugar <dyfet@gnu.org>
#
# $FreeBSD: ports/devel/commoncpp/Makefile,v 1.43 2013/02/14 10:22:06 svnexp Exp $
#

PORTNAME=       commoncpp
PORTVERSION=    1.8.1
PORTEPOCH=      2
CATEGORIES=     devel
MASTER_SITES=   GNU
DISTNAME=       ${PORTNAME:S/$/2/}-${PORTVERSION}

>Fix:
--- nat.cpp     2010-10-31 17:19:55.000000000 -0700
+++ nat.cpp.new 2013-02-25 18:49:26.603131885 -0800
@@ -42,6 +42,7 @@
  **/

 #include <cc++/config.h>
+#include <net/if.h>
 #include "nat.h"

 #ifdef CCXX_NAT

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->acm 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 26 03:10:12 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176434 
State-Changed-From-To: open->closed 
State-Changed-By: acm 
State-Changed-When: Sun Mar 24 04:53:34 UTC 2013 
State-Changed-Why:  
- Committed thanks!! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176434 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/176434: commit references a PR
Date: Sun, 24 Mar 2013 04:53:35 +0000 (UTC)

 Author: acm
 Date: Sun Mar 24 04:53:22 2013
 New Revision: 315095
 URL: http://svnweb.freebsd.org/changeset/ports/315095
 
 Log:
   - Add missing header to src/nat.cpp file
   
   PR:		ports/176434
   Submitted by:	Han Hwei Woo <han+freebsd  at  astutehosting.com>
 
 Added:
   head/devel/commoncpp/files/patch-src_nat.cpp   (contents, props changed)
 Modified:
   head/devel/commoncpp/Makefile
 
 Modified: head/devel/commoncpp/Makefile
 ==============================================================================
 --- head/devel/commoncpp/Makefile	Sun Mar 24 04:42:13 2013	(r315094)
 +++ head/devel/commoncpp/Makefile	Sun Mar 24 04:53:22 2013	(r315095)
 @@ -7,6 +7,7 @@
  
  PORTNAME=	commoncpp
  PORTVERSION=	1.8.1
 +PORTREVISION=	1
  PORTEPOCH=	2
  CATEGORIES=	devel
  MASTER_SITES=	GNU
 
 Added: head/devel/commoncpp/files/patch-src_nat.cpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/devel/commoncpp/files/patch-src_nat.cpp	Sun Mar 24 04:53:22 2013	(r315095)
 @@ -0,0 +1,10 @@
 +--- src/nat.cpp	2013-03-23 23:47:39.000000000 -0500
 ++++ src/nat.cpp	2013-03-23 23:47:54.000000000 -0500
 +@@ -42,6 +42,7 @@
 +  **/
 + 
 + #include <cc++/config.h>
 ++#include <net/if.h>
 + #include "nat.h"
 + 
 + #ifdef CCXX_NAT
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
