Compiling bluez-utils on uclibc gives errors

sumit.jain at nokia.com sumit.jain at nokia.com
Thu Jun 14 07:33:54 UTC 2007


Hi,
I am trying to compile bluez-utils on uclibc. I get many errors like
undefined ENOKEY. After defining them as 126 in my source files, I get
another error like 

make[3]: Entering directory
`/home/sumit/my_rootstrap/bluez-utils-3.11/tools'
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT hcitool.o -MD -MP -MF ".deps/hcitool.Tpo" -c -o
hcitool.o hcitool.c; \
then mv -f ".deps/hcitool.Tpo" ".deps/hcitool.Po"; else rm -f
".deps/hcitool.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc  -g -Wall -O2
-D_FORTIFY_SOURCE=2   -o hcitool  hcitool.o -lbluetooth
../common/libhelper.a
mkdir .libs
cc -g -Wall -O2 -D_FORTIFY_SOURCE=2 -o hcitool hcitool.o
/usr/lib/libbluetooth.so ../common/libhelper.a
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT l2ping.o -MD -MP -MF ".deps/l2ping.Tpo" -c -o
l2ping.o l2ping.c; \
then mv -f ".deps/l2ping.Tpo" ".deps/l2ping.Po"; else rm -f
".deps/l2ping.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc  -g -Wall -O2
-D_FORTIFY_SOURCE=2   -o l2ping  l2ping.o -lbluetooth
cc -g -Wall -O2 -D_FORTIFY_SOURCE=2 -o l2ping l2ping.o
/usr/lib/libbluetooth.so
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT sdptool.o -MD -MP -MF ".deps/sdptool.Tpo" -c -o
sdptool.o sdptool.c; \
then mv -f ".deps/sdptool.Tpo" ".deps/sdptool.Po"; else rm -f
".deps/sdptool.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc  -g -Wall -O2
-D_FORTIFY_SOURCE=2   -o sdptool  sdptool.o -lbluetooth
../common/libhelper.a
cc -g -Wall -O2 -D_FORTIFY_SOURCE=2 -o sdptool sdptool.o
/usr/lib/libbluetooth.so ../common/libhelper.a
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT ciptool.o -MD -MP -MF ".deps/ciptool.Tpo" -c -o
ciptool.o ciptool.c; \
then mv -f ".deps/ciptool.Tpo" ".deps/ciptool.Po"; else rm -f
".deps/ciptool.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc  -g -Wall -O2
-D_FORTIFY_SOURCE=2   -o ciptool  ciptool.o -lbluetooth
cc -g -Wall -O2 -D_FORTIFY_SOURCE=2 -o ciptool ciptool.o
/usr/lib/libbluetooth.so
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT hcisecfilter.o -MD -MP -MF
".deps/hcisecfilter.Tpo" -c -o hcisecfilter.o hcisecfilter.c; \
then mv -f ".deps/hcisecfilter.Tpo" ".deps/hcisecfilter.Po"; else rm -f
".deps/hcisecfilter.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc  -g -Wall -O2
-D_FORTIFY_SOURCE=2   -o hcisecfilter  hcisecfilter.o
cc -g -Wall -O2 -D_FORTIFY_SOURCE=2 -o hcisecfilter hcisecfilter.o
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT ppporc.o -MD -MP -MF ".deps/ppporc.Tpo" -c -o
ppporc.o ppporc.c; \
then mv -f ".deps/ppporc.Tpo" ".deps/ppporc.Po"; else rm -f
".deps/ppporc.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link cc  -g -Wall -O2
-D_FORTIFY_SOURCE=2   -o ppporc  ppporc.o -lbluetooth
cc -g -Wall -O2 -D_FORTIFY_SOURCE=2 -o ppporc ppporc.o
/usr/lib/libbluetooth.so
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../common    -g -Wall -O2
-D_FORTIFY_SOURCE=2 -MT hciattach.o -MD -MP -MF ".deps/hciattach.Tpo" -c
-o hciattach.o hciattach.c; \
then mv -f ".deps/hciattach.Tpo" ".deps/hciattach.Po"; else rm -f
".deps/hciattach.Tpo"; exit 1; fi
hciattach.c: In function `uart_speed':
hciattach.c:108: error: `B230400' undeclared (first use in this
function)
hciattach.c:108: error: (Each undeclared identifier is reported only
once
hciattach.c:108: error: for each function it appears in.)
hciattach.c:110: error: `B460800' undeclared (first use in this
function)
hciattach.c:112: error: `B500000' undeclared (first use in this
function)
hciattach.c:114: error: `B576000' undeclared (first use in this
function)
hciattach.c:116: error: `B921600' undeclared (first use in this
function)
hciattach.c:118: error: `B1000000' undeclared (first use in this
function)
hciattach.c:120: error: `B1152000' undeclared (first use in this
function)
hciattach.c:122: error: `B1500000' undeclared (first use in this
function)
make[3]: *** [hciattach.o] Error 1
make[3]: Leaving directory
`/home/sumit/my_rootstrap/bluez-utils-3.11/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sumit/my_rootstrap/bluez-utils-3.11'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sumit/my_rootstrap/bluez-utils-3.11'
make: *** [debian/stamp-makefile-build] Error 2

After taking a look at termios.h, I see that these are commented for
uclibc.

#define  B57600   0010001
#define  B115200  0010002
#if 0 /* limited on uClibc, keep in sync w/ cfsetspeed.c */
#define  B230400  0010003
#define  B460800  0010004
#define  B500000  0010005
#define  B576000  0010006
#define  B921600  0010007
#define  B1000000 0010010
#define  B1152000 0010011
#define  B1500000 0010012
#define  B2000000 0010013
#define  B2500000 0010014
#define  B3000000 0010015
#define  B3500000 0010016
#define  B4000000 0010017
#define __MAX_BAUD B4000000
#else
#define __MAX_BAUD B115200
#endif
#ifdef __USE_MISC

Any reason as to why this is done. Is is ok if I uncomment them and
compile my source. Any pointers will be very helpful.

Regards,
Sumit

Sumit Kumar Jain
Nokia India Pvt. Ltd.
Bangalore.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20070614/867d33ff/attachment-0002.htm 


More information about the uClibc mailing list