> On 14 Oct 2014, at 4:13 pm, Viktor Dukhovni <postfix-us...@dukhovni.org> > wrote: > > 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'
Thanks for your help Victor. 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’ gives me: Undefined symbols for architecture x86_64: "_res_9_init", referenced from: _dns_lookup_r in libdns.a(dns_lookup.o) "_res_9_search", referenced from: _dns_lookup_r in libdns.a(dns_lookup.o) "_res_9_dn_expand", referenced from: _dns_lookup_r in libdns.a(dns_lookup.o) _valid_rr_name in libdns.a(dns_lookup.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [smtpd] Error 1 make: *** [update] Error 1 :-( Agree that simpler is better! James.
smime.p7s
Description: S/MIME cryptographic signature