[#3871] build libao fails for no dlfcn.h

Document created by Aaronwu Employee on Aug 28, 2013
Version 1Show Document
  • View in full screen mode

[#3871] build libao fails for no dlfcn.h

Submitted By: Mingquan Pan

Open Date

2008-01-29 01:04:15     Close Date

2008-01-31 20:41:47

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

08r1-6

App binary format:

N/A     

Summary: build libao fails for no dlfcn.h

Details:

 

build libao in flat format fails for no dlfcn.h.

 

 

make[6]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libao/build-libao-0.8.6/src'^M

if /bin/sh ../libtool --mode=compile bfin-uclinux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libao\" -DVERSION=\"0.8.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 -DDLOPEN_FLAG=\(RTLD_NOW\ \|\ RTLD_GLOBAL\) -DSHARED_LIB_EXT=\".so\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_SYS_SOUNDCARD_H=1 -DX_DISPLAY_MISSING=1  -I. -I../../libao-0.8.6/src -I../include/ao -I../../libao-0.8.6/include -DAO_PLUGIN_PATH=\"/usr/lib/ao/plugins-2\"  -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist    -mcpu=bf537-0.2  -O20 -D__NO_MATH_INLINES -fsigned-char -pipe -Wall -g -O2      -mcpu=bf537-0.2 -MT audio_out.lo -MD -MP -MF ".deps/audio_out.Tpo" -c -o audio_out.lo ../../libao-0.8.6/src/audio_out.c; \^M

then mv -f ".deps/audio_out.Tpo" ".deps/audio_out.Plo"; else rm -f ".deps/audio_out.Tpo"; exit 1; fi^M

bfin-uclinux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libao\" -DVERSION=\"0.8.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBPTHREAD=1 "-DDLOPEN_FLAG=(RTLD_NOW | RTLD_GLOBAL)" -DSHARED_LIB_EXT=\".so\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_SYS_SOUNDCARD_H=1 -DX_DISPLAY_MISSING=1 -I. -I../../libao-0.8.6/src -I../include/ao -I../../libao-0.8.6/include -DAO_PLUGIN_PATH=\"/usr/lib/ao/plugins-2\" -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -O20 -D__NO_MATH_INLINES -fsigned-char -pipe -Wall -g -O2 -mcpu=bf537-0.2 -MT audio_out.lo -MD -MP -MF .deps/audio_out.Tpo -c ../../libao-0.8.6/src/audio_out.c -o audio_out.o^M

../../libao-0.8.6/src/audio_out.c:31:19: error: dlfcn.h: No such file or directory^M

../../libao-0.8.6/src/audio_out.c: In function '_get_plugin':^M

../../libao-0.8.6/src/audio_out.c:108: warning: implicit declaration of function 'dlopen'^M

../../libao-0.8.6/src/audio_out.c:108: error: 'RTLD_NOW' undeclared (first use in this function)^M

../../libao-0.8.6/src/audio_out.c:108: error: (Each undeclared identifier is reported only once^M

../../libao-0.8.6/src/audio_out.c:108: error: for each function it appears in.)^M

../../libao-0.8.6/src/audio_out.c:108: error: 'RTLD_GLOBAL' undeclared (first use in this function)^M

../../libao-0.8.6/src/audio_out.c:108: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:122: warning: implicit declaration of function 'dlsym'^M

../../libao-0.8.6/src/audio_out.c:122: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:126: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:130: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:134: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:137: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:140: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:143: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c:147: warning: assignment makes pointer from integer without a cast^M

../../libao-0.8.6/src/audio_out.c: In function 'ao_shutdown':^M

../../libao-0.8.6/src/audio_out.c:566: warning: implicit declaration of function 'dlclose'^M

make[6]: *** [audio_out.lo] Error 1^M

make[6]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libao/build-libao-0.8.6/src'^M

make[5]: *** [install-recursive] Error 1^M

make[5]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libao/build-libao-0.8.6/src'^M

make[4]: *** [install-recursive] Error 1^M

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libao/build-libao-0.8.6'^M

make[3]: *** [all] Error 2^M

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libao'^M

make[2]: *** [libao] Error 2^M

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib'^M

make[1]: *** [all] Error 2^M

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib'^M

make: *** [subdirs] Error 1^M

 

To find it in 08r1-6 toolchain:

 

test@uclinux50-cf-cdrom:/opt> find uClinux -name dlfcn.h

uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/dlfcn.h

uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/dlfcn.h

 

 

Follow-ups

 

--- Mike Frysinger                                           2008-01-29 09:44:24

from what i can see, libao uses audio plugins which means it requires FDPIC ELF

 

ive updated the Kconfig to express this requirement

 

--- Mingquan Pan                                             2008-01-30 04:13:30

Please also check in to 08r1 branch, so that regression machine can update this

change and test.

 

--- Mike Frysinger                                           2008-01-30 07:58:54

the trouble is the old build system (used in 2008R1 and older) doesnt really

allow for this dependency to be expressed very well unlike the new build system

 

--- Mingquan Pan                                             2008-01-30 21:23:25

But this issue also happens to the 08r1 branch,how can this be fixed?

 

--- Mike Frysinger                                           2008-01-31 09:03:55

dont try to build libao if your format is not FDPIC ELF

 

--- Mingquan Pan                                             2008-01-31 22:47:04

All right.It fixed on trunk.Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes