[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] Compiling BT stack on standard Linux!



Hi, Greg!

>===== Original Message From Greg KH <greg@xxxxxxx.com> =====
>On Wed, Feb 14, 2001 at 07:04:19AM -0500, David Campos Neves wrote:
>> Hi,
>> >===== Original Message From Gordon McNutt <gmcnutt@xxxxxxx.com> =====
>> >
>> >Stack version? Linux kernel version? Distro?
>> >
>> Sorry! (I thought that it was only a question of using the right compiler 
with
>> the right options.)
>> I'm using the stack from 2001/01/08 on kernel 2.2.17 with Mandrake 7.2
>> distribution.

>
>What is the _exact_ error that you get when you try to compile the
>stack?
>
Appended at the end of this message is the output from make.
(Sorry for the large post!)

>And have you tried the patch that I sent out for RedHat 7.0 that is in
>the archives?  The same thing might be happening here (don't run
>Mandrake, so I couldn't be sure.)
>
>thanks,
>
>greg k-h
>
I did, and it almost worked (it compiled the sources under "src") but when
it tries to compile btd or btuser, it fails because it cannot find the header
files: readline.h and history.h (like it says near the end of the appended
file). I ran a "find" trough my hd and didn't found a trace of the files 
mentioned! If I comment the offending lines (a desperate move I know :-) ) It
doesn't find the corresponding library either ("readline" i think).

I guess I just have to change to Redhat if it works there!
I just thought all the distros were supposed to behave the same way! <sigh>
(I've lost a lot of time trying to make it work!!!)

Thank you,
David Neves.

----- Result from make: ------
make -C src
make[1]: Entering directory `/home/dpcn/bluetooth/src'
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o bluetooth.o 
bluetooth.c
/tmp/ccDmUYUk.s: Assembler messages:
/tmp/ccDmUYUk.s:9: Warning: Ignoring changed section attributes for .modinfo
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o btdebug.o 
btdebug.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o btmem.o 
btmem.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o hci.o hci.c
hci.c:2207: warning: `write_inquiryscan_activity' defined but not used
hci.c:186: warning: `write_authentication_enable' declared `static' but never 
defined
hci.c:2338: warning: `write_automatic_flush_timeout' defined but not used
hci.c:237: warning: `hci_receive_timer' defined but not used
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o l2cap.o 
l2cap.c
../include/linux/bluetooth/l2cap_internal.h:45: warning: `bool2str' defined 
but not used
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o rfcomm.o 
rfcomm.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o sdp.o sdp.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o tcs.o tcs.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o bt_proc.o 
bt_proc.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o hci_vendor.o 
hci_vendor.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o l2cap_con.o 
l2cap_con.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o sec_client.o 
sec_client.c
sec_client.c:104: warning: initialization from incompatible pointer type
sec_client.c:105: warning: initialization from incompatible pointer type
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o l2cap_sec.o 
l2cap_sec.c
gcc -D__KERNEL__ -DMODULE -I/usr/include -I../include -Wall 
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce 
-DMODVERSIONS -include /usr/include/linux/modversions.h   -c -o rfcomm_sec.o 
rfcomm_sec.c
ld -r -o bt.o bluetooth.o btdebug.o btmem.o hci.o l2cap.o rfcomm.o sdp.o tcs.o 
bt_proc.o hci_vendor.o l2cap_con.o sec_client.o l2cap_sec.o rfcomm_sec.o
make[1]: Leaving directory `/home/dpcn/bluetooth/src'
make -C libs install
make[1]: Entering directory `/home/dpcn/bluetooth/libs'
Making install in expat
make[2]: Entering directory `/home/dpcn/bluetooth/libs/expat'
Making install in xmltok
make[3]: Entering directory `/home/dpcn/bluetooth/libs/expat/xmltok'
gcc -O2 -Wall -g -Wall   -c -o xmltok.o xmltok.c
In file included from xmltok.c:260:
xmltok_impl.c: In function `normal_getAtts':
xmltok_impl.c:1394: warning: `open' might be used uninitialized in this 
function
In file included from xmltok.c:653:
xmltok_impl.c: In function `little2_getAtts':
xmltok_impl.c:1394: warning: `open' might be used uninitialized in this 
function
In file included from xmltok.c:792:
xmltok_impl.c: In function `big2_getAtts':
xmltok_impl.c:1394: warning: `open' might be used uninitialized in this 
function
xmltok.c: In function `initScan':
xmltok.c:1494: warning: subscript has type `char'
gcc -O2 -Wall -g -Wall   -c -o xmlrole.o xmlrole.c
ar ucvr libxmltok.a xmltok.o xmlrole.o
a - xmltok.o
a - xmlrole.o
ranlib libxmltok.a
install -d /home/dpcn/bluetooth/hroot/lib
install -d /home/dpcn/bluetooth/hroot/include
install -m 0644 libxmltok.a /home/dpcn/bluetooth/hroot/lib/
install -m 0644 xmltok.h /home/dpcn/bluetooth/hroot/include/
make[3]: Leaving directory `/home/dpcn/bluetooth/libs/expat/xmltok'
Making install in xmlparse
make[3]: Entering directory `/home/dpcn/bluetooth/libs/expat/xmlparse'
gcc -O2 -Wall -g -Wall  -I../xmltok   -c -o xmlparse.o xmlparse.c
xmlparse.c: In function `storeEntityValue':
xmlparse.c:2486: warning: unused variable `internalEnc'
xmlparse.c: At top level:
xmlparse.c:2341: warning: `errorProcessor' defined but not used
gcc -O2 -Wall -g -Wall  -I../xmltok   -c -o hashtable.o hashtable.c
ar ucvr libxmlparse.a xmlparse.o hashtable.o
a - xmlparse.o
a - hashtable.o
ranlib libxmlparse.a
install -d /home/dpcn/bluetooth/hroot/lib
install -d /home/dpcn/bluetooth/hroot/include
install -m 0644 libxmlparse.a /home/dpcn/bluetooth/hroot/lib/
install -m 0644 xmlparse.h /home/dpcn/bluetooth/hroot/include/
make[3]: Leaving directory `/home/dpcn/bluetooth/libs/expat/xmlparse'
make[2]: Leaving directory `/home/dpcn/bluetooth/libs/expat'
make[1]: Leaving directory `/home/dpcn/bluetooth/libs'
make -C apps
make[1]: Entering directory `/home/dpcn/bluetooth/apps'
Making all in btd
make[2]: Entering directory `/home/dpcn/bluetooth/apps/btd'
gcc -O2 -Wall -g -I/home/dpcn/bluetooth/hroot/include   -c -o btd.o btd.c
btd.c:137: readline/readline.h: No such file or directory
btd.c:138: readline/history.h: No such file or directory
make[2]: *** [btd.o] Error 1
make[2]: Leaving directory `/home/dpcn/bluetooth/apps/btd'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/home/dpcn/bluetooth/apps'
make: *** [all] Error 2

---
David Campos Neves (dcn@xxxxxxx.org)

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com