Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101130 - snmpd -f broken after emerging with certain LDFLAGS
Summary: snmpd -f broken after emerging with certain LDFLAGS
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 13:00 UTC by Jan Lam
Modified: 2005-08-02 16:02 UTC (History)
0 users

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 Jan Lam 2005-08-02 13:00:58 UTC
After emerging net-snmp with 
LDFLAGS='-Wl,--sort-common -z now -Wl,--as-needed -Wl,-O1 -Wl,--enable-new-
dtags' executing /usr/sbin/snmpd -f says:
/usr/sbin/snmpd: symbol lookup error: /usr/lib/libnetsnmpagent.so.5: undefined 
symbol: netsnmp_register_null

Emerging after UNSETting LDFLAGS solves the problem.

Reproducible: Always
Steps to Reproduce:
1.export LDFLAGS="-Wl,--sort-common -z now -Wl,--as-needed -Wl,-O1 -Wl,--enable-
new-dtags"
2. emerge net-snmp
3. /usr/sbin/snmpd -f


Actual Results:  
The following error occurs:
/usr/sbin/snmpd: symbol lookup error: /usr/lib/libnetsnmpagent.so.5: undefined 
symbol: netsnmp_register_null


Expected Results:  
Not get such an error

Portage 2.0.51.22-r2 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130, glibc-
2.3.5-r0, 2.4.26-om1 i686)
=================================================================
System uname: 2.4.26-om1 i686 VIA Nehemiah
Gentoo Base System version 1.6.12
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
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.5.18-r1
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-Os -mcpu=pentium2 -pipe -fomit-frame-pointer -frename-registers -
ftracer -mmmx -msse -mfpmath=sse,387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/
mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mcpu=pentium2 -pipe -fomit-frame-pointer -frename-registers -
ftracer -mmmx -msse -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,--sort-common -z now -Wl,--as-needed -Wl,-O1 -Wl,--enable-new-
dtags"
LINGUAS="en"
MAKEOPTS="-j8 --max-load=10.0"
PKGDIR="/Data/packages/l-gateway"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/Data/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage/"
USE="x86 X aavm alsa apache2 apm avi berkdb bitmap-fonts boundschecking bzip2 
curl dhcp divx4linux eds emboss evms2 extensions fam font-server foomaticdb gd 
gdbm gif gpm gstreamer gtk2 imagemagick imap imlib ipv6 java jpeg kde 
kdeenablefinal kdexdeltas ldirectord libg++ libwww live lm_sensors logrotate 
memlimit mmap mmx mmx2 mmxext motif mozdevelop mozilla moznomail mp3 mpeg mppe-
mppc mysql ncurses network nodrm nojoystick ogg opengl oss pam parse-clocks 
perl png prelude python qt quicktime readline real samba sdl slang snmp sse ssl 
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales virus-
scan xine xml2 xmms xv xvid zlib linguas_en userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-08-02 16:02:24 UTC
We do not support arbitrary linker flags. You can do what you want, but don't
bug us with this, please. And btw: -ftracer is a unsafe compiler flag,
-mfpmath=sse,387 breaks occassionally code, too, so it's more likely your bug
reports, if they seem not reasonable, go to /dev/null.