Client not linking on Ubuntu 12.04 due to link flag ordering
The client does not want to link on Ubuntu 12.04, reporting the following errors
{{{
../lib/.libs/libplinkseq.so: undefined reference to dlopen'
../lib/.libs/libplinkseq.so: undefined reference to
dlclose'
../lib/.libs/libplinkseq.so: undefined reference to dlerror'
../lib/.libs/libplinkseq.so: undefined reference to
dlsym'
}}}
If you add -ldl to the //end// the libtool command line it will link without trouble. I can't seem to figure out how to modify the autoconf Makefile to do that though...
Comments (3)
-
-
(Reply via shau...@gmail.com):
follow-up: add to LDADD instead of LDFLAGS in client/Makefile.am
Or perhaps other way around? Brett -- will this cause other problems / what was the original distinction you made between LDADD and LDFLAGS? Does it correspond to -l vs -L etc?
-
reporter So I added -ldl to the library listing and that seems to work, although it probably not the "right" way... Got pulled in request #1.
- Log in to comment
Try adding to LDADD after libplinkseq, instead of LDFLAGS, in client/Makefile.am