Re: Complaint about libpopt in building - could not read symbols: File in wrong format

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Casey Ong wrote:
> I have the following error when building net-snmp rel 5.4 on a Redhat 4
> enterprise machine. I will appreiciate your kind advise...
> [...]
> gcc -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -o .libs/snmpd
> .libs/snmpd.o -Wl,-E -Wl,-rpath -Wl,/usr/lib64/perl5/5.8.5/x86_64-linux-thre
> ad-multi/CORE  ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so
> helpers/.libs/libnetsnmphelpers.so
> ../snmplib/.libs/libnetsnmp.so -lrpm -lrpmio
> /usr/lib/libpopt.so -lz -lcrypto
> /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.
> a -L/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE -lperl -lnsl -ldl 
> -lm -lcrypt -lutil -lpthread -lc  -Wl,--rpath -Wl,/usr/local/lib
> /usr/lib/libpopt.so: could not read symbols: File in wrong format

On a x86_64 Linux machine, you need to:

  ./configure --with-ldflags=-L/usr/lib64 ...

If you build our source RPM, this should be done automatically.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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.