nmap 3.50-r1 fails to build with distcc, as shown below. ms957g root # emerge nmap -av These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-analyzer/nmap-3.50-r1 -gnome +gtk 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] yes >>> emerge (1 of 1) net-analyzer/nmap-3.50-r1 to / . . . gcc -O2 -march=i686 -pipe -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DPCAP_TIMEOUT_IGNORED=1 -DVERSION=\"3.50\" -DHAVE_CONFIG_H=1 -I. -c nmapfe_error.c nmapfe_error.c: In function `fatal': nmapfe_error.c:95: warning: implicit declaration of function `__builtin_va_start' gcc -O2 -march=i686 -pipe -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -Wall -I../nbase -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DPCAP_TIMEOUT_IGNORED=1 -DVERSION=\"3.50\" -DHAVE_CONFIG_H=1 -I. -L../nbase -o nmapfe nmapfe.o nmapfe_sig.o nmapfe_error.o -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lnbase nmapfe_error.o(.text+0x17): In function `fatal': : undefined reference to `__builtin_va_start' nmapfe_error.o(.text+0x87): In function `error': : undefined reference to `__builtin_va_start' nmapfe_error.o(.text+0xe7): In function `pfatal': : undefined reference to `__builtin_va_start' nmapfe_error.o(.text+0x157): In function `gh_perror': : undefined reference to `__builtin_va_start' collect2: ld returned 1 exit status distcc[2910] ERROR: compile on localhost failed make[1]: *** [nmapfe] Error 1 make[1]: Leaving directory `/var/tmp/portage/nmap-3.50-r1/work/nmap-3.50/nmapfe' make: *** [nmapfe/nmapfe] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-analyzer/nmap-3.50-r1 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) ms957g root # Reproducible: Always Steps to Reproduce: 1. use ~x86 and distcc 2. emerge sync 3. emerge nmap ms957g root # cat /etc/make.conf | egrep "(^USE|^CFLAGS)" USE="X gtk gtk2 oss esd xinerama mozilla avi flac oggvorbis opengl png python samba tiff java jpeg -arts -qt -kde -gnome alsa" CFLAGS="-O2 -march=i686 -pipe"
Sorry, I should have also made it clear that it does work if distcc is disabled.
Does `MAKEOPTS="-j1" emerge nmap` work for you?
Yes, -j1 works.
Ok, thanks, it should be fixed now.