Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26013 - nmap 3.30 fails to merge
Summary: nmap 3.30 fails to merge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-05 19:58 UTC by Chris Gianelloni (RETIRED)
Modified: 2003-08-06 07:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gianelloni (RETIRED) gentoo-dev 2003-08-05 19:58:27 UTC
When trying to upgrade nmap to newest portage version, nmap fails to build with
an error.

gcc -march=athlon-mp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-falign-labels=1 -falign-jumps=16 -falign-loops=16 -falign-functions=64
-fmerge-all-constants -fforce-addr -ffast-math -foptimize-register-move
-frename-registers -mfpmath=sse,387 -mno-push-args -mno-align-stringops
-maccumulate-outgoing-args -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.30\" -DHAVE_CONFIG_H=1 -I.    -c
nmapfe_error.c
gcc -march=athlon-mp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-falign-labels=1 -falign-jumps=16 -falign-loops=16 -falign-functions=64
-fmerge-all-constants -fforce-addr -ffast-math -foptimize-register-move
-frename-registers -mfpmath=sse,387 -mno-push-args -mno-align-stringops
-maccumulate-outgoing-args -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.30\" -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
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lnbase
collect2: ld returned 1 exit status

FEATURES="-ccache -distcc" emerge nmap WORKS...

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gaming-r3 i686 AMD Athlon(tm) MP 2200+
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/
http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/
ftp://ftp.gtlib.cc.gatech.edu/pub/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 3dnow avi cdr crypt dvd encode esd gd gif gnome gtk gtk2 gtkhtml ipv6
java jpeg ldap libwww mmx mpeg ncurses oggvorbis opengl oss pam pdflib perl pic
png python quicktime readline spell sse ssl tcltk tcpd tiff truetype xml2 xmms
xv zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-falign-labels=1 -falign-jumps=16 -falign-loops=16 -falign-functions=64
-fmerge-all-constants -fforce-addr -ffast-math -foptimize-register-move
-frename-registers -mfpmath=sse,387 -mno-push-args -mno-align-stringops
-maccumulate-outgoing-args"
CXXFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-falign-labels=1 -falign-jumps=16 -falign-loops=16 -falign-functions=64
-fmerge-all-constants -fforce-addr -ffast-math -foptimize-register-move
-frename-registers -mfpmath=sse,387 -mno-push-args -mno-align-stringops
-maccumulate-outgoing-args"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j4"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache distcc cvs notitles userpriv"
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-08-06 01:13:55 UTC
Could you retry with ccache/distcc but set MAKEOPTS to "-j1"? Looks more like a parallel make problem.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2003-08-06 04:52:06 UTC
It builds with make -j4 without ccache and distcc.  I can try with -j1, but this machine doesn't have ccache merged (no drive space for it) and it only has localhost in DISTCC_HOSTS.  It builds perfectly with MAKEOPTS="-j1".  I don't think it is so much a parallel make problem as a parallel make + distcc problem.  I am running sys-devel/distcc-2.8-r2 in case that matters.
Comment 3 Lisa Seelye (RETIRED) gentoo-dev 2003-08-06 05:57:44 UTC
This works for me with distcc-2.8-r2, and -2.9.  I have an athlon (non SMP) but your CFLAGS worked for me, too, with no error.

It seems you are not the only problem missing the nbench library: http://www.google.com/search?q=lnbase&num=100

Find that library and I think you'll be okay.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2003-08-06 07:11:19 UTC
Well, like I said, it worked perfectly after turning off distcc.  Also, nbase is provided by nmap itself.  So it is definitely some combination of distcc/parallel make causing it.  In any case, I have resolved the problem by simply not using distcc.  Also, I can't seem to duplicate the problem.  Even using distcc, it now merges correctly, even if I completely remove nmap from my system.  Go figure...
Comment 5 Lisa Seelye (RETIRED) gentoo-dev 2003-08-06 07:17:16 UTC
then i guess its a non issue...  if it crops up again, repoen