Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 07-01-2009, 01:30 AM   #1
LQ Newbie
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Cannot cross-compile bluez-util..pls help

I succesfully cross-compiled bluez-libs for my arm platform board on my host PC. But while compiling Bluez-utils I get error as below

-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; \
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

the command I gave while configuring is

./configure --host=arm-linux --target=arm-linux --libdir=/home/Filesystem/root_Innovate-1.0/lib/ --bindir=/home/Filesystem/root_Innovate-1.0/usr/bin/ --includedir=/home/Filesystem/root_Innovate-1.0/usr/include/ --sbindir=/home/Filesystem/root_Innovate-1.0/usr/sbin/ --datadir=/home/Filesystem/root_Innovate-1.0/share --sharedstatedir=/home/Filesystem/root_Innovate-1.0/com --sysconfdir=/home/Filesystem/root_Innovate-1.0/etc --infodir=/home/Filesystem/root_Innovate-1.0/info --mandir=/home/Filesystem/root_Innovate-1.0/man

Can anyone please help.
Old 07-09-2009, 12:40 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
Check if this file (hciattach.c) includes linux/limits.h. That's where PATH_MAX is defined. If not, add it. But, a warning: it may be a trace of a bigger problem so make sure, for instance, that the include files are included from the directories you really want them.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help regarding installing cross compiled bluez mrmuds Linux - Software 3 07-01-2009 08:36 AM
Cross compiling Bluez-utils for ARM deshu Linux - Software 1 03-06-2009 01:29 PM
bluez util and openobex installation megha6788 Linux - Newbie 1 09-21-2008 05:59 AM
how to cross-compile bluez-utils? cloudlast Linux - Software 1 04-29-2008 06:24 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration