Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64924 - net-snmp-5.1.1-r1 fails to compile on ppc
Summary: net-snmp-5.1.1-r1 fails to compile on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-21 21:02 UTC by Sandino Araico Sanchez
Modified: 2004-11-16 22:35 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 Sandino Araico Sanchez 2004-09-21 21:02:22 UTC
/bin/sh ../libtool  --mode=link gcc -DINET6 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char -mpowerpc-gfxopt -Dlinux  -o snmpd snmpd.lo   libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la  -lwrap ../snmplib/libnetsnmp.la -ldl -lz -lcrypto -lelf -lm  -rdynamic  -L/usr/local/lib /usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.5/powerpc-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -ldl
gcc -DINET6 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char -mpowerpc-gfxopt -Dlinux -o .libs/snmpd snmpd.o -rdynamic  ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so -lwrap ../snmplib/.libs/libnetsnmp.so -lz -lcrypto -lelf -L/usr/local/lib /usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.5/powerpc-linux/CORE -lperl -lpthread -lnsl -lm -lcrypt -lutil -lc -ldl
/usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.got2+0x18): undefined reference to `PL_stack_sp'
/usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.got2+0x1c): undefined reference to `PL_markstack_ptr'
/usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.got2+0x20): undefined reference to `PL_stack_base'
/usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.got2+0x38): undefined reference to `PL_op'
/usr/lib/perl5/5.8.5/powerpc-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o)(.got2+0xb8): undefined reference to `PL_sv_yes'
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/usr/src/portage/net-snmp-5.1.1-r1/work/net-snmp-5.1.1/agent'
make: *** [subdirs] Error 1

!!! ERROR: net-analyzer/net-snmp-5.1.1-r1 failed.
!!! Function src_compile, Line 73, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51_rc1 (default-ppc-2004.1, gcc-3.4.1, glibc-2.3.4.20040916-r0,
2.4.24-ppc-r4 ppc)
=================================================================
System uname: 2.4.24-ppc-r4 ppc 7455, altivec supported
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -fsigned-char
-mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache fixpackages nostrip sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/src"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d aalib adns altivec apache2 apm arts async audiofile bcmath
berkdb bidi bonobo bzlib c++ calendar caps cdb cdparanoia cdr chroot cjk crypt
ctype cups curl curlwrappers dba dbm dbx debug dga dio directfb divx4linux doc
dvb dvd dvdread encode erandom esd evo exif f77 fam fbcon flash flatfile
foomaticdb freetds freetype ftp gb gd gd-external gdbm geoip ggi gif gimpprint
glade gmp gnome gnome-libs gnutls gphoto2 gpm graphviz gstreamer gtk gtk2
gtkhtml guile hardenedphp high-ints iconv imagemagick imap imlib imlib2 inifile
innodb ipv6 javascript jbig jpeg justify kde lcms ldap libcaca libedit libg++
libgda libwww live lynxkeymap lzo mad mailwrapper matroska mbox mcal mcve md5sum
memlimit mhash mikmod mime ming mng mnogosearch motif mozaccess mozcalendar
mozilla mozp3p mozsvg mozxmlterm mpeg msession mysql mysqli nas ncurses network
nls nocardbus nvidia oav objc offensive oggvorbis ooo-kde opengl oss pam
parse-clocks pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic
plotutils png posix postgres ppc ppds python qdbm qt quicktime readline recode
rtc ruby samba sapdb sasl scanner sdl session sftplogging shared sharedmem sheep
silc simplexml skey slang slp snmp soap sockets socks5 speex spell spl sqlite
ssl svg sysvipc tcltk tcpd tetex theora threads tidy tiff tokenizer truetype
unicode usb v4l v4l2 vhosts vim-with-x virus-scan vnc wXwindows wddx wmf
xchatdccserver xchattext xface xine xinerama xml xml2 xmlrpc xmms xpm xprint xsl
xv xvid zlib"
Comment 1 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-22 15:17:51 UTC
I can't reproduce the problem on my machines. Could you try with 

-O2 -pipe -fno-strict-aliasing

as CFLAGS/CXXFLAGS setting. Please note that -mcpu has been deprecated in favor of -mtune in gcc-3.4. You probably want to replace -mtune=7450 with -mcpu=7450 in your cflags

I also noticed you have glibc-2.3.4.20040916-r0 as glibc., that's a version that doesn't exist in portage, could you copy/paste the output of emerge -vp glibc here?
Comment 2 Sandino Araico Sanchez 2004-09-23 02:56:29 UTC
CFLAGS="-O2 -pipe -fno-strict-aliasing -mtune=7450"

The same error happens.

emerge -vp glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.4.20040916  -build +debug +erandom -hardened -makecheck -multilib +nls -nptl +pic -userlocales 15,701 kB

Should i recompile glibc with CFLAGS="-O2 -pipe -fno-strict-aliasing -mtune=7450"?
Comment 3 Sandino Araico Sanchez 2004-09-23 13:53:14 UTC
I recompiled glibc with CFLAGS="-O2 -pipe -fno-strict-aliasing -mtune=7450" and the problem with net-snmp is still present.
Comment 4 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-24 14:20:28 UTC
This is a toolchain problem. Not ppc specific.
Comment 5 Sandino Araico Sanchez 2004-09-24 15:26:51 UTC
Do you mean gcc and binutils are the problem?
Comment 6 Sandino Araico Sanchez 2004-09-24 23:41:17 UTC
Recompiled gcc 3.4.1-r3 with CFLAGS="-O2 -pipe -fno-strict-aliasing" and net-snmp  compiled successfully.
Comment 7 SpanKY gentoo-dev 2004-11-16 22:35:28 UTC
seems to be ok now