5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildrop, Solaris 8, ...
FromSent OnAttachments
Sam CarletonSep 18, 2004 12:10 pm 
Alex S MooreSep 18, 2004 2:29 pm 
Sam VarshavchikSep 18, 2004 4:05 pm 
Tony EarnshawSep 18, 2004 8:07 pm 
Devin RubiaSep 20, 2004 8:00 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] maildrop, Solaris 8, and libstdc++.so.2.10.0Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Sep 18, 2004 4:05:43 pm
List:net.sourceforge.lists.courier-maildrop

Sam Carleton writes:

Maildrop is have problems running on my Solaris 8 mail server. The mail server is qmail and maildrop is being placed into the .qmail file of the user. Qmail logs this:

delivery 455: deferral: ld.so.1:_/usr/local/bin/maildrop:_fatal:_libstdc++.so.2.10.0:_open_failed:_No_such_file_or_directory/

Someone on the qmail mailing list enlightened me to ldd. when I do a ldd on maildrop, this is what I get::

# ldd /usr/local/bin/maildrop libstdc++.so.2.10.0 => /usr/local/lib/libstdc++.so.2.10.0 libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libdl.so.1 => /usr/lib/libdl.so.1 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1

I am totally lost at this point; if I understand ldd correctly, it is saying that it is looking in /usr/local/lib for the c++ library, which is where that library is located. Why cann't maildrop find it?

When maildrop is invoked from the .qmail files, the maildrop process inherits the environment from its parent process, qmail-local.

The answer is that qmail-local's environment is not the same as your shell environment, and whatever the difference is, is why the reference to this shared library can be resolved from shell's environment.

You probably have LD_LIBRARY_PATH initialized in your shell environment, but not in qmail-local's environment.