make[2]: Entering directory `/home/blueZ/bluez-utils-3.36/sbc'
/bin/sh ../libtool --tag=CC --mode=link arm-linux-gcc -I/usr/local/arm/3.4.1/arm-linux/include -Wall -O2 -D_FORTIFY_SOURCE=2 -fPIE -pie -o sbcinfo sbcinfo.o
arm-linux-gcc -I/usr/local/arm/3.4.1/arm-linux/include -Wall -O2 -D_FORTIFY_SOURCE=2 -fPIE -pie -o sbcinfo sbcinfo.o
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x44): In function `__libc_csu_init':
: undefined reference to `__init_array_end'
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x48): In function `__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x8c): In function `__libc_csu_fini':
: undefined reference to `__fini_array_end'
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/lib/libc_nonshared.a(elf-init.oS)(.text+0x90): In function `__libc_csu_fini':
: undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
make[2]: *** [sbcinfo] 错误 1
make[2]: Leaving directory `/home/blueZ/bluez-utils-3.36/sbc'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/blueZ/bluez-utils-3.36'
make: *** [all] 错误 2
原因:auto工具生成的makefile文件,在链接libc_nonshared.a时使用gcc -Wall,正确的用法是gcc -shared
方法:在sbc目录里面的makefile文件里的wall 改为shared
所有的类色的问题都可以这样的解决,
今年在移植bluez时遇到的问题,纪念之
阅读(3128) | 评论(0) | 转发(0) |