portmap fails to compile doing an 'emerge portmap' with the following error: gcc -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -Wall -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe -o portmap portmap.o pmap_check.o from_local.o /usr/lib/libwrap.a -lwrap -lutil portmap.o(.text+0xe3): In function `main': : undefined reference to `errno' collect2: ld returned 1 exit status make: *** [portmap] Error 1 !!! ERROR: net-nds/portmap-5b-r6 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. Run 'emerge portmap' 2. 3. Actual Results: despair:~ # emerge --resume *** Resuming merge... >>> emerge (1 of 1) net-nds/portmap-5b-r6 to / >>> md5 src_uri ;-) portmap_5beta.tar.gz >>> Unpacking source... >>> Unpacking portmap_5beta.tar.gz to /var/tmp/portage/portmap-5b-r6/work * Applying portmap_5beta.dif... [ ok ] >>> Source unpacked. gcc -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -Wall -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe -c -o portmap.o portmap.c portmap.c:152: warning: return type defaults to `int' portmap.c: In function `main': portmap.c:161: warning: implicit declaration of function `getopt' portmap.c:180: warning: implicit declaration of function `daemon' portmap.c: In function `reg_service': portmap.c:352: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type portmap.c:361: warning: passing arg 2 of pointer to function from incompatible pointer type portmap.c:361: warning: passing arg 3 of pointer to function from incompatible pointer type portmap.c:403: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type portmap.c:415: warning: passing arg 2 of pointer to function from incompatible pointer type portmap.c:415: warning: passing arg 3 of pointer to function from incompatible pointer type portmap.c:449: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type portmap.c:461: warning: passing arg 2 of pointer to function from incompatible pointer type portmap.c:461: warning: passing arg 3 of pointer to function from incompatible pointer type portmap.c:476: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type portmap.c:488: warning: passing arg 2 of pointer to function from incompatible pointer type portmap.c:500: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type portmap.c: In function `callit': portmap.c:647: warning: passing arg 2 of pointer to function from incompatible pointer type portmap.c:647: warning: passing arg 3 of pointer to function from incompatible pointer type portmap.c:660: warning: implicit declaration of function `fork' portmap.c:677: warning: passing arg 3 of pointer to function from incompatible pointer type portmap.c:677: warning: passing arg 4 of pointer to function from incompatible pointer type portmap.c:677: warning: passing arg 5 of pointer to function from incompatible pointer type portmap.c:677: warning: passing arg 6 of pointer to function from incompatible pointer type portmap.c:678: warning: passing arg 2 of `svc_sendreply' from incompatible pointer type portmap.c:683: warning: implicit declaration of function `close' portmap.c: At top level: portmap.c:41: warning: `sccsid' defined but not used gcc -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -Wall -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe -c -o pmap_check.o pmap_check.c pmap_check.c: In function `check_startup': pmap_check.c:104: warning: implicit declaration of function `setuid' pmap_check.c: At top level: pmap_check.c:114: warning: return type defaults to `int' pmap_check.c: In function `check_default': pmap_check.c:119: warning: implicit declaration of function `hosts_ctl' pmap_check.c: At top level: pmap_check.c:132: warning: return type defaults to `int' pmap_check.c:177: warning: return type defaults to `int' pmap_check.c:201: warning: return type defaults to `int' pmap_check.c: In function `logit': pmap_check.c:252: warning: missing braces around initializer pmap_check.c:252: warning: (near initialization for `procmap[0]') pmap_check.c:266: warning: implicit declaration of function `fork' pmap_check.c:272: warning: suggest parentheses around assignment used as truth value pmap_check.c: At top level: pmap_check.c:36: warning: `sccsid' defined but not used gcc -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -Wall -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe -c -o from_local.o from_local.c from_local.c: In function `grow_addrs': from_local.c:88: warning: implicit declaration of function `memcpy' from_local.c: At top level: from_local.c:101: warning: return type defaults to `int' from_local.c: In function `find_local': from_local.c:122: warning: implicit declaration of function `close' from_local.c: At top level: from_local.c:159: warning: return type defaults to `int' from_local.c: In function `from_local': from_local.c:167: warning: implicit declaration of function `memcmp' from_local.c: At top level: from_local.c:39: warning: `sccsid' defined but not used gcc -Dperror=xperror -DHOSTS_ACCESS -DCHECK_PORT -DFACILITY=LOG_AUTH -DIGNORE_SIGCHLD -Wall -mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -pipe -o portmap portmap.o pmap_check.o from_local.o /usr/lib/libwrap.a -lwrap -lutil portmap.o(.text+0xe3): In function `main': : undefined reference to `errno' collect2: ld returned 1 exit status make: *** [portmap] Error 1 !!! ERROR: net-nds/portmap-5b-r6 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) Expected Results: It should have compiled ;-). Adding a #include <sys/errno.h> line in portmap.c fixes the problem. despair:~ # emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP GENTOO_MIRRORS="ftp://166.70.163.179/system/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm arts avi crypt cups encode gif imlib java jpeg kde gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis pdflib png qt quicktime sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline X gpm tcpd pam ssl perl python esd gtk opengl" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Sorry, already fixed in r7.
closing with comment #1