On Tue, 23 Jul 2013 17:29:51 -0400 (EDT)
Wietse Venema articulated:

> LuKreme:
> > Given that I have db48 installed from ports under FreeBSD, what
> > is the appropriate flag to pass to compile postfix against this
> > rather than the ?default?
> 
> To build with Berkeley DB 4.8 installed from /usr/ports, you have
> to specify the location of the include file and of the object
> library.
> 
> $ make makefiles CCARGS="... -I/usr/local/include/db48 ..." \
>     AUXLIBS="... -L/usr/local/lib/db48 -ldb-4.8 ..."
> 
> I recall that FreeBSD had a safety mechanism to avoid symbol name
> clashes.

I am probably just not understanding this correctly, but why can't you
just place the following in the "/etc/make.conf" file:

# Postfix
.if $(.CURDIR:M*/mail/postfix-current)
WITH_BDB_VER=48
.endif

I do something similar to that to force it to build with DB5:

WITH_BDB_VER=5

Of course, this only works with the "postfix-current" port. To use the
latest STABLE version of Postfix in the ports, you would change the
"if" line to: ".if $(.CURDIR:M*/mail/postfix)"

Of course. this assumes that you are attempting to install Postfix via
the ports system.

-- 
Jerry ✌
postfix-u...@seibercom.net
_____________________________________________________________________
TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html

Reply via email to