Re: Postfix with MySQL on OS X

From: Melvyn Sopacua (no email)
Date: Sat Nov 01 2003 - 07:00:10 EST


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).

-- 
Melvyn
=======================================================
FreeBSD ghost.lan.webteckies.org 4.9-RC FreeBSD 4.9-RC #6: Wed Oct  1 07:44:36 
CEST 2003     :/usr/obj/usr/src/sys/GHOST  i386
=======================================================







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD