Problem building net-snmp 5.3.1 rc2 on RHEL4 64bit
Ed Hill
ed at eh3.com
Thu Jul 6 11:39:50 EDT 2006
On Thu, 2006-07-06 at 10:19 -0400, Matt Shields wrote:
> I'm having a terrible time trying to compile net-snmp-5.3.1.rc2 on RHEL4
> 64 bit. Below is the last couple lines of the make. Can anyone shed
> light on this?
>
> I do know that /usr/lib/libpopt.so and /usr/lib64/libpopt.so do exist.
>
>
> /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent
> -I../agent/mibgroup -I../snmplib -g -O2 -Dlinux -I/usr/include/rpm -c
> -o snmpd.lo snmpd.c
> rm -f .libs/snmpd.lo
> gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2
> -Dlinux -I/usr/include/rpm -c snmpd.c -fPIC -DPIC -o .libs/snmpd.lo
> gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2
> -Dlinux -I/usr/include/rpm -c snmpd.c -o snmpd.o >/dev/null 2>&1
> mv -f .libs/snmpd.lo snmpd.lo
> /bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -I/usr/include/rpm
> -o snmpd snmpd.lo libnetsnmpmibs.la libnetsnmpagent.la
> helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lrpm
> -lrpmio -lpopt -lz -lcrypto -lm
> gcc -g -O2 -Dlinux -I/usr/include/rpm -o .libs/snmpd snmpd.o
> ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so
> helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl
> -lrpm -lrpmio /usr/lib/libpopt.so -lz -lcrypto -lm -Wl,--rpath
> -Wl,/usr/local/lib
> /usr/lib/libpopt.so: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[1]: *** [snmpd] Error 1
> make[1]: Leaving directory `/opt/install/net-snmp-5.3.1.rc2/agent'
> make: *** [subdirs] Error 1
>
> Matthew Shields
> Sr Systems Administrator
> NameMedia, Inc.
> (P) 781-839-2828
> mshields at namemedia.com
> http://www.namemedia.com
Hi Matt,
Yes, you're likely encountering a multilib issue. But the real question
you should be asking yourself is: why compile net-snmp from source?
If you really do need to build from source (say, for a newer version)
then I suggest that you grab one of the SRPMs and rebuild using it as a
starting point since there are a handful of patches that Red Hat has
applied in order to straighten out things such as the multilib/libtool
issue.
You can see for yourself with the Centos SRPMs:
wget
http://ftp.telus.net/pub/centos/4.3/os/SRPMS/net-snmp-5.1.2-11.EL4.6.src.rpm
rpm2cpio net-snmp-5.1.2-11.EL4.6.src.rpm | cpio -ivd
more more net-snmp.spec
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the Discuss
mailing list