Hello,
 I am trying to cross compile net snmp 5.4.1 for a mips processor. Make
is throwing some error :(
 
my gcc:
 
#$TOOL_CHAIN-gcc --version
mipsisa32-xlr-linux-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

 
#./configure cross_compiling=yes --with-endianness=big --without-rpm
--without-openssl  --prefix=/home/lab/MobileIPV4/my_bin/snmp
--exec-prefix=/home/lab/MobileIPV4/my_bin/snmp  --enable-debugging
--enable-developer --with-cc=$TOOL_CHAIN-gcc
--with-linkcc=$TOOL_CHAIN-gcc --with-ld=$TOOL_CHAIN-ld
 
 
#make
making all in /home/lab/MobileIPV4/CAPC_Stuffs/net-snmp-5.4.1/snmplib
make[1]: Entering directory
`/home/lab/MobileIPV4/CAPC_Stuffs/net-snmp-5.4.1/snmplib'
/bin/sh ../libtool  --mode=compile
/opt/rmi/1.3/mipscross/crosstool/gcc-3.4.3-glibc-2.3.6/mipsisa32-xlr-lin
ux/bin/mipsisa32-xlr-linux-gcc -I../include -I.    -I../snmplib
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -g -O2 -Ulinux
-Dlinux=linux -Wall -Winline -Wstrict-prototypes -Wwrite-strings
-Wcast-qual -Wno-char-subscripts -c -o mib.lo mib.c
 
/opt/rmi/1.3/mipscross/crosstool/gcc-3.4.3-glibc-2.3.6/mipsisa32-xlr-lin
ux/bin/mipsisa32-xlr-linux-gcc -I../include -I. -I../snmplib
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -g -O2 -Ulinux
-Dlinux=linux -Wall -Winline -Wstrict-prototypes -Wwrite-strings
-Wcast-qual -Wno-char-subscripts -c mib.c  -fPIC -DPIC -o .libs/mib.o
In file included from ../include/net-snmp/utilities.h:39,
                 from mib.c:85:
../include/net-snmp/library/system.h:114: error: parse error before
"__extension__"
../include/net-snmp/library/system.h:114: error: `__len' undeclared here
(not in a function)
../include/net-snmp/library/system.h:114: error: initializer element is
not constant
../include/net-snmp/library/system.h:114: error: parse error before "if"
../include/net-snmp/library/system.h:114: warning: type defaults to
`int' in declaration of `__retval'
../include/net-snmp/library/system.h:114: error: conflicting types for
'__retval'
../include/net-snmp/library/system.h:114: error: previous definition of
'__retval' was here
../include/net-snmp/library/system.h:114: warning: data definition has
no type or storage class
../include/net-snmp/library/system.h:114: error: parse error before '}'
token
../include/net-snmp/library/system.h:135: error: parse error before
"__extension__"
make[1]: *** [mib.lo] Error 1
make[1]: Leaving directory
`/home/lab/MobileIPV4/CAPC_Stuffs/net-snmp-5.4.1/snmplib'
make: *** [subdirs] Error 1

 
 
Regards,
Raveendra Kulkarni
 
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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