On Tue, Oct 14, 2014 at 05:19:34PM +1100, James Brown wrote: > 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
What version of MacOSX are you running? (Post the output of "uname -sr".) The Postfix makedefs script has: # Darwin 12.x (MacOS X 10.8.x), maybe earlier, needs libresolv. case $RELEASE in ?.*|1[0-1].*) ;; *) SYSLIBS="$SYSLIBS -lresolv";; esac Perhaps you have one of those "maybe eariler" systems. If you have a non-system libresolv in /usr/local or similar, remove it, you should be using the Apple provided libresolv. -- Viktor.