arm-linux-gcc glibc,关于arm-linux-gcc 4.5.1 和glibc_2

今天用友善之臂提供的arm-linux-gcc 4.5.1编译链接一个动态链接库 遇到一下报错信息:

root@wing:/mnt/hgfs/work/ARM-EXAMPLE# make

arm-linux-gcc pubsync.c -o pubsync  libmqttv3c.so -lpthread

libmqttv3c.so: undefined reference to `realloc@GLIBC_2.0'

libmqttv3c.so: undefined reference to `stdout@GLIBC_2.0'

libmqttv3c.so: undefined reference to `inet_ntop@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fgets@GLIBC_2.0'

libmqttv3c.so: undefined reference to `mkdir@GLIBC_2.0'

libmqttv3c.so: undefined reference to `readdir@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_mutex_init@GLIBC_2.0'

libmqttv3c.so: undefined reference to `memset@GLIBC_2.0'

libmqttv3c.so: undefined reference to `shutdown@GLIBC_2.0'

libmqttv3c.so: undefined reference to `difftime@GLIBC_2.0'

libmqttv3c.so: undefined reference to `closedir@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strrchr@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strncpy@GLIBC_2.0'

libmqttv3c.so: undefined reference to `writev@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strerror@GLIBC_2.0'

libmqttv3c.so: undefined reference to `recv@GLIBC_2.0'

libmqttv3c.so: undefined reference to `getsockopt@GLIBC_2.0'

libmqttv3c.so: undefined reference to `usleep@GLIBC_2.0'

libmqttv3c.so: undefined reference to `vsnprintf@GLIBC_2.0'

libmqttv3c.so: undefined reference to `select@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strcmp@GLIBC_2.0'

libmqttv3c.so: undefined reference to `getaddrinfo@GLIBC_2.0'

libmqttv3c.so: undefined reference to `__lxstat@GLIBC_2.0'

libmqttv3c.so: undefined reference to `localtime@GLIBC_2.0'

libmqttv3c.so: undefined reference to `ftell@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fcntl@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strftime@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strtok_r@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strchr@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_cond_destroy@GLIBC_2.3.2'

libmqttv3c.so: undefined reference to `fwrite@GLIBC_2.0'

libmqttv3c.so: undefined reference to `getenv@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fseek@GLIBC_2.0'

libmqttv3c.so: undefined reference to `__xstat@GLIBC_2.0'

libmqttv3c.so: undefined reference to `rename@GLIBC_2.0'

libmqttv3c.so: undefined reference to `malloc@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strstr@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strncmp@GLIBC_2.0'

libmqttv3c.so: undefined reference to `freeaddrinfo@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fflush@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fread@GLIBC_2.0'

libmqttv3c.so: undefined reference to `stderr@GLIBC_2.0'

libmqttv3c.so: undefined reference to `memcpy@GLIBC_2.0'

libmqttv3c.so: undefined reference to `rmdir@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strlen@GLIBC_2.0'

libmqttv3c.so: undefined reference to `close@GLIBC_2.0'

libmqttv3c.so: undefined reference to `__errno_location@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_self@GLIBC_2.0'

libmqttv3c.so: undefined reference to `signal@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_cond_timedwait@GLIBC_2.3.2'

libmqttv3c.so: undefined reference to `fopen@GLIBC_2.1'

libmqttv3c.so: undefined reference to `remove@GLIBC_2.0'

libmqttv3c.so: undefined reference to `connect@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_mutex_lock@GLIBC_2.0'

libmqttv3c.so: undefined reference to `socket@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_cond_signal@GLIBC_2.3.2'

libmqttv3c.so: undefined reference to `time@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fprintf@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_mutex_destroy@GLIBC_2.0'

libmqttv3c.so: undefined reference to `atoi@GLIBC_2.0'

libmqttv3c.so: undefined reference to `strcpy@GLIBC_2.0'

libmqttv3c.so: undefined reference to `getpeername@GLIBC_2.0'

libmqttv3c.so: undefined reference to `opendir@GLIBC_2.0'

libmqttv3c.so: undefined reference to `sprintf@GLIBC_2.0'

libmqttv3c.so: undefined reference to `exit@GLIBC_2.0'

libmqttv3c.so: undefined reference to `snprintf@GLIBC_2.0'

libmqttv3c.so: undefined reference to `pthread_cond_init@GLIBC_2.3.2'

libmqttv3c.so: undefined reference to `pthread_mutex_unlock@GLIBC_2.0'

libmqttv3c.so: undefined reference to `gettimeofday@GLIBC_2.0'

libmqttv3c.so: undefined reference to `unlink@GLIBC_2.0'

libmqttv3c.so: undefined reference to `free@GLIBC_2.0'

libmqttv3c.so: undefined reference to `fclose@GLIBC_2.1'

collect2: ld returned 1 exit status

make: *** [all] 错误 1

查看了下arm-linux-gcc的信息 如下:

root@wing:~# arm-linux-gcc -v

Using built-in specs.

COLLECT_GCC=arm-linux-gcc

COLLECT_LTO_WRAPPER=/usr/arm-linux-gcc-4.5.1/bin/../libexec/gcc/arm-none-linux-gnueabi/4.5.1/lto-wrapper

Target: arm-none-linux-gnueabi

Configured with: /work/toolchain/build/src/gcc-4.5.1/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1 --with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/ --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static --enable-threads=posix --with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long

Thread model: posix

gcc version 4.5.1 (ctng-1.8.1-FA)

不知道是不是因为友善之臂没有吧glibc库编译到gcc里面,

有没有哪位仁兄遇到过类似问题,或者知道原因的  希望共同探讨下

不胜感激!!!!!!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值