[pulseaudio-discuss] LD error while configuring android-pulseaudio

최태양 taeels at gmail.com
Thu Feb 21 18:15:15 PST 2013


Hi :)
I'm currently trying to compile pulseaudio for android.

When I try "make pulseaudio-aggregate-configure" command, the LD error
occurs.

Error occurs when processing
"android/external/collabora/pulseaudio/pulseaudio/configure"

This is error msg in config.log
========================================================
configure:20026: checking for ltdl.h
configure:20026: result: yes
configure:20028: checking for lt_dladvise_init in -lltdl
configure:20053:
/home001/sunny.choi/sun/icsre_g1/android/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc
-std=gnu99 -o conftest -DANDROID -nostdlib -Bdynamic
-Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc
-I/home001/sunny.choi/sun/icsre_g1/android/external/collabora/pulseaudio/libtool/libltdl
-Wall -W -Wextra -pipe -Wno-long-long -Wvla -Wno-overlength-strings
-Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare
-Wformat-security -Wmissing-include-dirs -Wformat-nonliteral
-Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal
-Wmissing-prototypes -Wredundant-decls -Wmissing-declarations
-Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing
-Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2
-fno-common -fdiagnostics-show-option
-I/home001/sunny.choi/sun/icsre_g1/android/bionic/libc/arch-arm/include
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libc/include
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libstdc++/include
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libc/kernel/common
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libc/kernel/arch-arm
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libm/include
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libm/include/arm
 -I/home001/sunny.choi/sun/icsre_g1/android/bionic/libthread_db/include
-DFASTPATH -lc -ldl
-L/home001/sunny.choi/sun/icsre_g1/android/out/target/product/l0/obj/lib
/home001/sunny.choi/sun/icsre_g1/android/out/target/product/l0/obj/lib/crtbegin_dynamic.o

/home001/sunny.choi/sun/icsre_g1/android/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/armv7-a/libgcc.a
 /home001/sunny.choi/sun/icsre_g1/android/out/target/product/l0/obj/lib/crtend_android.o
conftest.c -lltdl   >&5
/home001/sunny.choi/sun/icsre_g1/android/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
*error: cannot find -lltdl*
/home001/sunny.choi/sun/icsre_g1/android/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
/tmp/ccaevOAC.o: in function main:conftest.c(.text+0x8): error: undefined
reference to 'lt_dladvise_init'
collect2: ld returned 1 exit status
===================================================================

As you can see, compile option has no problem.

libltdl is in
/home001/sunny.choi/sun/icsre_g1/android/external/collabora/pulseaudio/libtool/libltdl
directory.

But LD can't find libltdl..

How can I solve this problem?

Thank you :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20130222/09cc1697/attachment.html>


More information about the pulseaudio-discuss mailing list