5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Errs compiling Courie...
FromSent OnAttachments
rx-c...@wvfans.netFeb 4, 2004 7:52 pm 
Arnaud PignardFeb 4, 2004 8:12 pm 
Devin RubiaFeb 5, 2004 11:02 am 
Doc WalkerFeb 5, 2004 7:18 pm 
Devin RubiaFeb 6, 2004 5:38 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:Re: [maildropl] Errs compiling Courier Maildrop w/MySQL supportActions...
From:Arnaud Pignard (apig@frontier.fr)
Date:Feb 4, 2004 8:12:40 pm
List:net.sourceforge.lists.courier-maildrop

The include of mysql is not found

You can try to ln the include in the current install dir (very crap but work)

like : ln -s /usr/local/include/mysql /tmp/maildrop-1.6.3/maildrop/mysql

Regards

At 04:53 05/02/2004, you wrote:

I'm using the following software:

System: Mac OS X 10.3 (7B85) Kernel: Darwin 7.0.0 MySQL 4.0.13 Perl 5.8.1 PCRE 4.3 Postfix 2.0.16 Courier-IMAP 2.1.2 SquirrelMail 1.4.2

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 mdmysql.c: In function `get_user_mysql': mdmysql.c:17: error: `MYSQL' undeclared (first use in this function) mdmysql.c:17: error: (Each undeclared identifier is reported only once mdmysql.c:17: error: for each function it appears in.) mdmysql.c:17: error: parse error before "mysql_buf" mdmysql.c:18: error: `MYSQL_RES' undeclared (first use in this function) mdmysql.c:18: error: `result' undeclared (first use in this function) mdmysql.c:19: error: `MYSQL_ROW' undeclared (first use in this function) mdmysql.c:19: error: parse error before "row" mdmysql.c:32: error: `mysql' undeclared (first use in this function) mdmysql.c:32: warning: implicit declaration of function `mysql_connect' mdmysql.c:32: error: `mysql_buf' undeclared (first use in this function) mdmysql.c:32: error: `server' undeclared (first use in this function) mdmysql.c:32: error: `userid' undeclared (first use in this function) mdmysql.c:32: error: `password' undeclared (first use in this function) mdmysql.c:37: warning: implicit declaration of function `mysql_select_db' mdmysql.c:39: warning: implicit declaration of function `mysql_close' mdmysql.c:64: warning: implicit declaration of function `mysql_query' mdmysql.c:73: warning: implicit declaration of function `mysql_store_result' mdmysql.c:81: warning: implicit declaration of function `mysql_num_rows' mdmysql.c:83: warning: implicit declaration of function `mysql_free_result' mdmysql.c:88: error: `row' undeclared (first use in this function) mdmysql.c:88: warning: implicit declaration of function `mysql_fetch_row' make[2]: *** [mdmysql.o] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1

It doesn't appear that my -I includes directive is being used during compilation as seen in the following excerpt:

gcc -g -O2 -I./../rfc822 -I./../rfc2045 -I.. -I./.. -Wall -L/usr/local/mysql/lib -lmysqlclient -lz -lm -o mailbot mailbot.o ../rfc822 librfc822.a ../liblock/liblock.a ../numlib/libnumlib.a ../bdbobj/libbdbobj.a

What am I doing wrong?

Rx