[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dlclose, dlopen ...



Od: Jaromír Mikeš <mira.mikes@seznam.cz>

> > having these errors on building here:
> >
> > ------------
> > .libs/lv2.o: In function `zynjacku_lv2_unload':
> > /tmp/buildd/zynjacku-4/lv2.c:171: undefined reference to `dlclose'
> > .libs/lv2.o: In function `zynjacku_lv2_load':
> > /tmp/buildd/zynjacku-4/lv2.c:99: undefined reference to `dlopen'
> > /tmp/buildd/zynjacku-4/lv2.c:106: undefined reference to `dlerror'
> > /tmp/buildd/zynjacku-4/lv2.c:107: undefined reference to `dlsym'
> > /tmp/buildd/zynjacku-4/lv2.c:108: undefined reference to `dlerror'
> >
> > and so on ...
> >
> > --------------
> >
> > There will be some missing build dependency probably ... google advice ->
> glibc
> > I tried : linux-libc-dev, glibc-source.
>
>
> You probably need to link with the -ldl library /lib/libdl.so

Thank you for quick answer ..
Actually I tried this:
./configure $(CROSS) --prefix=/usr  LDFLAGS="-Wl,-z,-ldl,defs"

Can you advise me how to do it properly please?

I tried this in my debian/rules:
export LIBS=-ldl && ./configure $(CROSS) .....
and it seems to work.
Is it allowed way?

mira


Reply to: