On Wed, Feb 04, 2004 at 09:53:22PM -0600, rx-c...@wvfans.net wrote:
I am attempting to compile Courier Maildrop 1.6.3; my intention is to have
Postfix use this as my delivery agent to my virtual maildir-style
mailboxes.
My build script:
#! /bin/sh
CPPFLAGS="-I/usr/local/mysql/include"
LDFLAGS="-L/usr/local/mysql/lib -lmysqlclient -lz -lm"
export CPPFLAGS
export LDFLAGS
./configure \
--prefix=/usr/local/maildrop \
--enable-maildirquota \
--enable-maildropmysql
$ make
[...]
Making all in maildrop
make all-am
Compiling dotlock.C
Compiling dotlockrefresh.C
Compiling funcs.C
Compiling mdmysql.c
mdmysql.c:10:25: mysql/mysql.h: No such file or directory
mdmysql.c:11:26: mysql/errmsg.h: No such file or directory
Your environment variables might not be getting exported properly.
Try this as a test:
------------
#! /bin/sh
CPPFLAGS="-I/usr/local/mysql/include"
LDFLAGS="-L/usr/local/mysql/lib -lmysqlclient -lz -lm"
export CPPFLAGS
export LDFLAGS
echo $CPPFLAGS
echo $LDFLAGS
------------
If you get no output try putting everything all on the one line, like
this:
#! /bin/sh
CPPFLAGS="-I/usr/local/mysql/include" \
LDFLAGS="-L/usr/local/mysql/lib -lmysqlclient -lz -lm" \
./configure \
--prefix=/usr/local/maildrop \
--enable-maildirquota \
--enable-maildropmysql