![]() |
Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
I've had problems getting 64 bit counters working with RedHat's net-snmp and have been successful with 5.3.1 on all my other servers. I've compiled this no problem on those, but they're all 32 bit. Now we're starting to get 64bit servers in, so one way or another it would be nice to get this working with 5.3.1. Also, if we don't use 64 bit counters, we rollover about every minute or so for our bandwidth statistics. I did try applying one of the patches that refers to the libtool, but that didn't work. Matthew Shields Sr Systems Administrator NameMedia, Inc. (P) 781-839-2828 mshields at namemedia.com http://www.namemedia.com -----Original Message----- From: Ed Hill [mailto:ed at eh3.com] Sent: Thursday, July 06, 2006 11:40 AM To: Matt Shields Cc: discuss at blu.org Subject: Re: Problem building net-snmp 5.3.1 rc2 on RHEL4 64bit 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
![]() |
|
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |