On s=F6n, 2006-12-03 at 21:42 +0100, Eirik Nordbr=F8den wrote:
> Hello
> =


> We have problems building net-snmp 5.3.1 with Perl support on RedHat Linu=

x enterprise edition. We get the following error message:
> =


> make[2]: Entering directory `/home/eno/prj/open-source/net-snmp/net-snmp-=

5.3.1/perl/default_store'
> gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_RE=

ENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/i=
nclude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O2=
-g -pipe -m32 -march=3Di386 -mtune=3Dpentium4 -DVERSION=3D\"5.0301\" -DX=
S_VERSION=3D\"5.0301\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-mult=
i/CORE" default_store.c
> cc1: Invalid option `32'
> cc1: Invalid option `tune=3Dpentium4'


This means your gcc doesn't know about neither the -m32 nor the
-mtune=3Dpentium4 option. Given that it is six years old and the pentium4
didn't exist at the time I think that is reasonable.

On the other hand it looks as if you have updated some parts of the
machine but not other, could you please check for -m options in the
output of the commands

perl -MExtUtils::Embed -e ccopts

and

perl -MExtUtils::Embed -e ldopts =


I suspect that your perl is updated to a newer one using rpm and that
new perl was built with a newer gcc that did support those options.

/MF

FYI: =

The net-snmp code base only mention the mtune option in the distribution
build script for sparc-solaris, and the it is -mtune=3Dultrasparc

> make[2]: *** [default_store.o] Error 1
> make[2]: Leaving directory `/home/eno/prj/open-source/net-snmp/net-snmp-5=

..3.1/perl/default_store'
> =


> uname -a: Linux odin02.lokal.lan 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:1=

1 CDT 2006 i686 i686 i386 GNU/Linux
> gcc -v: gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-129.7.2)
> ./configure \
> --with-cflags=3D"-g -Wall" \
> --with-default-snmp-version=3D"1" \
> --without-sys-contact \
> --without-sys-location \
> --with-logfile=3D"/var/log/snmpd.log" \
> --with-persistent-directory=3D"/var/net-snmp" \
> --with-out-transports=3D"AAL5PVC IPX" \
> --enable-mfd-rewrites \
> --enable-shared \
> --with-perl-modules \
> --enable-embedded-perl \
> --with-mib-modules=3D"tcp-mib \
> udp-mib \
> ip-mib/ipv4InterfaceTable \
> ip-mib/ipv6InterfaceTable \
> agentx "
> =


> =


> __________________________________________________ _____
> =


> Eirik Nordbr=F8den Telephone (+47) 90174789
> moreCom A/S Switchboard (+47) 90064444
> T=F8nne Huitfeldts plass 2 Fax. (+47) 69188119
> N-1767 Halden Home (+47) 69187899
> Norway
> =


> Email: mailto:eirik.nordbroden@moreCom.no
> WWW: http://www.moreCom.no/
> __________________________________________________ _____
> =


> =


> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share y=

our
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?p...eforge&CID=3D=

DEVDEV
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/...et-snmp-coders



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...orge&CID=3DDE=
VDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders