#143 libmilter's path not added in rpath on compile time

2.6.7
closed
nobody
Packaging (15)
5
2013-07-07
2012-10-09
Anonymous
No

In the case where libmilter is in a nonstandard directory (as specified during configure), the final path of the library does not get added to the rpath, causing the loader being unable to find libmilter. Shouldn't this be added to rpath? Of course there are quite a lot of workarounds. I also tried with LD_RUN_PATH on configure, but it is not added either.

Discussion

  • Murray S. Kucherawy

    Have you tried adding "--enable-rpath" to ./configure?

     
  • Murray S. Kucherawy

    • status: open --> pending
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-10

    Yes I did try with and without --enable-rpath. This option seems to have no effect in the current distribution.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-10-10
    • status: pending --> open
     
  • Murray S. Kucherawy

    • status: open --> pending
     
  • Murray S. Kucherawy

    Seems to work for me at least on FreeBSD. Adding "--enable-rpath" to the build results in a binary loaded thus:

    libtool: link: gcc -std=gnu99 -D_THREAD_SAFE -pthread -I/usr/local/include -g -D
    _THREAD_SAFE -pthread -o opendkim opendkim-opendkim.o opendkim-opendkim-ar.o ope
    ndkim-opendkim-arf.o opendkim-opendkim-crypto.o opendkim-opendkim-db.o opendkim-
    opendkim-dns.o opendkim-opendkim-lua.o opendkim-config.o opendkim-flowrate.o ope
    ndkim-reputation.o opendkim-stats.o opendkim-test.o opendkim-util.o -L/usr/loca
    l/lib -L/home/msk/auth/milter/lib -L/usr/local/BerkeleyDB/lib -L/usr/local/lib/l
    ua51 ../libopendkim/.libs/libopendkim.a /usr/local/lib/libtre.so -lmilter -ldb /
    usr/local/lib/libopendbx.so -L/usr/local/lib/mysql -L/usr/local/lib/ /usr/local/
    lib/libmemcached.so -llua -lm /usr/local/lib/libldap.so /usr/local/lib/liblber.s
    o /usr/local/lib/libsasl2.so /usr/local/lib/libunbound.so -lutil ../libvbr/.libs
    /libvbr.a ../librbl/.libs/librbl.a ../reputation/.libs/librepute.a /usr/local/li
    b/libcurl.so -lssl -lcrypto -lz /usr/local/lib/libjansson.so /fsys1/home/msk/git
    /OpenDKIM/libut/.libs/libut.a -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath
    -Wl,/usr/local/lib

     
  • Murray S. Kucherawy

    • status: pending --> closed
     
  • Murray S. Kucherawy

    Abandoned.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks