Re: Postfix with MySQL on OS X

From: Kirk Samuelson (no email)
Date: Sun Nov 02 2003 - 07:09:55 EST


On Saturday, November 1, 2003, at 06:00 AM, Melvyn Sopacua wrote:

> On Friday 31 October 2003 23:24, Kirk Samuelson wrote:
>
>>> % 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
>
> _db_create and _db_version are Berkeley DB symbols. Not MySQL's. I
> think your
> MySQL 3 version has Berkeley DB table support and your MySQL 4 version
> has
> not.
> The real error probably is that the BDB 1.x library cannot be found
> (but the
> <db.h> file is). Try adding -ldb to the AUXLIBS (and any linker path
> that is
> needed).
>
Yes, you're right. A search of the archives will tell you this. I did
that but still didn't believe it. But I've confirmed it now. Removing
my symlinks to Berkeley DB from /usr/include and /usr/lib made the
problem go away. Presumably it's OK if Postfix can't find the BDB
library?

FWIW, this is my setup and, after a few long days, it's all working:

Mac OS X 10.2.8
Postfix 2.0.16
Courier-imap 2.2.0
MySQL 4.0.15-standard

Postfixadmin 1.5.4 <http://www.high5.net/postfixadmin/> and
SquirrelMail too. Altogether a beautiful setup!

Thanks to all,

-Kirk

--
- - - - - - - - - - - - - - -
http://www.kirksamuelson.com/
http://www.datalogic.ws/
  - - - - - - - - - - - - - -
ks AT kirksamuelson DOT com
AIM: stiggywigget
- - - - - - - - - - - - - - -







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD