Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236177 - dev-cpp/commoncpp2-1.6.2 fails to build with nat.cpp compliation error
Summary: dev-cpp/commoncpp2-1.6.2 fails to build with nat.cpp compliation error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 8 votes (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
: 240152 254459 (view as bug list)
Depends on:
Blocks: 252645
  Show dependency tree
 
Reported: 2008-08-30 07:11 UTC by Fabio Coatti
Modified: 2009-03-07 20:02 UTC (History)
17 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
1.6.2-configure_detect_netfilter.patch (1.6.2-configure_detect_netfilter.patch,482 bytes, patch)
2008-11-16 14:38 UTC, Aurélien Francillon
Details | Diff
commoncpp2-1.6.2.ebuild (commoncpp2-1.6.2.ebuild,1.97 KB, text/plain)
2008-11-16 14:40 UTC, Aurélien Francillon
Details
commoncpp2-1.6.3.ebuild (commoncpp2-1.6.3.ebuild,3.30 KB, text/plain)
2009-01-02 20:29 UTC, tzopik
Details
commoncpp2-1.7.0.ebuild (commoncpp2-1.7.0.ebuild,3.53 KB, text/plain)
2009-01-02 20:29 UTC, tzopik
Details
commoncpp2-9999.ebuild (commoncpp2-9999.ebuild,3.53 KB, text/plain)
2009-01-02 20:30 UTC, tzopik
Details
9999-configure_detect_netfilter.patch (9999-configure_detect_netfilter.patch,483 bytes, patch)
2009-01-02 20:31 UTC, tzopik
Details | Diff
1.6.1-gcc42_atomicity.patch (1.6.1-gcc42_atomicity.patch,2.09 KB, patch)
2009-01-02 20:33 UTC, tzopik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2008-08-30 07:11:46 UTC
Emerge of dev-cpp/commoncpp2-1.6.2 fails with this error:
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=native -mtune=native -O3 -msse4a -mabm -pipe -MT nat.lo -MD -MP -MF .deps/nat.Tpo -c nat.cpp  -fPIC -DPIC -o .libs/nat.o
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp:154: warning: deprecated conversion from string constant to ‘char*’
nat.cpp: In function ‘ost::natResult ost::natv4Lookup(ost::SOCKET, sockaddr_in*)’:
nat.cpp:167: error: ‘SO_ORIGINAL_DST’ was not declared in this scope
make[2]: *** [nat.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-cpp/commoncpp2-1.6.2/work/commoncpp2-1.6.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-cpp/commoncpp2-1.6.2/work/commoncpp2-1.6.2'
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1.emerge commoncpp2


Actual Results:  
commoncpp2 is not compiled


Expected Results:  
commoncpp2 installed

emerge --info
Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26.3 x86_64)
=================================================================
System uname: Linux-2.6.26.3-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Sat, 30 Aug 2008 06:01:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O3 -msse4a -mabm -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -mtune=native -O3 -msse4a -mabm -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ "
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/250/workspace/gentoo/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac aalib acl acpi aim alsa amd64 apache2 ares asf audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 cairo cdparanoia cdr cjk cli cracklib crypt cups curl dba dbus dga directfb divx divx4linux dri dv dvb dvd dvdr dvdread edl eds emboss encode esd ethereal evo exif expat faad fam fame fbcon ffmpeg fftw firefox flac force-cgi-redirect fortran ftp garmin gd gdbm gif gimp gmedia gmp gnome gnutls gphoto2 gpm gstreamer gtk hal iconv icq idn ifp imagemagick imap innodb ipod ipv6 isdnlog ithreads jabber jack java javascript jpeg kde kerberos lcms ldap libcaca libnotify live lm_sensors loop-aes lua lzo mad maildir mbox mdnsresponder-compat mhash midi mikmod mime mjpeg mmap mmx mmxext mng mozdevelop mozilla mp3 mp4 mpeg msn mtp mudflap multilib mysql ncurses network nfsv4 njb nls nptl nptlonly nsplugin nvidia offensive ofx ogg oggvorbis openal openexr opengl openmp oscar pam pcre pdf perl php plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtc ruby samba sasl sdl session slang slp sndfile snmp sox speex spell spl sse sse2 sse3 sse4a ssl startup-notification svg symlink sysfs tcltk tcpd theora threads tiff tk truetype udev unicode usb utempter v4l v4l2 vcd vhosts videos vorbis wmf wmp wxwindows xanim xface xft xine xml xorg xosd xpm xsl xulrunner xv xvid xvmc yahoo zlib zpm" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 PhobosK 2008-08-30 16:36:19 UTC
I do not have the time to go through debugging all this but what will help you very fast is if you add these two lines in: /usr/include/linux/netfilter.h

#include <linux/in.h>
#include <linux/in6.h>


Do it just under:
#include <linux/types.h>

then just emerge.....

I leave fixing it to whomever it concerns :P
(as a reference use: http://www.mail-archive.com/debian-kernel%40lists.debian.org/msg36709.html)
Comment 2 Kamil Laskowski 2008-08-30 17:34:22 UTC
> #include <linux/in.h>
> #include <linux/in6.h>
> 
> 
> Do it just under:
> #include <linux/types.h>

Solved this problem on ~x86 :)
Thanks.
Comment 3 Denis Pesotsky 2008-09-05 04:49:14 UTC
Thanks, PhobosK, it solved problem!
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2008-10-05 23:52:45 UTC
*** Bug 240152 has been marked as a duplicate of this bug. ***
Comment 5 Joost Ruis 2008-10-20 10:55:00 UTC
(In reply to comment #1)
> I do not have the time to go through debugging all this but what will help you
> very fast is if you add these two lines in: /usr/include/linux/netfilter.h
> 
> #include <linux/in.h>
> #include <linux/in6.h>
> 
> 
> Do it just under:
> #include <linux/types.h>
> 
> then just emerge.....
> 
> I leave fixing it to whomever it concerns :P
> (as a reference use:
> http://www.mail-archive.com/debian-kernel%40lists.debian.org/msg36709.html)
> 

That fixed the same problem for me too.
Comment 6 Jeremy Murphy 2008-10-27 06:39:50 UTC
If you prefer to avoid modifying your system header files, you can alternatively insert this line:

#include <linux/netfilter_ipv4.h>

at nat.cpp:120.  Cheers.
Comment 7 Aurélien Francillon 2008-11-16 14:36:19 UTC
(In reply to comment #6)
> If you prefer to avoid modifying your system header files, you can
> alternatively insert this line:
> 
> #include <linux/netfilter_ipv4.h>
> 
> at nat.cpp:120.  Cheers.

this should be included automagically, the root of the problem is that
configure fails to detect it properly. Configure fails with :
=======================================================================
configure:30184: checking for linux/netfilter_ipv4.h
configure:30207: x86_64-pc-linux-gnu-g++ -c -Os -march=x86-64 -pipe  conftest.cpp >&5
In file included from /usr/include/linux/netfilter_ipv4.h:8,
                 from conftest.cpp:107:
/usr/include/linux/netfilter.h:45: error: field 'in' has incomplete type
/usr/include/linux/netfilter.h:46: error: field 'in6' has incomplete type
configure:30214: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define PACKAGE "commoncpp2"
| #define VERSION "1.6.2"
| #define HAVE_UNISTD_H 1
| #define HAVE_FEATURES_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_FCNTL_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_BITS_WORDSIZE_H 1
| #define HAVE_SYS_TYPES_STD 1
| #define HAVE_SYS_TYPES_64 1
| #define HAVE_LONG_LONG 1
| #define HAVE_ENDIAN_H 1
| #define HAVE_SIGACTION 1
| #define HAVE_SETITIMER 1
| #define HAVE_SIGWAIT 1
| #define RETSIGTYPE void
| #define HAVE_SIGWAIT2 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRINGS_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_GETOPT 1
| #define HAVE_GETOPT 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_DLFCN_H 1
| #define HAVE_MODULES 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_EXT_ATOMICITY_H 1
| #define HAVE_GCC_CXX_BITS_ATOMIC 1
| #define HAVE_PTHREAD_NANOSLEEP 1
| #define HAVE_HIRES_TIMER 1
| #define HAVE_MLOCK 1
| #define HAVE_MLOCKALL 1
| #define HAVE_SEMAPHORE_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SCHED_GETSCHEDULER 1
| #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
| #define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1
| #define HAVE_PTHREAD_RWLOCK 1
| #define HAVE_PREAD_PWRITE 1
| #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
| #define HAVE_PTHREAD_YIELD 1
| #define HAVE_PTHREAD_CANCEL 1
| #define HAVE_PTHREAD_SETCANCELTYPE 1
| #define HAVE_SETENV 1
| #define HAVE_STRTOK_R 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_READDIR_R 1
| #define HAVE_STRERROR_R 1
| #define HAVE_GETPWUID_R 1
| #define HAVE_GETPWNAM_R 1
| #define HAVE_GETGRNAM_R 1
| #define HAVE_POLL_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL 1
| #define HAVE_NET_IF_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| #define HAVE_NETINET_IP_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_GETADDRINFO 1
| #define HAVE_INET_SOCKETS 1
| #define HAVE_INET_ATON 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_ERRNO_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_NET_IF_H 1
| /* end confdefs.h.  */
| #ifdef HAVE_LIMITS_H
| 					#include <limits.h>
| 					#endif
| 
| #include <linux/netfilter_ipv4.h>
configure:30231: result: no
============================================================================

IMHO, a clean solution is to fix configure itself, the check is generated from the file m4/ost_socket.m4 I propose to fix the problem from there to make netfilter_ipv4.h beeing correctely detected ...
once it's detected the build is working correctely...

Comment 8 Aurélien Francillon 2008-11-16 14:38:13 UTC
Created attachment 171983 [details, diff]
1.6.2-configure_detect_netfilter.patch

patch to m4/ost_socket.m4 to detect correctely linux/netfilter_ipv4/6.h includes
Comment 9 Aurélien Francillon 2008-11-16 14:40:14 UTC
Created attachment 171985 [details]
commoncpp2-1.6.2.ebuild

updated ebuild , diff  :
--- /usr/portage/dev-cpp/commoncpp2/commoncpp2-1.6.2.ebuild     2008-05-07 07:32:39.000000000 +0200
+++ commoncpp2-1.6.2.ebuild     2008-11-16 15:32:32.000000000 +0100
@@ -24,7 +24,8 @@
        cd "${S}"

        epatch "${FILESDIR}/1.6.1-gcc42_atomicity.patch" \
-               "${FILESDIR}/${PV}-autoconf.patch"
+               "${FILESDIR}/${PV}-autoconf.patch" \
+               "${FILESDIR}/${PV}-configure_detect_netfilter.patch"
        AT_M4DIR="m4" eautoreconf
 }
Comment 10 Santiago Gala 2008-12-01 12:17:09 UTC
/me too
Comment 11 Sascha Cunz 2008-12-22 15:37:53 UTC
problem applies to stable version 1.6.1, too.
Comment 12 Hans Meier 2008-12-30 16:11:36 UTC
This Problem applies to stable version 1.6.2, too.

nat.cpp: In function 'ost::natResult ost::natv4Lookup(ost::SOCKET, sockaddr_in*)':
nat.cpp:167: error: 'SO_ORIGINAL_DST' was not declared in this scope
make[2]: *** [nat.lo] Error 1
make[2]: Leaving directory `/var/tmp/paludis/dev-cpp-commoncpp2-1.6.2/work/commoncpp2-1.6.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/dev-cpp-commoncpp2-1.6.2/work/commoncpp2-1.6.2'
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

Comment 13 tzopik 2009-01-02 20:29:05 UTC
Created attachment 177137 [details]
commoncpp2-1.6.3.ebuild
Comment 14 tzopik 2009-01-02 20:29:33 UTC
Created attachment 177139 [details]
commoncpp2-1.7.0.ebuild
Comment 15 tzopik 2009-01-02 20:30:07 UTC
Created attachment 177141 [details]
commoncpp2-9999.ebuild
Comment 16 tzopik 2009-01-02 20:31:10 UTC
Created attachment 177143 [details, diff]
9999-configure_detect_netfilter.patch
Comment 17 tzopik 2009-01-02 20:33:11 UTC
Created attachment 177144 [details, diff]
1.6.1-gcc42_atomicity.patch
Comment 18 tzopik 2009-01-02 20:36:12 UTC
i make this ebuilds and it compile fine in 2.6.28-gentoo
the patches used is http://bugs.gentoo.org/show_bug.cgi?id=236177#c9 from Aurélien Francillon and the other is from portage tree

Comment 19 Raúl Porcel (RETIRED) gentoo-dev 2009-01-06 18:59:26 UTC
This is broken with stable linux-headers...
Comment 20 Chris Ribble 2009-01-09 06:35:35 UTC
I am experiencing the exact same issue on amd64. What gives? Is there any way to fix this w/out modifying the source?

If not, can we please get an official patch in portage?
Comment 21 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-13 04:50:30 UTC
*** Bug 254459 has been marked as a duplicate of this bug. ***
Comment 22 patlatyj 2009-01-26 18:08:22 UTC
Problem still actual.
I have the same problem on 2.6.26-gentoo-r4 kernel.
Comment 23 Sven Wehner 2009-01-30 13:35:02 UTC
First things first: Vote for this bug, if it bothers you!

The configure_detect_netfilter patch by Aurélien Francillon worked for me with an adapted 1.6.1 ebuild. (Thanks!)

I am using tuxonice-sources-2.6.28-r1 and linux-headers-2.6.27-r2 and I tried to install commoncpp2 with no use flag set.
Comment 24 Txukie 2009-02-07 23:13:25 UTC
I confirm this bug on x86_64
Comment 25 Neil Stone 2009-02-11 08:18:30 UTC
Another for amd64 platform..

# emerge --info

Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-glibc2.2.5
Timestamp of tree: Sun, 08 Feb 2009 12:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com           ftp://mirrors.blueyonder.co.uk/mirrors/gentoo           http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/                 ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac aalib acl acpi additions aim alsa amavis amd64 apache2 apm ares arts audiofile avahi avi bash-completion berkdb bidi blender-game bluetooth browser bzip2 bzlib calendar cdda cddb cdparanoia cdr cgi clamav cli corba cpudetection cracklib crypt css cups curl daap dbus dga divx4linux dri dts dv dvb dvd dvdr dvdread emacs emerald encode esd ethereal exif expat extras fam fax fbcon ffmpeg firefox flac flash font-server foomaticdb fortran ftp gcj gd gdbm ggi gif gimp gimpprint glitz gnome gnutls gocr gpm gps gstreamer gtk gtk2 hal hddtemp httpd iconv icq iee1394 ieee1394 imagemagick ipv6 isdnlog jabber java javascript joystick jpeg kde kdehiddenvisibility libcaca live lm_sensors logitech-mouse logrotate matroska mcve mdnsresponder-compat mgetty midi mikmod mime mmx mng mod mozilla mozsvg mp3 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses network network-cron nls nodrm nptl nptlonly nsplugin ntfs nvidia ocrad odk offensive ogg oggvorbis opengl openmp optimisememory osc oscar oss pam passwordsave pcre pda pdf pdflib perl php pic pkcs11 plotutils png postscript ppds pppd python qt3 qt4 quicktime rar rdesktop readline reflection rtsp samba sasl scanner sdl sensord session shout skins slang sndfile sound sox speex spell spl sse sse2 ssl stream subtitles svg symlink sysfs tcltk tcpd tesseract theora threads tidy tiff tk truetype unicode upnp ups usb utf8 v4l v4l2 vcd videos vlm vorbis wmf wxwindows xcomposite xine xinerama xml xorg xosd xpm xscreensaver xv xvid yahoo yv12 zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia v4l nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 26 Neil Stone 2009-02-27 00:08:19 UTC
Any news on this..? it's been hanging around long enough !
Comment 27 Jason Ayres 2009-03-07 02:14:31 UTC
Confirmed, problem still existed on x86.
Using 
1.6.2-configure_detect_netfilter.patch  
commoncpp2-1.6.2.ebuild 
fixed the problem.
Comment 28 coran.fisher@gmail.com 2009-03-07 04:12:27 UTC
This fixed me on amd64, thank you very much.  
Comment 29 Raúl Porcel (RETIRED) gentoo-dev 2009-03-07 14:57:47 UTC
Fixed, thanks Aurélien for the patch.