Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568462 - =net-analyzer/nmap-7.01 - nmap.o: In function `nmap_main(int, char**)': nmap.cc:(.text+0x7d27): undefined reference to `join_quoted(char const* const*, unsigned int)'
Summary: =net-analyzer/nmap-7.01 - nmap.o: In function `nmap_main(int, char**)': nmap....
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-16 18:56 UTC by Gary E. Miller
Modified: 2015-12-24 21:39 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,69.34 KB, text/plain)
2015-12-16 18:57 UTC, Gary E. Miller
Details
environment (environment,122.72 KB, text/plain)
2015-12-16 18:57 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2015-12-16 18:56:36 UTC
Fails to emerge

Reproducible: Always

Steps to Reproduce:
1. emerge -1a =net-analyzer/nmap-7.01

Actual Results:  
[...]
x86_64-pc-linux-gnu-g++ -Wl,-E -Wl,-O1 -Wl,--as-needed -Lnbase -Lnsock/src/   -o 
nmap charpool.o FingerPrintResults.o FPEngine.o FPModel.o idle_scan.o MACLookup.o
 nmap_dns.o nmap_error.o nmap.o nmap_ftp.o NmapOps.o NmapOutputTable.o nmap_tty.o
 osscan2.o osscan.o output.o payload.o portlist.o portreasons.o protocols.o scan_
engine.o scan_engine_connect.o scan_engine_raw.o service_scan.o services.o Target
Group.o Target.o targets.o tcpip.o timing.o traceroute.o utils.o xml.o nse_main.o
 nse_utility.o nse_nsock.o nse_dnet.o nse_fs.o nse_nmaplib.o nse_debug.o nse_pcrelib.o nse_binlib.o nse_bit.o nse_lpeg.o nse_openssl.o nse_ssl_cert.o main.o -lnsock -lnbase -lpcre -lpcap -lssl -lcrypto libnetutil/libnetutil.a ./libdnet-stripped/src/.libs/libdnet.a ./liblua/liblua.a -llinear -ldl 
nmap.o: In function `nmap_main(int, char**)':
nmap.cc:(.text+0x7d27): undefined reference to `join_quoted(char const* const*, unsigned int)'
nmap.cc:(.text+0x7e03): undefined reference to `join_quoted(char const* const*, unsigned int)'
nmap.cc:(.text+0x80b4): undefined reference to `get_script_scan_results_obj()'
collect2: error: ld returned 1 exit status
distcc[25757] ERROR: compile (null) on localhost failed
Makefile:120: recipe for target 'nmap' failed


Expected Results:  
A good emerge

robin ~ # emerge -pqv '=net-analyzer/nmap-7.01'
[ebuild     U ] net-analyzer/nmap-7.01 [7.00] USE="ipv6 nls nse ssl -libressl -ncat -ndiff -nmap-update -nping (-system-lua) -zenmap" LINGUAS="-de -fr -hi -hr -it -ja -pl -pt_BR -ru -zh" PYTHON_TARGETS="python2_7" 

robin ~ # emerge --info '=net-analyzer/nmap-7.01'
Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.22-r1, 4.3.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.2-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.2
KiB Mem:     7768128 total,   1035884 free
KiB Swap:   16777212 total,  16768952 free
Timestamp of repository gentoo: Wed, 16 Dec 2015 15:15:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo, 3.5.1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://backup.rellim.com/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=btver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=btver1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --backtrack=2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/"
USE="X a52 aac aacplus aacs accessibility acl acpi adns aio alsa amd64 amr amrenc apng ares asyncdns avahi avcodec avformat bash-completion bcmath berkdb bluetooth bluray bound branding bzip2 cairo caps cdda cdr celt cli connman consolekit cracklib crypt cryptsetup cups curl cxx dane dbus declarative device-mapper djbfft dlz dri dts dvb dvd dvdr e2 ecwj2k egl emboss encode exif expat extraengine faac faad fam fdk ffmpeg fftw firefox fits flac fontconfig foomaticdb fortran fortune fpx g g3dvl gcrypt gd gdbm geoip geos gif gimp git glamor gles1 gles2 glib gml gmp gnome-keyring gnutls gost gpg gpm gps grass gsl gsm gstreamer gtk gtk3 hardened hdf highlight http2 iconv icu id3tag inotify iproute2 ipv6 jack jbig jpeg jpeg2k json kipi ladspa lame lcms libass libcanberra libedit libffi libinput libmpeg2 libnotify libsamplerate libsecret libsoxr libv4l2 lm_sensors lmdb lzma lzo mad matroska md5sum mhash mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses net netcdf netlink network nfs nfsv4 nfsv41 nls nptl ntp ogdi ogg openal openexr opengl openmp openssl opus osmesa pam pango pcntl pcre pdf pdfimport penexr perl phonon plasma png pnm policykit popcnt postproc ppds pulseaudio pyqt4 python q32 q8 qt3support qt4 qt5 quvi raw readline realtime rpc rpz rtmp sctp sdl seccomp semantic-desktop session sharedmem shm shout smi smp sndfile snmp spatialite speex spell sql sqlite sse sse2 sse3 sse4a ssh ssl ssse3 sssvg startup-notification svg swscale t1lib tcpd theora threads tiff toolame truetype twolame udev udisks unbound unicode upower urandom usb utils utp v4l2 v8 vaad vaapi vdpau vim-syntax vlc vorbis vpx webkit webkit2 webp wifi wmf wps wxwidgets x264 x265 xattr xcb xcomposite xft xine xinerama xml xmlndr xorg xosd xosine xpm xrender xscreensaver xsl xulrunner xv xvid xvmc xz zip zlib zvbi" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" DRACUT_MODULES="caps crypt livenet lvm ssh-client 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 ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="vesa radeon" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_O
Comment 1 Gary E. Miller 2015-12-16 18:57:26 UTC
Created attachment 419396 [details]
build.log
Comment 2 Gary E. Miller 2015-12-16 18:57:46 UTC
Created attachment 419398 [details]
environment
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-24 08:58:35 UTC
Can you reproduce that?
Can you reproduce it without -l2 in MAKEOPTS?
Comment 4 Gary E. Miller 2015-12-24 18:41:31 UTC
(In reply to Jeroen Roovers from comment #3)
> Can you reproduce that?

At the time it emerged fine on 2 of my unstable hosts, but would not on a third.

> Can you reproduce it without -l2 in MAKEOPTS?

It was reproduceable when I filed the bug.  Now it emerges fine on my third host, all my other gentoo unstable hosts.  I just now repeatedly tried different -l (max load factor) and no change, it now just works.

Given all the recent stdc++ changes it got fixed somehow, or maybe as you suggest a concurrency issue.  So, never mind...
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-24 21:31:46 UTC
Maybe it was the second chunk in https://gitweb.gentoo.org/repo/gentoo.git/commit/net-analyzer/nmap?id=eba0e3a0dd9ac6ffc9a1ceae51822d65145a0cfb that fixed it for you.
Comment 6 Gary E. Miller 2015-12-24 21:39:09 UTC
(In reply to Jeroen Roovers from comment #5)
> Maybe it was the second chunk in
> https://gitweb.gentoo.org/repo/gentoo.git/commit/net-analyzer/
> nmap?id=eba0e3a0dd9ac6ffc9a1ceae51822d65145a0cfb that fixed it for you.

Maybe.  I'm happy!