kolab 2.3.4 postfix build failure on FreeBSD 9

Scott Lambert lambert at lambertfam.org
Mon Jan 9 18:38:47 CET 2012


The version of postfix in the most recent stable release of postfix
does not yet have knowlege of FreeBSD 9.x.  

...
+ /kolab/bin/make --no-print-directory -f Makefile.init makefiles CC=/kolab/bin/cc 'CCARGS= -fPIC -O2 -pipe -I/kolab/include -DDEF_CONFIG_DIR=\"/kolab/etc/postfix\" -DHAS_DB -DHAS_PCRE -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/kolab/include/sasl -I/kolab/include -DUSE_TLS -DHAS_LDAP -DUSE_SOFTLIMITONLY' 'AUXLIBS= -L/kolab/lib -ldb -lpcre -lsasl2 -lcrypt -lssl -lcrypto -lldap -llber -lssl -lcrypto -L/kolab/lib -lfsl'
/kolab/bin/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
ATTENTION:
ATTENTION: Unknown system type: FreeBSD 9.0-STABLE
ATTENTION:
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.30854 (%build)
    Bad exit status from /kolab/RPM/TMP/rpm-tmp.30854 (%build)



FreeBSD mail.jail.lambertfam.org 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Jan  4 18:39:43 CST 2012     root at atom1.lambertfam.org:/usr/obj/usr/src/sys/GENERIC  amd64

I believe this simple workaround of patching postfix's makedefs
file should work:

--- makedefs.orig       2012-01-09 05:28:32.777349401 +0000
+++ makedefs    2012-01-09 05:29:14.980317177 +0000
@@ -146,6 +146,8 @@
                ;;
   FreeBSD.8*)  SYSTYPE=FREEBSD8
                ;;
+  FreeBSD.9*)  SYSTYPE=FREEBSD9
+               ;;
   OpenBSD.2*)  SYSTYPE=OPENBSD2
                ;;
   OpenBSD.3*)  SYSTYPE=OPENBSD3

Postfix builds with that change.  I am new to OpenPKG and Kolab.
I have not yet figured out how to build and install the package via
the openpkg framework with that modification.  I'm trying to read
"openpkg man build"  but the non functional ESC[##m sequences wrapped
around the options is making reading more difficult than it should
be.

I guess I will try the development-2.3/current version to see if
it already has postfix patched for the newer FreeBSD.  I'm building
on a dual core atom 1.8GHz box which takes a *long* time to bootstrap
openpkg and move on to building postfix.

This is just an experiment for my personal mail server.  I don't
have a lot of time to play.  If anyone has any hints, I would
appreciate the help.

Thanks,
-- 
Scott Lambert                    KC5MLE                       Unix SysAdmin
lambert at lambertfam.org




More information about the users mailing list