Re: Postfix with MySQL on OS X

From: Doc Walker (no email)
Date: Sat Nov 01 2003 - 06:31:54 EST


[...cut...]

> % make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL
> - -I/usr/local/mysql/include' \
> 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
>
> With make I get the following error:
>
> cc -DHAS_MYSQL -I/usr/local/mysql/include -g -O -I. -I../../include
> - -DRHAPSODY5 -o master master.o master_conf.o master_ent.o
> master_sig.o
> master_avail.o master_spawn.o master_service.o master_status.o
> master_listen.o master_vars.o master_wakeup.o master_flow.o
> ../../lib/libglobal.a ../../lib/libutil.a -L/usr/local/mysql/lib
> - -lmysqlclient -lz -lm -flat_namespace
> ld: Undefined symbols:
> _db_create
> _db_version
> make: *** [master] Error 1
> make: *** [update] Error 1
>
[...cut...]

Perform the tar command as normal user (not root or sudo):
% tar -xvf postfix-2.0.16.tar
% cd postfix-2.0.16
Modify the source code in postfix-2.0.16/src/util/msg_syslog.c:
% pico src/util/msg_syslog.c
Find the line (should be near line 183) with
        putenv("TZ=");
Change it to
        putenv("TZ=''");
 From the postfix-2.0.16 directory as normal user (not root or sudo):
% make tidy
% make makefiles \
     'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \
     'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm' \
     'OPT=-DBIND_8_COMPAT'
% make
% sudo make install

Use the default locations for the binaries, except for the second
option...use /usr/bin (needs to be same directory as location for
/usr/newaliases) for the temporary directory. If not, the make install
will fail because it is not able to remove a symbolic link with the mv
command.

You will need to uncomment the SMTP line in /etc/postfix/master.cf and
configure /etc/postfix/main.cf.
smtp inet n - n - - smtpd

For reference, I am using the following:
- Mac OS 10.3
- postfix-2.0.16
- mysql-standard-4.0.13-apple-darwin6.4-powerpc
- courier-imap-2.1.2

Good luck.

Rx








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD