日期:2014-05-16  浏览次数:20703 次

交叉编译问题,msg.o: could not read symbols: File in wrong format




arm-none-linux-gnueabi-gcc -static -I../include -I./../lib -I./../include -D__USE_FIXED_PROTOTYPES__ -D_THREAD_SAFE -DHAVE_CONFIG_H -fpic -DFOR_SHARED_LIBRARY -DIN_LIBRARY -c ./../lib/gss.c
cc1: warning: include location "/usr/include/mysql" is unsafe for cross-compilation

gcc -o libsocks5_sh.so -shared msg.o protocol.o log.o hostname.o confutil.o buffer.o cache.o wrap.o wrap_tcp.o wrap_udp.o conf.o libproto.o select.o rld.o null.o addr.o upwd.o gss.o -ldl -lnsl -lc 

/usr/bin/ld: msg.o: Relocations in generic ELF (EM: 40)

msg.o: could not read symbols: File in wrong format


------解决方案--------------------
msg.o重新编下,编之前删掉之前的
------解决方案--------------------
makefile有问题.

链接器设成gcc了而不是armxxxxgcc