2 messages in net.sourceforge.lists.courier-maildrop[maildropl] MySQL support fails to co...
FromSent OnAttachments
Jesper NøhrJul 3, 2003 3:58 pm 
Bernhard SchmidtJul 3, 2003 11:58 pm 
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] MySQL support fails to compileActions...
From:Jesper Nøhr (jes@noehr.org)
Date:Jul 3, 2003 3:58:42 pm
List:net.sourceforge.lists.courier-maildrop

Hi list. I'm using FreeBSD 5.1 with MySQL-4.0.1. I'm trying to compile maildrop 1.5.3. with mysql support, so I do ./configure --enable-maildropmysql. The configure-script runs fine, but as soon as I get to the `make' part it goes:

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: syntax error before "mysql_buf" mdmysql.c:18: `MYSQL_RES' undeclared (first use in this function) mdmysql.c:18: (Each undeclared identifier is reported only once mdmysql.c:18: for each function it appears in.) mdmysql.c:18: `result' undeclared (first use in this function) mdmysql.c:19: syntax error before "row" mdmysql.c:32: `mysql' undeclared (first use in this function) mdmysql.c:32: warning: implicit declaration of function `mysql_connect' mdmysql.c:32: `mysql_buf' undeclared (first use in this function) mdmysql.c:32: `server' undeclared (first use in this function) mdmysql.c:32: `userid' undeclared (first use in this function) mdmysql.c:32: `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:65: warning: implicit declaration of function `mysql_query' mdmysql.c:74: warning: implicit declaration of function `mysql_store_result' mdmysql.c:82: warning: implicit declaration of function `mysql_num_rows' mdmysql.c:84: warning: implicit declaration of function `mysql_free_result' mdmysql.c:89: `row' undeclared (first use in this function) mdmysql.c:89: warning: implicit declaration of function `mysql_fetch_row' *** Error code 1

So I'm thinking - right - it can't find the mysql/mysql.h files, cause they are different located that on a linux computer. So I open up Makefile, and alter the DEFAULT_INCLUDES = -I. -I$(srcdir), to include -I/usr/local/include, Cause mysql/ lies there. But it still says it can't find it. Any ideas?