Paul J Stevens wrote:


S Koh wrote:

Hello

Just just did a default install on a Gentoo System (Freshly created with almost all default settings) and have the following error.

./dbmail-util: error while loading shared libraries: libdbmail.0: cannot open shared object file: No such file or directory


That's pretty weird. Do you have libdbmail.so.* in /usr/lib/ ?
libdbmail.0 should not exist at all afaik, or could that be some gentoo-ism in your libtool setup ?

That could well be. I also just installed on a Gentoo machine, and have the same problem. The files in /usr/local/lib that are created are libdbmail.0.0.0, libdbmail.0 (link to libdbmail.0.0.0) and libdbmail (link to libdbmail.0) and the static lib files (.la and .a). The libs that are created in /usr/local/lib/dbmail suffer from the same problem: no .so.x.x.x, but just .0.0.0 and .0 as extensions. However, renaming libdbmail.0.0.0 to libdbmail.so.0.0.0, removing the other 2 links, and then running ldconfig (which recreates a libdbmail.0 which links to the .so.0.0.0) seems to be a workaround. I don't get any errors when starting /etc/init.d/dbmail-lmtpd, and an ldd on /usr/local/sbin/dbmail-lmtpd finds all libraries.

I'll try to do some research on gentoo specific libtool things, maybe I find some clue. I know next to nothing about libtool, though, so don't expect too much...

Cheers,
Vincent.


Any suggestions in how do I solve it, I have found that it is because the lib directory which is in a default install is different from where Gentoo keeps its lib files.


which is ? Assuming gentoo uses FHS, perhaps you should try running configure with --prefix=/usr.



Reply via email to