From: Julien Campana <juliencampana@yahoo.fr>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] sdp_send_req_w4_rsp not accessible
Date: Wed, 24 Mar 2004 18:16:12 +0100 [thread overview]
Message-ID: <1080148571.939.67.camel@fischer> (raw)
Hi everybody,
I'm trying to extend JBlueZ, which links BlueZ and java, in order to
make it JSR82 compatible (Java Bluetooth Spetification).
BlueZ uses sdp_record_t structures to store the list of service
attributes and I'm trying to modify it in order to get some Java Objects
(with JNI) instead.
To do this, I have to re-implement the "sdp_service_search_attr_req"
function.
But the project do not compile because some sdp fucntions cannot not be
linked. I'm getting the following error message:
/tmp/ccvRmUPO.o(.text+0x158e): In function
`my_sdp_service_search_attr_req(sdp_session_t*, _sdp_list const*,
sdp_attrreq_type_t, _sdp_list const*, _sdp_list**)':
: undefined reference to `sdp_send_req_w4_rsp(sdp_session_t*, char*,
char*, int, int*)'
The function my_sdp_service_search_attr_req has exactly the same
implementation as the official function sdp_service_search_attr_req (for
the moment).
I use the following gcc command (java headers for JNI +
/home/julien/bluez/include to get the "sdp_internal.h" header):
gcc -I /home/java/include -I /home/java/include/linux
-I/home/julien/bluez/include BlueZ.cpp -o ../bin/jbluez -lsdp
-lbluetooth -lstdc++
The function can be found into the installed bluetooth library:
nm --dynamic /usr/lib/libsdp.so.2 | grep sdp_send
00002080 T sdp_send_req
000021c0 T sdp_send_req_w4_rsp
I use debian (Knoppix 3.1 with kernel 2.4.20: I know its an old one),
libsdp 1-5-2, libbluetooth 2-5-1, gcc 3.3 (Debian),
I've tried to compile the project on three different machines (2 Knoppix
with different kernels and a Suse) and the problem remains.
The same problem occurs with following sdp functions:
sdp_extract_seqtype, sdp_extract_pdu, `sdp_gen_pdu.
Does anybody have an idea?
Thank you for your answers.
Julien Campana
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
reply other threads:[~2004-03-24 17:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1080148571.939.67.camel@fischer \
--to=juliencampana@yahoo.fr \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).