Skip to contentSkip to conversation

sdp_send_req_w4_rsp not accessible

Bluez-devel Julien Campana 1 participant 1 message Mar 24, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel