Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem building net-snmp 5.3.1 rc2 on RHEL4 64bit



Just so everyone knows, the default net-snmp that ships with redhat
5.1.2 does not support 64 bit counters, it wasn't introduced till 5.2.1.
The latest version 5.3.1rc2 has compile problems on RHEL4 x86_64.   But
I was able to compile 5.2.2 and get 64 bit counters to work.  See this
thead: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158630

When you do a compile use the --enable-mfd-rewrites flag.


Matthew Shields
Sr Systems Administrator
NameMedia, Inc.
(P) 781-839-2828
mshields at namemedia.com
http://www.namemedia.com


-----Original Message-----
From: discuss-bounces at blu.org [mailto:discuss-bounces at blu.org] On Behalf
Of Matt Shields
Sent: Thursday, July 06, 2006 12:16 PM
To: Ed Hill
Cc: discuss at blu.org
Subject: RE: Problem building net-snmp 5.3.1 rc2 on RHEL4 64bit

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


_______________________________________________
Discuss mailing list
Discuss at blu.org
http://olduvai.blu.org/mailman/listinfo/discuss




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org