Hello All,

This is a problem that has been reported sometime last year on this group.
however on searching the archives completely i am not able to get a possible
solution and hence I am forced to request more here.

I am trying to get net-snmp 5.4.2 to be compiled on a broadcom 7400
platform. This is a cross compilation for a mipsel-uclibc target from a x86
linux host (runnin fedora linux)

The following is my configure command.

./configure cross_compiling=yes --host=x86-linux --target=mipsel --build=x86
--with-cc=mipsel-uclibc-gcc --with-ld=mipsel-uclibc-ld --with-cflags="-x c
-DARP_SCAN_FOUR_ARGUMENTS" --with-endianness=little
--with-mib-modules="demotraps agentx" --disable-embedded-perl

NOTE:
1. if i do not define -DARP_SCAN_FOUR_ARGUMENTS, the compilation fails at
mibgroup/mibsII/at.c file
2. Also i am not using embedded perl, hence its disabled

Most compilation goes through except for

ranlib .libs/libnetsnmpmibs.a
creating libnetsnmpmibs.la
(cd .libs && rm -f libnetsnmpmibs.la && ln -s ../libnetsnmpmibs.la
libnetsnmpmibs.la)
: libnetsnmpmibs.la
*/bin/sh ../libtool  --mode=compile mipsel-uclibc-gcc -I../include -I.
-I../agent -I../agent/mibgroup -I../snmplib   -x c -DARP_SCAN_FOUR_ARGUMENTS
-Uelf -Delf=elf  -c -o snmpd.lo snmpd.c*
 mipsel-uclibc-gcc -I../include -I. -I../agent -I../agent/mibgroup
-I../snmplib -x c -DARP_SCAN_FOUR_ARGUMENTS -Uelf -Delf=elf -c snmpd.c
-fPIC -DPIC -o .libs/snmpd.o
 mipsel-uclibc-gcc -I../include -I. -I../agent -I../agent/mibgroup
-I../snmplib -x c -DARP_SCAN_FOUR_ARGUMENTS -Uelf -Delf=elf -c snmpd.c -o
snmpd.o >/dev/null 2>&1
/bin/sh ../libtool  --mode=link mipsel-uclibc-gcc -x c
-DARP_SCAN_FOUR_ARGUMENTS -Uelf -Delf=elf  -o snmpd snmpd.lo
-L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers
libnetsnmpagent.la helpers/libnetsnmphelpers.la libnetsnmpmibs.la../snmplib/
libnetsnmp.la
mipsel-uclibc-gcc -x c -DARP_SCAN_FOUR_ARGUMENTS -Uelf -Delf=elf -o
.libs/snmpd .libs/snmpd.o
-L/export/home/os_ragha/share/net-snmp-5.4.1/agent/.libs
-L/export/home/os_ragha/share/net-snmp-5.4.1/agent/helpers/.libs
-L/export/home/os_ragha/share/net-snmp-5.4.1/snmplib/.libs
-L/export/home/os_ragha/share/net-snmp-5.4.1/snmplib
-L/export/home/os_ragha/share/net-snmp-5.4.1/agent/helpers
./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so
./.libs/libnetsnmpmibs.so
/export/home/os_ragha/share/net-snmp-5.4.1/agent/helpers/.libs/libnetsnmphelpers.so
/export/home/os_ragha/share/net-snmp-5.4.1/agent/.libs/libnetsnmpagent.so
/export/home/os_ragha/share/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so -ldl
../snmplib/.libs/libnetsnmp.so   -Wl,--rpath -Wl,/usr/local/lib

the errors i get are of this nature:

.libs/snmpd.o:1: error: stray '\127' in program
.libs/snmpd.o:1: error: stray '\1' in program
.libs/snmpd.o:1: error: stray '\1' in program
.libs/snmpd.o:1: error: stray '\1' in program
.libs/snmpd.o:1:8: warning: null character(s) ignored
.libs/snmpd.o:1: error: stray '\1' in program
.libs/snmpd.o:1:18: warning: null character(s) ignored
.libs/snmpd.o:1: error: stray '\8' in program
.libs/snmpd.o:1:20: warning: null character(s) ignored
.libs/snmpd.o:1: error: stray '\1' in program
.libs/snmpd.o:1:22: warning: null character(s) ignored
.libs/snmpd.o:1: error: stray '\160' in program
.libs/snmpd.o:1: error: syntax error before "A"
.libs/snmpd.o:1:35: warning: null character(s) ignored
.libs/snmpd.o:1: error: stray '\7' in program
.libs/snmpd.o:1: error: stray '\16' in program
.libs/snmpd.o:1:39: warning: null character(s) ignored

... .......
.....
....
..

The error file is about 114 mb huge with similar errors.
I am forced to think this is more of some compiler mode issue
rather than anything with these files.

Can anyone provide detailed opinion on how to go forward and resolve the
5.4.2 compilation onto mipsel-target please?


Srikanth


---------------------------------------
Have you visited my site yet?
http://www.chowchowbath.com
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to