Hello hardaker,
 
I tried to rerun configure script with --with-cflags=-m32.  and  '--with-ldflags=-m32'.

configure still picking 64 bit perl library. I see below parameters passed to compiler.


-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm  -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE

FYI:

my configure command:

./configure --with-cflags=-m32 --with-ldflags=-m32 --with-libs=-L/usr/lib/perl5/5.8.8/i686-linux-thread-multi-64int/CORE/libperl.a

make error:

libtool: link: gcc -shared  .libs/snmp_agent.o .libs/snmp_vars.o .libs/agent_read_config.o .libs/agent_registry.o .libs/agent_index.o .libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o .libs/agent_handler.o mibgroup/snmpv3/.libs/usmConf.o mibgroup/agentx/.libs/master.o mibgroup/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o   -Wl,-rpath -Wl,/usr/src/STREAMS/net-snmp-5.5/snmplib/.libs -Wl,-rpath -Wl,/usr/local/lib ../snmplib/.libs/libnetsnmp.so -lcrypto /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc  -m32 -m32 -Wl,-E -Wl,-rpath -Wl,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE   -Wl,-soname -Wl,libnetsnmpagent.so.20 -o .libs/libnetsnmpagent.so.20.0.0
/usr/bin/ld: skipping incompatible /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so when searching for -lperl
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/usr/src/STREAMS/net-snmp-5.5/agent'
make: *** [subdirs] Error 1

Please let me know if you have any  solution to fix this.

Thanks.

Prakash

 

 

 

-----Wes Hardaker <[email protected]> wrote: -----

To: [email protected]
From: Wes Hardaker <[email protected]>
Date: 04/02/2010 04:12PM
cc: [email protected], [email protected]
Subject: Re: building 32-bit net-snmp on x86_64-bit kernel Linux

>>>>> On Thu, 1 Apr 2010 15:11:05 -0400, [email protected] said:

pm> I tried setting CFLAGS=-m32 to configure script - but it didn't help.
pm> Configure script generating makefiles with -m64 for sub modules like :
pm> agents. Don't know how to fix it.

Did you try using --with-cflags=-m32 and --with-ldflags=-m32 ?
--
Wes Hardaker
Cobham Analytic Solutions


The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. If you are not the intended recipient please return the e-mail to the sender and delete it from your computer. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.

Please refer to http://disclaimer.bnymellon.com/eu.htm for certain disclosures relating to European legal entities.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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

Reply via email to