//------------------------------------------------------------
makefile
CC = /LinuxPPC/CDK/bin/powerpc-linux-gcc
CPP = /LinuxPPC/CDK/bin/powerpc-linux-gcc \
-Iinclude -I$(srcdir)/include -I$(srcdir)/agent/mibgroup -I. -I$(srcdir)
\
-DDONT_INC_STRUCTS -DBINDIR=$(bindir) \
$(EXTRACPPFLAGS)
Libtool AR="/LinuxPPC/CDK/bin/power-linux-ar" CC="/LinuxPPC/CDK/bin/power-linux-gcc" //-------------------------------------------------------------------
So I use “make” to compile the program. But there is an error: //----------------------------------------------------------------------------------
making all in /mnt/diskd/net-snmp-5.1.1-for-ppc/snmplib
make[1]: Entering directory `/mnt/diskd/net-snmp-5.1.1-for-ppc/snmplib'
/bin/sh ../libtool --mode=compile /LinuxPPC/CDK/bin/powerpc-linux-gcc -I../include -I../include -I. -I.. -I. -I./.. -g -O2 -Dlinux -c -o mib.lo mib.c
rm -f .libs/mib.lo
/LinuxPPC/CDK/bin/powerpc-linux-gcc -I../include -I../include -I. -I.. -I. -I./.. -g -O2 -Dlinux -c mib.c -fPIC -DPIC -o .libs/mib.lo
In file included from ../include/net-snmp/utilities.h:39,
from mib.c:85:
../include/net-snmp/library/system.h:110: parse error before `get_myaddr'
../include/net-snmp/library/system.h:110: warning: data definition has no type or storage class
make[1]: *** [mib.lo] Error 1
make[1]: Leaving directory `/mnt/diskd/net-snmp-5.1.1-for-ppc/snmplib'
make: *** [subdirs] Error 1
//----------------------------------------------------------------------------------------
Then I use the libtool without change(CC=gcc, AR=ar), the result of compiling is right. But it is obviously that the file compiled can’t be used in my target board. What should I do with my makefile and libtool file? Thank you very much !
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
