make[1]: Entering directory `/var/tmp/portage/libnids-1.16-r1/work/libnids- 1.16/samples' gcc -c -march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays - ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -D_BSD_SOURCE -D_BSD_SOURCE - D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -I. -I../src - I/usr/include -I/usr/include overflows.c gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays - ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -D_BSD_SOURCE -D_BSD_SOURCE - D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -o overflows overflows.o -L/usr/lib -L/usr/lib -L../src -lnids-1.0 -lpcap -lnet-1.0 -lnsl /usr/lib/libnids-1.0.a(killtcp.o)(.text+0x1f): In function `raw_init': : undefined reference to `libnet_init' /usr/lib/libnids-1.0.a(killtcp.o)(.text+0x158): In function `nids_killtcp': : undefined reference to `libnet_write' /usr/lib/libnids-1.0.a(killtcp.o)(.text+0x259): In function `nids_killtcp': : undefined reference to `libnet_write' collect2: ld returned 1 exit status make[1]: *** [overflows] Error 1 make[1]: Leaving directory `/var/tmp/portage/libnids-1.16-r1/work/libnids- 1.16/samples' make: *** [all] Error 2 !!! ERROR: net-libs/libnids-1.16-r1 failed. !!! Function src_compile, Line 28, Exitcode 2 !!! (no error message) qpkg -I -v libnet net-libs/libnet-1.0.2a-r3 * -rwxr-xr-x 1 root root 42160 Aug 25 01:44 /usr/lib/libnet-1.0.a
You are showing a failed compile for libnids, not for libnet. Could you please try unmerging your old libnids and emerging it then? Seems the linker gets your already installed version /usr/lib/libnids-1.0.a instead of the right one.
I'm showing a failed compile of libnids because that's what the bug is about. Anyway, I unemerge all versions of libnet and libnids and reemerged and it worked.
Sure it was about libnids, but you wrote "libnet fails to compile" in the summary line :-)
"libnids-1.16-r1fails to compile" -> summary line I don't get it...
unmerge und remerged works
shadow: http://bugs.gentoo.org/show_activity.cgi?id=27270 I changed the summary.