Error in cross-compiling bluez-utils
I succesfully cross-compiled bluez-libs for my arm platform board. But while compiling Bluez-utils I get error as below
/bin/sh ../libtool --mode=link arm-linux-gcc -I/usr/local/include -I/usr/local/include -Wall -O2 -D_FORTIFY_SOURCE=2 -o ppporc ppporc.o -L/home/Filesystem/root_Innovate-1.0/lib/ -lbluetooth
arm-linux-gcc -I/usr/local/include -I/usr/local/include -Wall -O2 -D_FORTIFY_SOURCE=2 -o ppporc ppporc.o -L/home/Filesystem/root_Innovate-1.0/lib/ /home/Filesystem/root_Innovate-1.0/lib//libbluetooth.so -Wl,--rpath -Wl,/home/Filesystem/root_Innovate-1.0/lib/ -Wl,--rpath -Wl,/home/Filesystem/root_Innovate-1.0/lib/
if arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I/usr/local/include -I/usr/local/include -Wall -O2 -D_FORTIFY_SOURCE=2 -MT hciattach.o -MD -MP -MF ".deps/hciattach.Tpo" \
-c -o hciattach.o `test -f 'hciattach.c' || echo './'`hciattach.c; \
then mv -f ".deps/hciattach.Tpo" ".deps/hciattach.Po"; \
else rm -f ".deps/hciattach.Tpo"; exit 1; \
fi
hciattach.c: In function `main':
hciattach.c:972: error: `PATH_MAX' undeclared (first use in this function)
hciattach.c:972: error: (Each undeclared identifier is reported only once
hciattach.c:972: error: for each function it appears in.)
hciattach.c:972: warning: unused variable `dev'
make[2]: *** [hciattach.o] Error 1
make[2]: Leaving directory `/root/bluez-utils-2.25/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bluez-utils-2.25'
make: *** [all] Error 2
Can anyone please help.
|