Client not linking on Ubuntu 12.04 due to link flag ordering

Issue #1 new
Michael Linderman created an issue

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 todlclose' ../lib/.libs/libplinkseq.so: undefined reference to dlerror' ../lib/.libs/libplinkseq.so: undefined reference todlsym' }}}

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)

  1. Shaun Purcell

    (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?

  2. Michael Linderman 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.

  3. Log in to comment