Problems (#1) - compilation of python fails due to missing -lbluetooth option (Ubuntu hardy) (#108) - Message List
Hi,
Not sure, why this happens:
I try to compile the sourcs of python--cwiid on ubuntu hardy
Compilation seems to be fine, but linking fails due to functions, which can not be found and which looked very bluetoothy: /data/sw/cwiid-0.6.00/wmgui/main.c:240: undefined reference to `str2ba' /data/sw/cwiid-0.6.00/wmgui/main.c:252: undefined reference to `str2ba' ../libcwiid/libcwiid.so: undefined reference to `hci_close_dev' ../libcwiid/libcwiid.so: undefined reference to `hci_get_route' ../libcwiid/libcwiid.so: undefined reference to `hci_inquiry' ../libcwiid/libcwiid.so: undefined reference to `hci_remote_name' ../libcwiid/libcwiid.so: undefined reference to `hci_open_dev' Entering: wmgui , repeating the link line with appended '-l bluetooth' fixes this issue. going back to the top level and retrying make.
Now the error reoccurs in directory wminput: However here I have to append '-lbluetooth -lrt' to make the link command work.
in directory lswm I need '-lbluetooth -lrt -lpthread' same for wmdemo.
1.) I wonder did anybody else have this proble,? 2.) What would be the clean way tofix this? 3,) Is this problem still there with newer versions of libcwiid?
Currently my 'fix' is: apt-get source python-cwiid cd cwiid-0.6.00 export LDFLAGS='-lbluetooth -lrt -lpthread' dpkg-buildpackage -rfakeroot -uc -b # now almos everything builds, but I get still one link error in # the directory wmgui. # it can be fixed with typing make
