[uClibc]problems including libdl

Oliver Dawid od at fet.uni-hannover.de
Sun Jul 22 09:35:18 UTC 2001


hi there,

i have a strange problem including libdl dynamically. only if i include it
statically, everything is fine:

here is some output
---snip---
gcc -rdynamic -s -Wl,-rpath,./lib/ -o sbl \
 sbl.o misc.o beeps.o cut-n-paste.o inskey_lnx.o brl_load.o spk.o \
libspeech.a scr.o scrdev.o scr_vcsa.o  -L. -lspeech -ldl
brl_load.o: In function `load_braille_driver':
brl_load.o(.text+0xa0): undefined reference to `dlopen'
brl_load.o(.text+0xb4): undefined reference to `dlerror'
brl_load.o(.text+0xea): undefined reference to `dlsym'
brl_load.o(.text+0xf4): undefined reference to `dlerror'
libspeech.a(lang_lib.o): In function `open_synthesizer':
/home/od/src/src-fli4l/sblsrc-1.3beta/prog/speech/lang_lib.c:70: undefined
reference to `dlopen'
/home/od/src/src-fli4l/sblsrc-1.3beta/prog/speech/lang_lib.c:75: undefined
reference to `dlsym'
/home/od/src/src-fli4l/sblsrc-1.3beta/prog/speech/lang_lib.c:76: undefined
reference to `dlerror'
/home/od/src/src-fli4l/sblsrc-1.3beta/prog/speech/lang_lib.c:91: undefined
reference to `dlclose'
---snip---

linkong libdl.a to this code lets the errors disappear. any idea? isnt it
possible to link dynamically against libdl? is my uclibc code too old? i
updated on 13th of july.

od

-- 
   Oliver Dawid * O.Dawid at gmx.de * http://www.fet.uni-hannover.de/~od/






More information about the uClibc mailing list