compiling under x86_64

Stuart Kendrick <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I'm trying to compile net-snmp on a 64-bit box

Pointers?


./configure --prefix=/opt/local --with-cflags=-fPIC --with-mibdirs="/opt/local/s
hare/snmp/mibs" --with-persistent-directory="/opt/local/var/snmp" --with-sys-con
tact=root --with-sys-location=M1-200 --with-logfile="/opt/local/var/log/net-snmp
" --with-default-snmp-version="2" --with-out-transports="TCP" --with-perl-module
s --with-mib-modules="ucd-snmp/diskio ucd-snmp/lmSensors smux"
[...]
gnat> make
[...]
/usr/bin/ld: /opt/local/lib/perl5/5.10.1/x86_64-linux-thread-multi/CORE/libperl.
a(op.o): relocation R_X86_64_32 against `a local symbol' can not be used when ma
king a shared object; recompile with -fPIC
/opt/local/lib/perl5/5.10.1/x86_64-linux-thread-multi/CORE/libperl.a: could not
read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/opt/local/src/net-snmp-5.5/agent'
make: *** [subdirs] Error 1
gnat>


gnat> uname -a
Linux gnat 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009 x86_64 x86_64
  x86_64 GNU/Linux
gnat>

gnat> pwd
/opt/local/src/perl-5.10.1
gnat> grep fPIC config.sh
cccdlflags='-fPIC'
gnat>


--sk

Stuart Kendrick
Fred Hutchinson Cancer Research Center
Seattle, WA USA

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.