On sön, 2006-12-03 at 21:42 +0100, Eirik Nordbrøden wrote:
> Hello
> 
> We have problems building net-snmp 5.3.1 with Perl support on RedHat Linux 
> 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_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe 
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4   
> -DVERSION=\"5.0301\" -DXS_VERSION=\"5.0301\" -fPIC 
> "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE"   default_store.c
> cc1: Invalid option `32'
> cc1: Invalid option `tune=pentium4'

This means your gcc doesn't know about neither the -m32 nor the
-mtune=pentium4 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=ultrasparc

> 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:11 
> 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="-g -Wall" \
>             --with-default-snmp-version="1" \
>             --without-sys-contact \
>             --without-sys-location \
>             --with-logfile="/var/log/snmpd.log" \
>             --with-persistent-directory="/var/net-snmp" \
>             --with-out-transports="AAL5PVC IPX" \
>             --enable-mfd-rewrites \
>             --enable-shared \
>             --with-perl-modules \
>             --enable-embedded-perl \
>             --with-mib-modules="tcp-mib \
>                                 udp-mib \
>                                 ip-mib/ipv4InterfaceTable \
>                                 ip-mib/ipv6InterfaceTable \
>                                 agentx "
> 
> 
> _______________________________________________________
> 
> Eirik Nordbrøden           Telephone     (+47) 90174789
> moreCom A/S                Switchboard   (+47) 90064444
> Tønne Huitfeldts plass 2   Fax.          (+47) 69188119
> N-1767 Halden              Home          (+47) 69187899
> Norway
> 
> Email: mailto:[EMAIL PROTECTED]
> 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 your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to