Re: About Net-SNMP for PowerPC install

sam_lin 林育民 506 <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dear Thomas,

I am very thanks your information.

But, I had a problem in ./configure processing. below are my cross-compile 
step.

Step 1. Download "net-snmp-5.4.1.tar.gz" on Net-SNMP web side.

Step 2. Tar -xzvf net-snmp-5.4.1.tar.gz in Fedora Core 8.

Step 3. cross-compile Net-SNMP via command "./configure 
CC="powerpc-linux-gcc" AR="powerpc-linux-ar" LD="powerpc-linux-ld" 
RANLIB="powerpc-linux-ranlib" --host=powerpc-linux --with-endianness=big --prefix=/usr 
 --with-install-prefix="/tmp/image" --without-perl-modules "

Step 4. make,

and then occurred Error. The error message as below:

Error Message:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[root@snmp121 net-snmp-5.4.1]# make
making all in /C_script/net-snmp-5.4.1/snmplib
make[1]: Entering directory `/C_script/net-snmp-5.4.1/snmplib'
make[1]: Leaving directory `/C_script/net-snmp-5.4.1/snmplib'
making all in /C_script/net-snmp-5.4.1/agent
make[1]: Entering directory `/C_script/net-snmp-5.4.1/agent'
making all in /C_script/net-snmp-5.4.1/agent/helpers
make[2]: Entering directory `/C_script/net-snmp-5.4.1/agent/helpers'
make[2]: Leaving directory `/C_script/net-snmp-5.4.1/agent/helpers'
making all in /C_script/net-snmp-5.4.1/agent/mibgroup
make[2]: Entering directory `/C_script/net-snmp-5.4.1/agent/mibgroup'
make[2]: Leaving directory `/C_script/net-snmp-5.4.1/agent/mibgroup'
/bin/sh ../libtool  --mode=link 
powerpc-linux-gcc -g -O2 -Ulinux -Dlinux=linux  -o snmpd 
nmpd.lo  -L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers 
libnetsnmpagent.la helpers/libnetsnmphelpers.la libnetsnmpmibs.la 
../snmplib/libnetsnmp.la  -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE 
  -L/usr/local/lib 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE 
 -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
powerpc-linux-gcc -g -O2 -Ulinux -Dlinux=linux -o .libs/snmpd 
.libs/snmpd.o -Wl,-E -Wl,-rpath -Wl,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE 
  -L/C_script/net-snmp-5.4.1/agent/.libs -L/C_script/net-snmp-5.4.1/agent/helpers/.libs 
 -L/C_script/net-snmp-5.4.1/snmplib/.libs -L/C_script/net-snmp-5.4.1/snmplib 
 -L/C_script/net-snmp-5.4.1/agent/helpers ./.libs/libnetsnmpagent.so 
helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so 
/C_script/net-snmp-5.4.1/agent/helpers/.libs/libnetsnmphelpers.so 
/C_script/net-snmp-5.4.1/agent/.libs/libnetsnmpagent.so 
/C_script/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so 
../snmplib/.libs/libnetsnmp.so -L/usr/local/lib 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE 
 -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
/opt/ppc/gcc-3.4.3-glibc-2.3.3/bin/../lib/gcc/powerpc-linux/3.4.3/../../../../powerpc-linux/bin/ld: 
skipping incompatible 
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so when searching 
for -lperl
/opt/ppc/gcc-3.4.3-glibc-2.3.3/bin/../lib/gcc/powerpc-linux/3.4.3/../../../../powerpc-linux/bin/ld: 
cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/C_script/net-snmp-5.4.1/agent'
make: *** [subdirs] Error 1

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I don't need perl function to run SNMP and had already add the 
"--without-perl-modules" parameter with ./configure.
but, the "../powerpc-linux/bin/ld: cannot find -lperl" error still occurred.

Could you help me to solve it??

Thank a lots!


Best Regards

Sam Lin
Software Engineer
R&D Center Development .
E-mail: [email protected]
Tel. +886 2 2698-2334 Ext.506
Fax. +886 2 2698-2380
EverFocus Electronics Corp.
10F-6, No.79, Sec. 1, Hsin Tai Wu Road., Hsichih,
Taipei Hsien 221
Taiwan, R.O.C.
www.everfocus.com.tw
----- Original Message ----- 
From: "Thomas Anders" <[email protected]>
To: "sam_lin ??? 506" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, August 20, 2008 7:13 AM
Subject: Re: About Net-SNMP for PowerPC install


> sam_lin wrote:
>> Actuality, I need install the Net-SNMP on Embedded Linux PowerPC. So,
>> could you have any solution or SOP to do it??
>
> You need to be familiar with cross-compiling in general.
> http://www.freesnmp.com/net-snmp/faqs/#cross will give some additional
> hints.
>
>
> +Thomas
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great 
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the 
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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.