Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-20 Thread Larry Stone

On Oct 19, 2014, at 11:12 PM, Viktor Dukhovni postfix-us...@dukhovni.org 
wrote:

 
 $ 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'
 
 You should no longer need to specify -lresolv (though it won't
 fix this problem), and should never have needed to specify -arch x86_64”.

Hmmm, that ‘-arch x86_64’ was in a note you (Viktor) posted on 5/11/14 in the 
topic Client side DANE - minimum openssl version. 

FWIW, running OS X 10.9.5 (latest version of Mavericks), I get a good build of 
2.11.3 with
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' \
AUXLIBS='-L/usr/local/lib -lpcre -lssl -lcrypto’

with or without the -arch x86_64. This is almost the same as what James Brown 
used except no -lresolv and I don’t use MySQL so all of that is removed. I’ve 
only done the build (not installed yet) but that is the same command I used for 
building my currently running 2.11.1.

-- 
Larry Stone
lston...@stonejongleux.com
http://www.stonejongleux.com/





smime.p7s
Description: S/MIME cryptographic signature


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-20 Thread Viktor Dukhovni
On Mon, Oct 20, 2014 at 10:01:51AM -0500, Larry Stone wrote:

  You should no longer need to specify -lresolv (though it won't
  fix this problem), and should never have needed to specify -arch x86_64?.
 
 Hmmm, that '-arch x86_64' was in a note you (Viktor) posted on 5/11/14 in the 
 topic Client side DANE - minimum openssl version. 

Only because I failed to prune some inessential, but likely harmless
details from the HOWTO in question:

http://diymacserver.com/mail/snow-leopard/compiling-postfix-in-64-bits/

which is still showing wrong usage of -L/path to this day.

 with or without the -arch x86_64...

The target architecture defaults to the machine archicture.  You
only need -arch when building for a different machine type than
the one you're using.

-- 
Viktor.


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-20 Thread Larry Stone

On Oct 20, 2014, at 10:35 AM, Viktor Dukhovni postfix-us...@dukhovni.org 
wrote:

 On Mon, Oct 20, 2014 at 10:01:51AM -0500, Larry Stone wrote:
 
 You should no longer need to specify -lresolv (though it won't
 fix this problem), and should never have needed to specify -arch x86_64?.
 
 Hmmm, that '-arch x86_64' was in a note you (Viktor) posted on 5/11/14 in 
 the topic Client side DANE - minimum openssl version. 
 
 Only because I failed to prune some inessential, but likely harmless
 details from the HOWTO in question:
 
http://diymacserver.com/mail/snow-leopard/compiling-postfix-in-64-bits/
 
 which is still showing wrong usage of -L/path to this day.
 

I’ve moved beyond that site, which seems to no longer keeping up with the OS X 
changes, in large part thanks to the help you’ve provided.

 with or without the -arch x86_64...
 
 The target architecture defaults to the machine archicture.  You
 only need -arch when building for a different machine type than
 the one you're using.

The more you post about these things, the more I learn.  So a very sincere 
Thank You for all you contribute to Postfix.

-- 
Larry Stone
lston...@stonejongleux.com
http://www.stonejongleux.com/





smime.p7s
Description: S/MIME cryptographic signature


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-19 Thread Viktor Dukhovni
On Mon, Oct 20, 2014 at 04:12:00AM +, Viktor Dukhovni wrote:

 You'll find that 2.11.2 also no longer compiles.
 
 Nothing between 2.11.2 and 2.11.3 changed in this regard.  Did you
 upgrade your OS (to Yosemite)?  Or upgrade your compiler?  Your
 /usr/include/stdlib.h no longer compiles with default flags.

I have:

$ cc -v
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

What do you have?

-- 
Viktor.


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-19 Thread James Brown

 On 20 Oct 2014, at 3:12 pm, Viktor Dukhovni postfix-us...@dukhovni.org 
 wrote:
 
 On Mon, Oct 20, 2014 at 03:00:01PM +1100, James Brown wrote:
 
 * Portability fix for MacOS X 10.7.x (Darwin 11.x) build procedure.
 
 Doesn't seem to work for me. :-(
 
 Don't blame the messenger

