LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2006, 04:35 PM   #1
NoIdentity
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
BTSCO compile errors


Hi,

I'm trying to get my dell latitude x300 running knoppix talking to my motorola h500 bluetooth handsfree. I have been following this howto.

I installed all the bluez packages and also alsa-base, alsa-source, alsa-utils, automake, autoconf, libtool.

The following code goes smoothly:
Code:
cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc login 
cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc co sbc
cd sbc
./bootstrap
./configure --prefix=/usr
make
sudo make install
And so does this code up to a point:
Code:
cvs -d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa login 
cvs -d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa co btsco
cd btsco
./bootstrap
./configure --prefix=/usr --enable-alsaplugin
make
sudo make install
When I make, I get the following errors:
Code:
make  all-recursive
make[1]: Entering directory `/usr/src/btsco'
Making all in sbc
make[2]: Entering directory `/usr/src/btsco/sbc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/btsco/sbc'
Making all in avdtp
make[2]: Entering directory `/usr/src/btsco/avdtp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/btsco/avdtp'
Making all in alsa-plugins
make[2]: Entering directory `/usr/src/btsco/alsa-plugins'
Making all in headsetd
make[3]: Entering directory `/usr/src/btsco/alsa-plugins/headsetd'
gcc -DHAVE_CONFIG_H -I. -I. -I../..     -Wall -O2 -c states.c
In file included from states.c:24:
/usr/include/bluetooth/rfcomm.h:47: error: syntax error before "sa_family_t"
/usr/include/bluetooth/rfcomm.h:50: error: syntax error before '}' token
states.c: In function `rfcommConnectAsync':
states.c:140: error: storage size of `addr' isn't known
states.c:140: warning: unused variable `addr'
states.c: In function `headsetIdleHandleRfcommConnReq':
states.c:321: error: storage size of `client_addr' isn't known
states.c:321: warning: unused variable `client_addr'
make[3]: *** [states.o] Error 1
make[3]: Leaving directory `/usr/src/btsco/alsa-plugins/headsetd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/btsco/alsa-plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/btsco'
make: *** [all-recursive-am] Error 2
I would greatly appreciate any help.

Thanks in advance.
 
Old 11-17-2006, 01:08 PM   #2
NoIdentity
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Turns out the make file specified CC=C89, I just changed it to CC=gcc and that did the trick.
 
Old 12-20-2006, 11:48 AM   #3
ashura2523
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Hi,

unfortunately that trick doesnt work with my system.
Makefile sets CC=gcc but those errors are still there.
I have tried adding
#include <sys/socket.h>
into rfcomm.h file to solve the following err

----------------------
/usr/include/bluetooth/rfcomm.h:47: error: syntax error before "sa_family_t"
/usr/include/bluetooth/rfcomm.h:50: error: syntax error before '}' token
states.c: In function `rfcommConnectAsync':
states.c:140: error: storage size of `addr' isn't known
states.c:140: warning: unused variable `addr'
states.c: In function `headsetIdleHandleRfcommConnReq':
states.c:321: error: storage size of `client_addr' isn't known
states.c:321: warning: unused variable `client_addr'
----------------------

but there is a new error with
sdp.c: undefined reference to 'sdp_device_record_register'
which I really have no idea where to find it.

Has anybody successfully installed this headsetd from bluetooth alsa?

Cheers,
Sirin

PS:I downloaded the source from sourceforge.net "btsco-0.5"
 
Old 01-02-2007, 08:38 AM   #4
mvak
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
update your bluez-libs

This error says what your bluez-libs-devel (headers files) outdated, try to get newer
 
  


Reply



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
BTSCO Configure Says Bluetooth.h isn't there..But it is! fortezza Linux - Software 6 07-03-2006 12:07 AM
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 12:11 AM
compile errors davidleroux1 Programming 4 05-10-2005 10:03 PM
C++ compile errors Palamides Programming 1 03-09-2005 06:28 AM
Compile Errors userini Linux - Software 6 07-16-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 AM.

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