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. Fix: #include <cc++/config.h> +#include <net/if.h> #include "nat.h" #ifdef CCXX_NAT--cDuCbQILfLOSc1nsrxueDvYEhipUI8Rwe9SPNQXbrMS6wgN8 Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- 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 @@ **/ 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}
Responsible Changed From-To: freebsd-ports-bugs->acm Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed - Committed thanks!!
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"