I’m definitely not! Sorry if I came across that way.

 , your compilation environment is broken.
 
 $ 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'
 
 You should no longer need to specify -lresolv (though it won't
 fix this problem), and should never have needed to specify -arch x86_64.
 
 In file included from /usr/include/stdlib.h:65:
 In file included from /usr/include/sys/wait.h:116:
 In file included from /usr/include/sys/signal.h:148:
 In file included from /usr/include/sys/_structs.h:57:
 In file included from /usr/include/machine/_structs.h:29:
 /usr/include/i386/_structs.h:38:10: fatal error: 'mach/i386/_structs.h' file 
 not found
 #include mach/i386/_structs.h
 ^
 1 error generated.
 make: *** [Makefiles] Error 1
 make: *** [makefiles] Error 2
 
 You'll find that 2.11.2 also no longer compiles.
 
 Nothing between 2.11.2 and 2.11.3 changed in this regard.  Did you
 upgrade your OS (to Yosemite)?

Nope, still on OS X 10.7. Updated iTunes, but that shouldn’t affect anything.

Opened Xcode, went to Preferences/Downloads and saw that there was an Install 
button next to “Command Line Tools”. Mystery solved!

Installing them now. 

The -arch x86_64 was needed in the past to stop it defaulting to a 32-bit 
install. Will remove that and the -lresolv, then have another go.

Thanks,

James.

smime.p7s
Description: S/MIME cryptographic signature


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-19 Thread Viktor Dukhovni
On Mon, Oct 20, 2014 at 03:00:01PM +1100, James Brown wrote:

   * Portability fix for MacOS X 10.7.x (Darwin 11.x) build procedure.
 
 Doesn't seem to work for me. :-(

Don't blame the messenger, your compilation environment is broken.

 $ 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'

You should no longer need to specify -lresolv (though it won't
fix this problem), and should never have needed to specify -arch x86_64.

 In file included from /usr/include/stdlib.h:65:
 In file included from /usr/include/sys/wait.h:116:
 In file included from /usr/include/sys/signal.h:148:
 In file included from /usr/include/sys/_structs.h:57:
 In file included from /usr/include/machine/_structs.h:29:
 /usr/include/i386/_structs.h:38:10: fatal error: 'mach/i386/_structs.h' file 
 not found
 #include mach/i386/_structs.h
  ^
 1 error generated.
 make: *** [Makefiles] Error 1
 make: *** [makefiles] Error 2

You'll find that 2.11.2 also no longer compiles.

Nothing between 2.11.2 and 2.11.3 changed in this regard.  Did you
upgrade your OS (to Yosemite)?  Or upgrade your compiler?  Your
/usr/include/stdlib.h no longer compiles with default flags.

-- 
Viktor.


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-19 Thread James Brown

 On 20 Oct 2014, at 11:04 am, Wietse Venema wie...@porcupine.org wrote:
 
 Portability fix for Postfix 2.11:
 
  * Portability fix for MacOS X 10.7.x (Darwin 11.x) build procedure.

Doesn’t seem to work for me. :-(

$ cd postfix-2.11.3 
$ 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'
make -f Makefile.in MAKELEVEL= Makefiles
(echo # Do not edit -- this file documents how Postfix was built for your 
machine.; /bin/sh makedefs) makedefs.tmp
In file included from makedefs.test.c:2:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:116:
In file included from /usr/include/sys/signal.h:148:
In file included from /usr/include/sys/_structs.h:57:
In file included from /usr/include/machine/_structs.h:29:
/usr/include/i386/_structs.h:38:10: fatal error: 'mach/i386/_structs.h' file 
not found
#include mach/i386/_structs.h
 ^
1 error generated.
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2

The above make command got 2.11.2 to compile for me (thanks again to Viktor).

James.



smime.p7s
Description: S/MIME cryptographic signature


Re: Postfix stable release 2.11.3 and legacy releases 2.10.5, 2.9.11, and 2.8.19

2014-10-19 Thread James Brown

 On 20 Oct 2014, at 3:22 pm, Viktor Dukhovni postfix-us...@dukhovni.org 
 wrote:
 
 On Mon, Oct 20, 2014 at 04:12:00AM +, Viktor Dukhovni wrote:
 
 You'll find that 2.11.2 also no longer compiles.
 
 Nothing between 2.11.2 and 2.11.3 changed in this regard.  Did you
 upgrade your OS (to Yosemite)?  Or upgrade your compiler?  Your
 /usr/include/stdlib.h no longer compiles with default flags.
 
 I have:
 
$ cc -v
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
 
 What do you have?
 
 -- 
   Viktor.

$ cc -v
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix

(Still downloading the Command Line Tools).

James.



smime.p7s
Description: S/MIME cryptographic signature