1 message in net.sourceforge.lists.courier-maildrop[maildropl] Compiling MySQL support i...
FromSent OnAttachments
Stephen HooverDec 11, 2002 11:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Compiling MySQL support in FreeBSD 4.5Actions...
From:Stephen Hoover (shoo@442spot.com)
Date:Dec 11, 2002 11:35:42 am
List:net.sourceforge.lists.courier-maildrop

Hello,

I am trying to compile Maildrop 1.5.0 on FreeBSD 4.5 with MySQL support.

I am using this configure line:

./configure --without-db --enable-maildropmysql

The configure completes without errors and the I execute make. I get this error:

Compiling mdmysql.c mdmysql.c:10: mysql/mysql.h: No such file or directory mdmysql.c:11: mysql/errmsg.h: No such file or directory *** Error code 1

Stop in /root/maildrop-1.5.0/maildrop. *** Error code 1

Stop in /root/maildrop-1.5.0/maildrop. *** Error code 1

Stop in /root/maildrop-1.5.0.

I can correct this error by specifying the full path to mysql.h and errmsg.h in maildrop/mdysql.c. After correcting the path and re-executing make, I receive this error:

Compiling varlist.C g++ -g -O2 -I./../rfc822 -I./../rfc2045 -I.. -I./.. -Wall -o maildrop deliver.o deliverdotlock.o dotlockmaildrop.o filelock.o filter.o formatmbox.o globaltimer.o lexer.o log.o maildir.o main.o message.o messageinfo.o pipefds.o re.o recipe.o recipenode.o recipeparse.o reeval.o rematch.o rematchmsg.o rematchstr.o search.o token.o varlist.o libmdcommon.a ../rfc822/librfc822.a ../maildir/libmaildir.a ../numlib/libnumlib.a liblock/liblock.a -lmysqlclient -lz /usr/libexec/elf/ld: cannot find -lmysqlclient *** Error code 1

Stop in /root/maildrop-1.5.0/maildrop. *** Error code 1

Stop in /root/maildrop-1.5.0/maildrop.

I am relatively sure that it cannot find the mysqlclient lib file, but I don't know how to correct the path on it.

Any help is appreciated.