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.