On Thu, Jul 17, 2014 at 11:54:36AM +1000, James Brown wrote: > 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_SSL -I/usr/include/openssl \ > -DHAS_MYSQL -I/usr/local/mysql/include' \ > AUXLIBS='-L/usr/local/lib -llber -lresolv -L/usr/lib \ > -L/usr/local/lib -lpcre -lssl -L/usr/local/mysql/lib \ > -lmysqlclient -lz -lm'
This is silly, the placement of "-L" options is irrelevant, only their relative order matters. To not get confused, list all "-L" options before all "-l<somelib>" options, no point in listing anything twice. AUXLIBS='-L/usr/local/lib -L/usr/lib -L/usr/local/mysql/lib \ -llber -lresolv -lpcre -lssl -lcrypto -lmysqlclient -lz -lm' you left out -lcrypto, Postfix needs both libssl and libcrypto. Why on earth "-I/usr/include/openssl", that's wrong, remove it. -- Viktor.