On Tue, Oct 14, 2014 at 03:16:17PM +1100, James Brown wrote: > > Victor, changing the order so that it is: > > > > 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? > > > > and it stopped the errors re PCRE.
What's "-llber" for? It is a support library for libldap, but you're not using LDAP. And you still have much too much complexity and inconsitent preference between /usr and /usr/local for headers vs. libraries. Much more likely to work is: $ 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 -lpcre -lssl -lcrypto -L/usr/local/mysql/lib -lmysqlclient -lz -lm' Assuming of course that the /usr/local/ headers and libraries are mutually compatible. If you find yourself explicitly listing /usr/include or /usr/lib, you're almost certainly doing something wrong. With OpenSSL the include directory is the directory containing the "openssl/" directory with the header files. Thus, for example, /usr/local/include not /usr/local/include/openssl. My builds of 2.12 snapshots produce a simple makedefs.out with: # Do not edit -- this file documents how Postfix was built for your machine. #---------------------------------------------------------------- # Start of summary of user-configurable 'make makefiles' options. # CCARGS=-I/opt/local/include -DUSE_TLS -DHAS_PCRE # AUXLIBS=-L/opt/local/lib -lssl -lcrypto # AUXLIBS_PCRE=-L/opt/local/lib -lpcre # dynamicmaps=yes # shlib_directory=/usr/postfix/lib/MAIL_VERSION # End of summary of user-configurable 'make makefiles' options. #-------------------------------------------------------------- KEEP IT SIMPLE. -- Viktor.