[Exim] Oddities with the LD_LIBRARY_PATH ?

Top Page
Delete this message
Reply to this message
Author: Florian Wallner
Date:  
To: Exim Users Mailinglist
Subject: [Exim] Oddities with the LD_LIBRARY_PATH ?
Hello.
If I missed something in the docs please point me in the correct
direction.

The setup is as follows: We have exim 3.13 running on a Solaris 2.6 box,
linked against MySQL (version 3.22.30) and use it for authentication.
Authentication works fine, but as soon as Exim starts the delivery
process: it dies with an error message:

/usr/local/bin/exim: fatal: libmysqlclient.so.6: open failed:
No such file or directory

Though libmysqlclient is in $LD_LIBRARY_PATH. At least it was when
the initial Exim was started. If I create a link to that library in
/usr/lib everything works as expected. Below is what exim -d9 -bd gives:

root% echo $LD_LIBRARY_PATH
/local/lib:/local/lib/mysql
root% exim -d9 -bd

[...]

set_process_info 27827 3.14 handling incoming connection from (mcgregor.speedlink.de) [212.40.164.223]
250-culture.speedlink.de Hello mcgregor.speedlink.de [212.40.164.223]
250-SIZE
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN CRAM-MD5
250 HELP
SMTP<< AUTH PLAIN AHdhbGxuZXIAxxxxxxxh
plain authenticator:
$1 =
$2 = wallner
$3 = xxxxx
expanded string: 1
235 Authentication succeeded

[...]

LOG: 0 MAIN
<= wallner@??? H=(mcgregor.speedlink.de) [212.40.164.223] P=asmtp A=plain:wallner S=351
250 OK id=12qK4a-0007Ep-00
Sender: wallner@???
Recipients:
wallner@???
forked delivery process 27828
set_process_info: 27827 3.14 handling incoming connection from (mcgregor.speedlink.de) [212.40.164.223]
ready for new message
smtp_setup_msg entered
ld.so.1: /usr/local/bin/exim: fatal: libmysqlclient.so.6: open failed: No such file or directory

I am not sure what to make of this. Any hints are highly appreciated


-- 
Florian Wallner                        speedlink GmbH
wallner@???                http://www.speedlink.de