[BusyBox] undefined reference to `_IO_getc' (in BlueZ utils)

Manuel Novoa III mjn3 at codepoet.org
Thu Mar 17 16:20:50 UTC 2005


You are building with the wrong headers.  uClibc does not implement
the glibc-specific internal _IO_getc function.

Manuel

On Thu, Mar 17, 2005 at 03:10:22PM +0100, Stephan Henningsen wrote:
> I am getting these errors when compiling bluez-utils.
> I am compiling manuelly, invoking the make command without the use of 
> buildroot scripts,
> but I am using the toolchain that buildroot made me (with its scripts).
> 
> Did I configure or compile something in the toolchain?  Perhaps in the 
> bluez-libs?
> 
> 
> sth at speedball:~/au/buildroot/build_arm/bluez-utils-2.15$ 
> LDFLAGS=-L/home/sth/au/buildroot/build_arm/root/usr/lib 
> DESTDIR=/home/sth/au/buildroot/build_arm/root TARGET=arm-linux-uclibc 
> ARCH=arm CROSS_TOOLS=arm-linux-uclibc- CROSS_COMPILE=arm-linux-uclibc- make
> make  all-recursive
> make[1]: Entering directory 
> `/home/sth/au/buildroot/build_arm/bluez-utils-2.15'
> Making all in hcid
> make[2]: Entering directory 
> `/home/sth/au/buildroot/build_arm/bluez-utils-2.15/hcid'
> arm-linux-uclibc-gcc -I/usr/include -DDBUS_API_SUBJECT_TO_CHANGE  -Wall -O2 
> -L/home/sth/au/buildroot/build_arm/root/usr/lib -o hcid  main.o security.o 
> storage.o lib.o parser.o lexer.o kword.o glib-ectomy.o     -L/usr/lib 
> -lbluetooth
> /home/sth/au/buildroot/build_arm/staging_dir/bin-ccache/../lib/gcc-lib/arm-linux-uclibc/3.3.4/../../../../arm-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
> /home/sth/au/buildroot/build_arm/staging_dir/bin-ccache/../lib/gcc-lib/arm-linux-uclibc/3.3.4/../../../../arm-linux-uclibc/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
> main.o(.text+0x88): In function `alloc_device_opts':
> : undefined reference to `__strdup'
> main.o(.text+0xc20): In function `main':
> : undefined reference to `__strdup'
> lib.o(.text+0x158): In function `get_host_name':
> : undefined reference to `__strdup'
> lib.o(.text+0x1f0): In function `init_title':
> : undefined reference to `__strdup'
> parser.o(.text+0x3b0): In function `yyparse':
> : undefined reference to `__strdup'
> parser.o(.text+0x4c0): more undefined references to `__strdup' follow
> lexer.o(.text+0x318): In function `yylex':
> : undefined reference to `__strtol_internal'
> lexer.o(.text+0x8f8): In function `yy_get_next_buffer':
> : undefined reference to `_IO_getc'
> collect2: ld returned 1 exit status
> make[2]: *** [hcid] Error 1
> make[2]: Leaving directory 
> `/home/sth/au/buildroot/build_arm/bluez-utils-2.15/hcid'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/home/sth/au/buildroot/build_arm/bluez-utils-2.15'
> make: *** [all] Error 2
> sth at speedball:~/au/buildroot/build_arm/bluez-utils-2.15$
> 
> -- 
> Stephan Henningsen
> Software developer
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox



More information about the busybox mailing list