Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134772 - net-misc/quagga-0.98.6-r1: fails to compile with +snmp
Summary: net-misc/quagga-0.98.6-r1: fails to compile with +snmp
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Amir Guindehi (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-29 05:57 UTC by solar (RETIRED)
Modified: 2006-06-07 23:08 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 solar (RETIRED) gentoo-dev 2006-05-29 05:57:58 UTC
First off this is a bit older of a box. A Gentoo 1.2 install :)

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I. -I.. -I.. -I.. -I../lib    -march=i686 -O2 -pipe -I/usr/include/net-snmp -I/usr/include/net-snmp/library -c rip_routemap.c
In file included from rip_snmp.c:26:
/usr/include/net-snmp/net-snmp-config.h:931: warning: `PACKAGE_BUGREPORT' redefined
../config.h:374: warning: this is the location of the previous definition
/usr/include/net-snmp/net-snmp-config.h:934: warning: `PACKAGE_NAME' redefined
../config.h:377: warning: this is the location of the previous definition
/usr/include/net-snmp/net-snmp-config.h:937: warning: `PACKAGE_STRING' redefined
../config.h:380: warning: this is the location of the previous definition
/usr/include/net-snmp/net-snmp-config.h:940: warning: `PACKAGE_TARNAME' redefined
../config.h:383: warning: this is the location of the previous definition
/usr/include/net-snmp/net-snmp-config.h:943: warning: `PACKAGE_VERSION' redefined
../config.h:386: warning: this is the location of the previous definition
/usr/include/net-snmp/net-snmp-config.h:1345: warning: `HAVE_SOCKLEN_T' redefined
../config.h:263: warning: this is the location of the previous definition
source='rip_peer.c' object='rip_peer.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I. -I.. -I.. -I.. -I../lib    -march=i686 -O2 -pipe -I/usr/include/net-snmp -I/usr/include/net-snmp/library -c rip_peer.c
make[2]: *** [ripd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/quagga-0.98.6-r1/work/quagga-0.98.6/ripd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/quagga-0.98.6-r1/work/quagga-0.98.6'
make: *** [all] Error 2


[ebuild     U ] net-misc/quagga-0.98.6-r1 [0.96.4-r6] -bgpclassless -fix-connected-rt -ipv6 -multipath -ospfapi +pam* -realms +snmp* -tcp-zebra -tcpmd5 0 kB

My net-snmp version is.

[ebuild   R   ] net-analyzer/net-snmp-5.2.1.2-r1  -X -doc -elf -ipv6 -lm_sensors -minimal +perl -rpm (-selinux) -smux +ssl +tcpd 0 kB

Portage 2.0.51.22-r2 (default-linux/x86/gcc2, gcc-2.95.3, glibc-2.2.5-r2,glibc-2.2.5-r9, 2.4.28-grsec-2.1.0 i686)
=================================================================
System uname: 2.4.28-grsec-2.1.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1
virtual/os-headers:  2.4.18, 2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo       http://open-systems.ufl.edu/mirrors/gentoo http://mirror.tucdemonic.org/gentoo/     http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm asterisk audiofile berkdb bitmap-fonts bzip2 cli crypt curl dri emboss encode expat extensions font-server fortran gd gdbm gif gmp idn imagemagick imlib isdnlog jpeg justify lcms libg++ libwww mhash mikmod mmx mng motif mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nopri nozaptel offensive ogg oggvorbis pam pcap pcre pdflib perl pic png pppd prelude python readline reflection session slang snmp spell spl sse ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-05-29 21:42:56 UTC
Your gcc doesn't report the error.
Try to update system tools or at least gcc.
Comment 2 solar (RETIRED) gentoo-dev 2006-05-30 05:29:56 UTC
That profile does not let you go past gcc-2.95 (so thats not an option)
To me it looks like a libtool error. So I'll make sure those parts are all 
up2date and give it another run.
Comment 3 solar (RETIRED) gentoo-dev 2006-05-30 19:07:17 UTC
updated libtool had no effect.
But the error reported appears to be that it hates alot of redefs. 
(quagga uses -Werror but hides it?)

bash# grep PACKAGE ./quagga-0.98.6/config.h ; echo ; grep PACKAGE /usr/include/net-snmp/net-snmp-config.h
#define PACKAGE "quagga"
#define PACKAGE_BUGREPORT "http://bugzilla.quagga.net"
#define PACKAGE_NAME "Quagga"
#define PACKAGE_STRING "Quagga 0.98.6"
#define PACKAGE_TARNAME "quagga"
#define PACKAGE_VERSION "0.98.6"

#define PACKAGE_BUGREPORT "net-snmp-coders@lists.sourceforge.net"
#define PACKAGE_NAME "Net-SNMP"
#define PACKAGE_STRING "Net-SNMP 5.2.1.2"
#define PACKAGE_TARNAME "net-snmp"
#define PACKAGE_VERSION "5.2.1.2"
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-05-30 22:13:47 UTC
1) -Werror isn't used anywhere:
mrness@alin /var/tmp/portage/quagga-0.99.4/work $ grep -r Werror .
./quagga-0.99.4/aclocal.m4:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/configure:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/configure:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/autom4te.cache/output.0:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/autom4te.cache/output.0:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/autom4te.cache/traces.1:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/autom4te.cache/output.1:      # or remarks (even with -Werror).  So we grep stderr for any message
./quagga-0.99.4/autom4te.cache/output.1:      # or remarks (even with -Werror).  So we grep stderr for any message

2) net-snmp is to blame for defining PACKAGE* in /usr/include, not quagga. 

3) The failing command isn't the one which generates those warnings but the following:

DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/quagga/\" -I. -I.
-I.. -I.. -I.. -I../lib    -march=i686 -O2 -pipe -I/usr/include/net-snmp
-I/usr/include/net-snmp/library -c rip_peer.c

Either depcomp script hides the errors (I doubt that) or you hit some bug of your gcc version. Try to run that command manually, without using depcomp.
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2006-06-06 12:55:28 UTC
Did you had the time to run the test I've asked you to? (see previous comment, below point 3)
Comment 6 solar (RETIRED) gentoo-dev 2006-06-07 21:53:05 UTC
Sorry no I've not. quagga got uninstalled from that box and then I moved it 
away from me. I don't think I'll be able to try it with 2.95 anytime soonish.
Comment 7 Alin Năstac (RETIRED) gentoo-dev 2006-06-07 23:08:35 UTC
If you reproduce the bug on another machine with gcc-2.95, reopen it.