It worked. I removed Android.mk from dund. Then got compilation error in hciattach.c for undeclared N_TTY. After commenting out last 4-5 lines after that, got everything compiled. Bluez worked fine after that.
However, might be useful to know what N_TTY is for and should I bother to find ways to compile bluez with it. Thanks, Zia On Feb 25, 2:43 am, Nick Pelly <[email protected]> wrote: > Sounds like our x86 (bionic?) libc does not have those symbols defined. > # grep -R siglongjmp bionic/ > bionic/libc/arch-arm/bionic/sigsetjmp.S: * C library -- sigsetjmp, siglongjmp > bionic/libc/arch-arm/bionic/sigsetjmp.S:ENTRY(siglongjmp) > bionic/libc/include/setjmp.h:void siglongjmp(sigjmp_buf, int); > > I am not sure why not. It may be just be an omission, you can look > into adding them. > > A workaround would be to remove the Android.mk in dund. We don't > actually use dund - it is just there for people who want to experiment > with it. > > Nick > > On Wed, Feb 25, 2009 at 12:50 AM, Zia <[email protected]> wrote: > > > Trying to use Bluetooth USB dongle with Android x86, I attempted to > > compile the eee pc release with BOARD_HAVE_BLUETOOTH := true as > > mentioned inhttp://source.android.com/projects/bluetooth-faq > > > However, I am getting the following errors. Any ideas how to fix it? > > > Thanks, > > > Zia > > > ~/mydroid$ CC=gcc-4.2 CXX=g++-4.2 TARGET_ARCH=x86 > > TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true make droid > > build/core/product_config.mk:211: WARNING: adding test OTA key > > ============================================ > > TARGET_PRODUCT=eee_701 > > TARGET_BUILD_VARIANT=eng > > TARGET_SIMULATOR= > > TARGET_BUILD_TYPE=release > > TARGET_ARCH=x86 > > HOST_ARCH=x86 > > HOST_OS=linux > > HOST_BUILD_TYPE=release > > BUILD_ID= > > ============================================ > > build/core/main.mk:180: implicitly installing apns-conf_sdk.xml > > target Executable: dund (out/target/product/eee_701/obj/EXECUTABLES/ > > dund_intermediates/LINKED/dund) > > out/target/product/eee_701/obj/EXECUTABLES/dund_intermediates/msdun.o: > > In function `sig_alarm': > > external/bluez/utils/dund/msdun.c:52: undefined reference to > > `siglongjmp' > > out/target/product/eee_701/obj/EXECUTABLES/dund_intermediates/msdun.o: > > In function `ms_dun': > > external/bluez/utils/dund/msdun.c:117: undefined reference to > > `sigsetjmp' > > external/bluez/utils/dund/msdun.c:149: undefined reference to > > `siglongjmp' > > collect2: ld returned 1 exit status > > make: *** [out/target/product/eee_701/obj/EXECUTABLES/ > > dund_intermediates/LINKED/dund] Error 1 --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
