Wietse Venema:
> Matthew McGehrin:
> > Is there a make flag to disable tls for legacy releases? I'm getting a 
> > compile error for 2.10.3 when trying to compile on FreeBSD 7.x 64bit.
> 
> Postfix builds without TLS by default.
> 
> On my system the command line looks like this:
> 
> gcc -Wmissing-prototypes -Wformat -Wno-comment -DHAS_PCRE 
> -I/usr/local/include -DSNAPSHOT -g -O -I. -I../../include -DFREEBSD9 -c 
> tls_prng_dev.c
> 
> > In file included from tls_level.c:52:
> > /usr/local/include/tls.h:23:53: error: tcl.h: No such file or directory
> 
> I see. The "-I. -I../../include" should be before "-I/usr/local/include".
> 
> Meanwhile, can you temporarily rename /usr/local/include/tls.h?

Workaround: start CCARGS with the Postfix directories:

$ export CCARGS="-I. -I../../include <other stuff here>"

Or apply the one-line patch which does it for you.

        Wietse

*** /var/tmp/postfix-2.12-20140115/makedefs     Tue Dec 17 17:52:26 2013
--- ./makedefs  Thu Jan 16 14:42:36 2014
***************
*** 638,643 ****
--- 638,646 ----
  # needed before the code stabilizes.
  #CCARGS="$CCARGS -DNONPROD"
  
+ # Workaround.
+ CCARGS="-I. -I../../include $CCARGS"
+ 
  sed 's/  / /g' <<EOF
  SYSTYPE       = $SYSTYPE
  AR    = $AR

Reply via email to