Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190448 - net-analyzer/ntop-3.3 compile fails with USE=snmp
Summary: net-analyzer/ntop-3.3 compile fails with USE=snmp
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-27 18:58 UTC by Graham Murray
Modified: 2007-10-19 22:08 UTC (History)
2 users (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 Graham Murray 2007-08-27 18:58:16 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -O2 -march=native -mtune=native -ggdb -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE
 -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8
/i686-linux-thread-multi/CORE -I. -I/usr/include -DLINUX -O2 -march=native -mtune=native -pipe -ggdb -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissin
g-declarations -Wnested-externs -fPIC -DPIC -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c hash.c -o hash.o >/dev/null 2>&1
In file included from /usr/include/net-snmp/utilities.h:54,
                 from /usr/include/net-snmp/net-snmp-includes.h:74,
                 from iface.c:766:
/usr/include/net-snmp/library/container.h: In function 'CONTAINER_FREE':
/usr/include/net-snmp/library/container.h:416: error: lvalue required as left operand of assignment
make[2]: *** [iface.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -O2 -march=native -mtune=native -ggdb -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE
 -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8
/i686-linux-thread-multi/CORE -I. -I/usr/include -DLINUX -O2 -march=native -mtune=native -pipe -ggdb -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissin
g-declarations -Wnested-externs -fPIC -DPIC -MT initialize.lo -MD -MP -MF .deps/initialize.Tpo -c initialize.c  -fPIC -DPIC -o .libs/initialize.o
In file included from initialize.c:25:
ntop.h:136:1: warning: "_XOPEN_SOURCE" redefined
In file included from ntop.h:88,
                 from initialize.c:25:
/usr/include/features.h:155:1: warning: this is the location of the previous definition
mv -f .deps/hash.Tpo .deps/hash.Plo
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -O2 -march=native -mtune=native -ggdb -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE
 -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8
/i686-linux-thread-multi/CORE -I. -I/usr/include -DLINUX -O2 -march=native -mtune=native -pipe -ggdb -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissin
g-declarations -Wnested-externs -fPIC -DPIC -MT initialize.lo -MD -MP -MF .deps/initialize.Tpo -c initialize.c -o initialize.o >/dev/null 2>&1
mv -f .deps/initialize.Tpo .deps/initialize.Plo
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/ntop-3.3/work/ntop-3.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/ntop-3.3/work/ntop-3.3'
make: *** [all] Error 2
 *
 * ERROR: net-analyzer/ntop-3.3 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ntop-3.3.ebuild, line 89:   Called die

emerge --info
Portage 2.1.3.7 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 27 Aug 2007 17:20:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks installsources metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.blueyonder.co.uk http://gentoo.tiscali.nl/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB en"
MAKEOPTS="-j3"
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/portage/local/layman/musicbrainz /usr/portage/local/layman/emacs /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bonobo browserplugin bzip2 bzlib cairo caps cddb cdparanoia cdr cjk cli cracklib crypt cups curl dbus directfb doc dri dts dvd dvdr dvdread eds emacs emboss encode esd ethereal evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm gif glut gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal iconv icq idn ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility kerberos ladspa lcms ldap leim libgda libnotify libsamplerate lm_sensors logrotate lua mad matroska mbox midi mikmod milter mime mmap mmx mng mono mp3 mpeg mpi mplayer msn mudflap musepack ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcntl pcre pdf perl png postgres ppds pppd profile pulseaudio python qt3 qt3support qt4 quicktime readline recode reflection ruby sasl sdl seamonkey session sharedmem sndfile snmp sockets sox speex spell spl sqlite3 sse sse2 ssl svg sysvipc tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts uicktime unicode usb v4l vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xface xine xml xml2 xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Juergen Rose 2007-09-01 09:23:00 UTC
The same problem here.
Comment 2 Juergen Rose 2007-09-02 07:08:58 UTC
I found that as a workaround it is possible to compile ntop if the snmp USE flag is removed.

Comment 3 David Earp 2007-09-03 00:24:26 UTC
I had the same issue, but I noticed at the start of the emerge that there is a note about the snmp plugin being under development.  As I was not using the snmp plugin with ntop, I removed the USE string from the build and it worked fine.

>>> Emerging (1 of 1) net-analyzer/ntop-3.3 to /
 * ntop-3.3.tar.gz RMD160 ;-) ...                                         [ ok ]
 * ntop-3.3.tar.gz SHA1 ;-) ...                                           [ ok ]
 * ntop-3.3.tar.gz SHA256 ;-) ...                                         [ ok ]
 * ntop-3.3.tar.gz size ;-) ...                                           [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking ntop-3.3.tar.gz ;-) ...                                       [ ok ]
 * snmp plugin is under development and upstream does not recommend
 * it for usage in production environment.
>>> Unpacking source...
>>> Unpacking ntop-3.3.tar.gz to /var/tmp/portage/net-analyzer/ntop-3.3/work 
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2007-09-06 09:18:35 UTC
Disabled snmp support in ebuild now, this really should be fixed upstream
Comment 5 SpanKY gentoo-dev 2007-09-06 22:47:00 UTC
unfortunately, simply removing the use line isnt enough ... the configure script with automagically detect support, so an explicit disable is needed (which ive added)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-10-19 22:08:53 UTC
Also please remove/comment out this from DEPEND: snmp? ( net-analyzer/net-snmp )