> On 15 Oct 2014, at 4:19 am, Viktor Dukhovni <postfix-us...@dukhovni.org> > wrote: > > On Tue, Oct 14, 2014 at 09:13:41PM +1100, James Brown wrote: > >>> 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. >> >> Mac OS X 10.7.4. >> >> $ uname -sr >> Darwin 11.4.2 >> >> I have: >> >> /usr/lib/libresolv.9.dylib >> /usr/lib/libresolv.dylib > > Ah, so you do have one of the "maybe earlier" systems and "-lresolv" > is also needed for "Darwin 11". Append "-lresolv" to AUXLIBS. Or > else apply this patch with Postfix 2.11 or later: > > diff --git a/makedefs b/makedefs > index 1566b95..910ddbb 100644 > --- a/makedefs > +++ b/makedefs > @@ -576,9 +576,9 @@ ReliantUNIX-?.5.43) SYSTYPE=ReliantUnix543 > ?.*) CCARGS="$CCARGS -DRESOLVE_H_NEEDS_NAMESER8_COMPAT_H";; > *) CCARGS="$CCARGS > -DRESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H";; > esac > - # Darwin 12.x (MacOS X 10.8.x), maybe earlier, needs libresolv. > + # Darwin 11.x (MacOS X 10.7.x), maybe earlier, needs libresolv. > case $RELEASE in > - ?.*|1[0-1].*) ;; > + ?.*|10.*) ;; > *) SYSLIBS="$SYSLIBS -lresolv";; > esac > # kqueue and/or poll are broken in MacOS X 10.5 (Darwin 9). > > -- > Viktor.
Thanks Viktor - that worked! I added -lresolv to AUXLIBS: 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 -lresolv’ Hopefully new Mac Minis will be released tomorrow and then I’ll bring my mail server to Yosemite and this won’t be a problem going forward. Thanks again for all your help, James.
smime.p7s
Description: S/MIME cryptographic signature