[Dovecot] (workaround) Re: Beginner Help with a fatal error in a first Basic Install

OpenMacNews openmacnews at gmail.com
Sun Aug 20 05:36:49 EEST 2006


paul,

> dovecot: Aug 18 07:06:50 Error: IMAP(paulg): dyld: Library not loaded:
> /usr/local/ssl/lib/libssl.0.9.8.dylib

i've had these same
can't-find-libssl-even-though-i'm-staring-right-at-it probelms in dovecot.

after a little poking in code, i note that dovecot check first to get
its ssl lib/include link info from pkg-config, and seems to get
flustered by the presence of your own LDFLAGS/CPPFLAGS specification of
ssl location.

that said, i've managed to work around it fairly simply.

do this:

install pkg-config (ver > 0.9; current release @ v0.21)

set your ENV var PKG_CONFIG_PATH = wherever you keep your pkg-config
*.pc config files.

e.g., mine is:

% echo $PKG_CONFIG_PATH

/usr/local/X11R6/lib/pkgconfig/:/usr/X11R6/lib/pkgconfig/:/usr/local/lib/pkgconfig

now, make sure that pkgconfig can find YOUR openssl's .pc files, by
either (a) adding their location to the PKG_CONFIG_PATH, or (b) cp'ing
the files into it.

in my case, i did:

 cp  /usr/local/openssl/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/


now, check to be sure, that

	grep Version /usr/local/lib/pkgconfig/openssl.pc
		Version: 0.9.8b
	grep prefix /usr/local/lib/pkgconfig/openssl.pc
		prefix=/usr/local/openssl

and,

	pkg-config --libs openssl

reports:

	-Wl,-search_paths_first -L/usr/local/openssl/lib -L/usr/local/lib -lssl
-lcrypto -lz

or whatever is appropriate for your ssl install path.


finally, REMOVE ssl lib/include specs from your config ENV, namely:

	---	LDFLAGS=" ... /install/path/to/openssl/lib -lssl -lcrypto ..."
	---	CPPFLAGS+"... /install/path/to/openssl/include ..."

gets changed to:

	+++	LDFLAGS=" ... ..."
	+++	CPPFLAGS+"... ..."

now, 'make distclean', reconfig & rebuild ... and your "ssl not-found"
problems should go away.

hth,

richard



More information about the dovecot mailing list