On 17 Jul 2014, at 1:54 pm, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote: > > On Thu, Jul 17, 2014 at 01:38:39PM +1000, James Brown wrote: > >> make command is now: >> >> make -f Makefile.init makefiles \ >> CCARGS='-arch x86_64 -DUSE_TLS -DUSE_SASL_AUTH \ >> -DDEF_SERVER_SASL_TYPE=\"dovecot\" \ >> -DDEF_COMMAND_DIR=\"/usr/local/sbin\" \ >> -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" \ >> -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" \ >> -DHAS_PCRE -I/usr/local/include \ >> -DHAS_MYSQL -I/usr/local/mysql/include' \ >> AUXLIBS='-L/usr/local/lib -L/usr/lib -L/usr/local/mysql/lib \ >> -llber -lresolv -lpcre -lssl -lcrypto -lmysqlclient -lz -lm? >> > > Better, provided you have SSL libraries in /usr/local/lib. > >> Undefined symbols for architecture x86_64: >> "_FIPS_md_ctx_create", referenced from: >> _tls_serverid_digest in libtls.a(tls_fprint.o) >> _tls_data_fprint in libtls.a(tls_fprint.o) >> "_FIPS_digestinit", referenced from: >> _tls_serverid_digest in libtls.a(tls_fprint.o) >> _tls_data_fprint in libtls.a(tls_fprint.o) >> etc. > > And yet you're linking with libraries that don't match the headers. > >> Yes Wietse, OpenSSL is in two places: >> >> locate bin/openssl >> /usr/bin/openssl >> /usr/local/ssl/bin/openssl > > The openssl(1) command is not relevant, we're talking about OpenSSL > *libraries*, that should be rather clear.
I know, it was a lazy way of me finding out where openssl was installed. > Show what openssl libraries are in /usr/lib and in /usr/local/lib: > > In /usr/lib I have: > > /usr/lib/libssl.0.9.7.dylib > /usr/lib/libssl.0.9.8.dylib > /usr/lib/libssl.dylib > /usr/lib/libcrypto.0.9.7.dylib > /usr/lib/libcrypto.0.9.8.dylib > /usr/lib/libcrypto.dylib $ locate lib/libssl /usr/lib/libssl.0.9.7.dylib /usr/lib/libssl.0.9.8.dylib /usr/lib/libssl.1.0.0.dylib /usr/lib/libssl.a /usr/lib/libssl.dylib /usr/local/ssl/lib/libssl.a and $locate libcrypto /usr/lib/libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.8.dylib /usr/lib/libcrypto.1.0.0.dylib /usr/lib/libcrypto.a /usr/lib/libcrypto.dylib /usr/lib/pkgconfig/libcrypto.pc /usr/local/ssl/lib/libcrypto.a /usr/local/ssl/lib/pkgconfig/libcrypto.pc I’m guessing ssl directory at /usr/local/ is the problem? If so, mv everything from /usr/local/ssl/ to corresponding place in /usr/local? The Makefile from my OpenSSL 1.0.1h directory has: PLATFORM=darwin64-x86_64-cc OPTIONS=--prefix=/usr/local --with-fipsdir=/usr/local fips no-ec_nistp_64_gcc_128 no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-rsax no-sctp no-shared no-store no-zlib no-zlib-dynamic static-engine CONFIGURE_ARGS=--prefix=/usr/local --with-fipsdir=/usr/local fips darwin64-x86_64-cc SHLIB_TARGET=darwin-shared I think I just used ./configure darwin64-x86_64-cc James.
smime.p7s
Description: S/MIME cryptographic signature