net-analyzer/ntop-3.2-r2 fails to compile with USE=snmp Reproducible: Always Steps to Reproduce: 1.Modify /etc/make.conf to add "snmp" 2.emerge --update --deep --newuse world 3. Actual Results: ... /bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -g -march=i686 -O2 -pipe -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -shared -release 3.2 -o libsnmpPlugin.la -rpath /usr/lib libsnmpPlugin_la-snmpPlugin.lo -L/usr/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lcrypto -lm -lwrap -rdynamic -L/usr/local/lib /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lpthread -lresolv -lnsl -lcrypt -lc -lssl -lcrypto -lpcap -lgdbm -lgd -lpng -lz *** Warning: Linking the shared library libsnmpPlugin.la against the *** static library /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a is not portable! i686-pc-linux-gnu-gcc -shared .libs/libsnmpPlugin_la-snmpPlugin.o -L/usr/lib /usr/lib/libnetsnmpmibs.so /usr/lib/libnetsnmpagent.so /usr/lib/libnetsnmphelpers.so /usr/lib/libnetsnmp.so -lwrap -L/usr/local/lib /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i686-linux/CORE -lperl -ldl -lm -lutil -lpthread -lresolv -lnsl -lcrypt -lc -lssl -lcrypto -lpcap /usr/lib/libgdbm.so /usr/lib/libgd.so /usr/lib/libpng12.so -lz -march=i686 -Wl,-soname -Wl,libsnmpPlugin-3.2.so -o .libs/libsnmpPlugin-3.2.so i686-pc-linux-gnu-gcc: /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a: No such file or directory make[3]: *** [libsnmpPlugin.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-analyzer/ntop-3.2-r2/work/ntop-3.2/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/net-analyzer/ntop-3.2-r2/work/ntop-3.2/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-analyzer/ntop-3.2-r2/work/ntop-3.2' make: *** [all] Error 2 !!! ERROR: net-analyzer/ntop-3.2-r2 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3555: Called src_compile ntop-3.2-r2.ebuild, line 88: Called die !!! compile problem !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/net-analyzer/ntop-3.2-r2/temp/build.log'. Expected Results: Successs. Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r4 i686) ================================================================= System uname: 2.6.20-gentoo-r4 i686 Intel(R) Pentium(R) M processor 2.00GHz Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 27 Mar 2007 09:30:01 +0000 ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.31-r5 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=i686 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa apache2 apm arts audiofile avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo caps cardbus cdr cli cracklib crypt ctype cups dba dbus diskio djvu dri eds emboss encode esd ethereal exif expat fastbuild ffmpeg fftw foomaticdb force-cgi-redirect fortran ftp gamin gd gdbm gif glib glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog ithreads jack java jpeg kde lcms ldap libclamav libg++ libwww lirc lm_sensors lua mad madwifi memlimit mhash midi mikmod mmx mng motif mozilla mp3 mpeg mysql ncurses netjack nforce2 nls nptl nptlonly nvidia ocaml ogg opengl oss pam pango pch pcre pdf pdflib pear perl php pmu png portaudio posix pppd pulseaudio python qt qt3 qt3support qt4 qtmt quicktime readline real reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sqlite sse sse2 ssl tcl tcltk tcpd threads tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs x86 xml xml2 xmlrpc xorg xsl xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
What is your perl version ?
(In reply to comment #1) > What is your perl version ? > perl -v: v5.8.8 built for i686-linux-thread-multi perl -V: Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.20-gentoo-r3, archname=i686-linux-thread-multi uname='linux wdawsonlt 2.6.20-gentoo-r3 #1 smp thu mar 15 10:43:09 edt 2007 i686 intel(r) pentium(r) m processor 2.00ghz genuineintel gnulinux ' config_args='-des -Darchname=i686-linux-thread -Dcccdlflags=-fPIC -Dccdlflags=-rdynamic -Dcc=i686-pc-linux-gnu-gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth= -Doptimize=-march=i686 -O2 -pipe -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm -Dinc_version_list=5.8.0 5.8.0/i686-linux-thread-multi 5.8.2 5.8.2/i686-linux-thread-multi 5.8.4 5.8.4/i686-linux-thread-multi 5.8.5 5.8.5/i686-linux-thread-multi 5.8.6 5.8.6/i686-linux-thread-multi 5.8.7 5.8.7/i686-linux-thread-multi -Dinc_version_list=5.8.0 5.8.0/i686-linux-thread-multi 5.8.2 5.8.2/i686-linux-thread-multi 5.8.4 5.8.4/i686-linux-thread-multi 5.8.5 5.8.5/i686-linux-thread-multi 5.8.6 5.8.6/i686-linux-thread-multi 5.8.7 5.8.7/i686-linux-thread-multi -Dcf_by=Gentoo -Ud_csh -Dusenm -Dusethreads -Di_ndbm -Di_gdbm -Di_db' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='i686-pc-linux-gnu-gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-march=i686 -O2 -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement' ccversion='', gccversion='4.1.2 (Gentoo 4.1.2)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='i686-pc-linux-gnu-gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Mar 22 2007 17:24:57 @INC: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .
net-analyzer/ntop-3.2-r3 failed Making install in . cd . && /bin/sh ./missing --run echo --gnu --gnu cd . && /bin/sh ./missing --run echo --gnu --gnu ----------------------------------------------- Converting docs/FAQ to HTML format .... Please wait Oh, yeah... If we hang here, then you are probably running make not GNU make (gmake) sed: -e expression #1, char 13: Invalid range end make[2]: *** [faq.html] Error 1 make[2]: *** Waiting for unfinished jobs.... /usr/bin/install -c -m 644 './ntop.8' '/var/tmp/portage/net-analyzer/ntop-3.2-r3/image//usr/share/man/man8/ntop.8' make[1]: *** [install-am] Error 2 make: *** [install-recursive] Error 1 !!! ERROR: net-analyzer/ntop-3.2-r3 failed. Call stack: ebuild.sh, line 1614: Called dyn_install ebuild.sh, line 1060: Called qa_call 'src_install' environment, line 3631: Called src_install ntop-3.2-r3.ebuild, line 92: Called die
(In reply to comment #3) > Oh, yeah... > If we hang here, then you are probably > running make not GNU make (gmake) On Gentoo, is there a difference? $ which make /usr/bin/make $ which gmake /usr/bin/gmake $ ls -l /usr/bin/make lrwxrwxrwx 1 root root 5 Mar 2 12:41 /usr/bin/make -> gmake wdawson@WDAWSONLT ~ $ ls -l /usr/bin/gmake -rwxr-xr-x 1 root root 144268 Mar 2 12:41 /usr/bin/gmake OK, so I try with `alias make=gmake` and separately with `export make=gmake`, but neither make a difference. Is there a workaround? And, why need I apply it here and apparently with nothing else I have in Gentoo? I'm confused on this one...
heh, not a make bug but a bash bug, /me looks into it
hrm ok, can you post the line in question, maybe trying to run it manually, looks like your gawk is messed up somehow
(In reply to comment #6) > hrm ok, can you post the line in question, maybe trying to run it manually, > looks like your gawk is messed up somehow > Actually... this line turned out to be most indicative of the problem: /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a: No such file or directory I fixed that by re-emerging a few things. Unfortunately, I've since forgotten them all... I'm sure it was in part due to re-emerging perl. For example, I now find: /usr/lib/perl5/5.8.8/i686-linux-thread-multi/auto/DynaLoader Perhaps I induced this problem by adding threads and ithreads to my /etc/make.conf... Sorry for not having the forensic trail for how I "fixed" the ability to build ntop using snmp on my system. Definitely, though, this was not due to any bug in ntop, just as you surmise.