below is log from x86 box, but I get the same failure on amd64... * Package: net-misc/linux-igd-1.0-r2 * Repository: gentoo * Maintainer: gurligebis@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 * FEATURES: sandbox >>> Unpacking source... >>> Unpacking linuxigd-1.0.tar.gz to /var/tmp/portage/net-misc/linux-igd-1.0-r2/work * Applying linux-igd-1.0-build.patch ... [ ok ] >>> Source unpacked in /var/tmp/portage/net-misc/linux-igd-1.0-r2/work >>> Compiling source in /var/tmp/portage/net-misc/linux-igd-1.0-r2/work/linuxigd-1.0 ... make -j3 i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -D_GNU_SOURCE -c -o main.o main.c i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -D_GNU_SOURCE -c -o gatedevice.o gatedevice.c i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -D_GNU_SOURCE -c -o pmlist.o pmlist.c main.c: In function 'main': main.c:39:2: warning: implicit declaration of function 'strcmp' main.c:45:2: warning: implicit declaration of function 'strncpy' main.c:45:2: warning: incompatible implicit declaration of built-in function 'strncpy' pmlist.c: In function 'pmlist_NewNode': pmlist.c:23:2: warning: implicit declaration of function 'strlen' pmlist.c:23:20: warning: incompatible implicit declaration of built-in function 'strlen' pmlist.c:23:2: warning: implicit declaration of function 'strcpy' pmlist.c:23:69: warning: incompatible implicit declaration of built-in function 'strcpy' pmlist.c: In function 'pmlist_Find': pmlist.c:53:3: warning: implicit declaration of function 'strcmp' pmlist.c: In function 'pmlist_AddPortMapping': pmlist.c:260:4: warning: implicit declaration of function 'snprintf' pmlist.c:260:4: warning: incompatible implicit declaration of built-in function 'snprintf' pmlist.c:275:4: warning: incompatible implicit declaration of built-in function 'snprintf' pmlist.c: In function 'pmlist_DeletePortMapping': pmlist.c:312:4: warning: incompatible implicit declaration of built-in function 'snprintf' pmlist.c:329:4: warning: incompatible implicit declaration of built-in function 'snprintf' i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -D_GNU_SOURCE -c -o util.o util.c gatedevice.c: In function 'GetConnectionTypeInfo': gatedevice.c:208:2: warning: implicit declaration of function 'snprintf' gatedevice.c:208:2: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetNATRSIPStatus': gatedevice.c:237:4: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetCommonLinkProperties': gatedevice.c:302:2: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetTotal': gatedevice.c:333:2: error: 'FILE' undeclared (first use in this function) gatedevice.c:333:2: note: each undeclared identifier is reported only once for each function it appears in gatedevice.c:333:8: error: 'proc' undeclared (first use in this function) gatedevice.c:337:2: warning: implicit declaration of function 'fopen' gatedevice.c:340:3: warning: implicit declaration of function 'fprintf' gatedevice.c:340:3: warning: incompatible implicit declaration of built-in function 'fprintf' gatedevice.c:340:11: error: 'stderr' undeclared (first use in this function) gatedevice.c:345:2: warning: implicit declaration of function 'fscanf' gatedevice.c:345:2: warning: incompatible implicit declaration of built-in function 'fscanf' gatedevice.c:350:17: error: 'EOF' undeclared (first use in this function) gatedevice.c:352:2: warning: implicit declaration of function 'fclose' gatedevice.c:354:2: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetStatusInfo': gatedevice.c:385:2: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'AddPortMapping': gatedevice.c:451:4: warning: implicit declaration of function 'sprintf' gatedevice.c:451:4: warning: incompatible implicit declaration of built-in function 'sprintf' gatedevice.c:485:3: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetGenericPortMappingEntry': gatedevice.c:514:4: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c:520:20: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetSpecificPortMappingEntry': gatedevice.c:560:5: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c:571:6: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'GetExternalIPAddress': gatedevice.c:610:4: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'DeletePortMapping': gatedevice.c:653:13: warning: incompatible implicit declaration of built-in function 'sprintf' gatedevice.c:686:7: warning: incompatible implicit declaration of built-in function 'snprintf' gatedevice.c: In function 'ExpireMapping': gatedevice.c:776:3: warning: incompatible implicit declaration of built-in function 'sprintf' make: *** [gatedevice.o] Error 1 make: *** Waiting for unfinished jobs.... emake failed * ERROR: net-misc/linux-igd-1.0-r2 failed (compile phase): * compile failed * * Call stack: * ebuild.sh, line 75: Called src_compile * environment, line 2052: Called die * The specific snippet of code: * emake || die "compile failed" * * If you need support, post the output of 'emerge --info =net-misc/linux-igd-1.0-r2', * the complete build log and the output of 'emerge -pqv =net-misc/linux-igd-1.0-r2'. * The complete build log is located at '/var/tmp/portage/net-misc/linux-igd-1.0-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/linux-igd-1.0-r2/temp/environment'. * S: '/var/tmp/portage/net-misc/linux-igd-1.0-r2/work/linuxigd-1.0' # emerge --info Portage 2.1.10.41 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.14.1-r1, 3.1.5-gentoo i686) ================================================================= System uname: Linux-3.1.5-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.1 Timestamp of tree: Mon, 19 Dec 2011 15:15:01 +0000 app-shells/bash: 4.2_p20 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.7 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1-r1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r1 Repositories: gentoo local ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--buildpkg" FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="-6" 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="/usr/local/portage/local" SYNC="rsync://lithium/gentoo-portage" USE="X acl berkdb bluetooth bzip2 cli cracklib crypt cups cxx dlz dri fortran gdbm gpm gtk iconv ipv6 lm_sensors modules mudflap ncurses nls nptl nptlonly offensive openmp pam pcre perl pppd python readline session ssl sysfs tcpd unicode usb vim-syntax x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi cgid 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 proxy proxy_http proxy_connect" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Upstream is pretty much dead - I suggest switching to net-misc/miniupnpd. I plan on removing linux-igd from the tree soon.
*** Bug 395659 has been marked as a duplicate of this bug. ***