<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>190448</bug_id>
          
          <creation_ts>2007-08-27 18:58 0000</creation_ts>
          <short_desc>net-analyzer/ntop-3.3 compile fails with USE=snmp</short_desc>
          <delta_ts>2007-10-19 22:08:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2007.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>graham@gmurray.org.uk</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          <cc>rose@rz.uni-potsdam.de</cc>
    
    <cc>vapier@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>graham@gmurray.org.uk</who>
            <bug_when>2007-08-27 18:58:16 0000</bug_when>
            <thetext>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 &gt;/dev/null 2&gt;&amp;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 &apos;CONTAINER_FREE&apos;:
/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: &quot;_XOPEN_SOURCE&quot; 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 &gt;/dev/null 2&gt;&amp;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&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/ntop-3.3/work/ntop-3.3&apos;
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 &apos;src_compile&apos;
 *   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=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=native -mtune=native -pipe -ggdb&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -march=native -mtune=native -pipe -ggdb&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks installsources metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;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/&quot;
LANG=&quot;en_GB.UTF-8&quot;
LC_ALL=&quot;en_GB.UTF-8&quot;
LINGUAS=&quot;en_GB en&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/musicbrainz /usr/portage/local/layman/emacs /usr/portage/local/layman/sunrise /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;hda-intel&quot; ALSA_PCM_PLUGINS=&quot;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&quot; CAMERAS=&quot;canon&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_GB en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon vesa fbdev&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rose@rz.uni-potsdam.de</who>
            <bug_when>2007-09-01 09:23:00 0000</bug_when>
            <thetext>The same problem here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rose@rz.uni-potsdam.de</who>
            <bug_when>2007-09-02 07:08:58 0000</bug_when>
            <thetext>I found that as a workaround it is possible to compile ntop if the snmp USE flag is removed.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>morbiddk@insensible.net</who>
            <bug_when>2007-09-03 00:24:26 0000</bug_when>
            <thetext>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.

&gt;&gt;&gt; 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.
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking ntop-3.3.tar.gz to /var/tmp/portage/net-analyzer/ntop-3.3/work </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jokey@gentoo.org</who>
            <bug_when>2007-09-06 09:18:35 0000</bug_when>
            <thetext>Disabled snmp support in ebuild now, this really should be fixed upstream</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-09-06 22:47:00 0000</bug_when>
            <thetext>unfortunately, simply removing the use line isnt enough ... the configure script with automagically detect support, so an explicit disable is needed (which ive added)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-19 22:08:53 0000</bug_when>
            <thetext>Also please remove/comment out this from DEPEND: snmp? ( net-analyzer/net-snmp )</thetext>
          </long_desc>
      
    </bug>

</bugzilla>