[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile problem redhat 7.3



On Wed, 9 Oct 2002 08:44:49 +0200
"Giuseppe De Franceschi - RETI srl" <giuseppe.defranceschi@xxxxxxxxxx> wrote:

> [root@port qmail-sql-1.03]# make setup check
> ./compile qmail-qmtpd.c
> In file included from qmail-qmtpd.c:14:
> sql.h:21:19: mysql.h: No such file or directory
> In file included from qmail-qmtpd.c:14:
> sql.h:62: parse error before "MYSQL"
> sql.h:62: warning: no semicolon at end of struct or union
> sql.h:70: parse error before '}' token
> sql.h:70: warning: data definition has no type or storage class
> sql.h:72: parse error before '*' token
> sql.h:74: parse error before '*' token
> sql.h:77: parse error before '*' token
> sql.h:78: parse error before '*' token
> sql.h:79: parse error before '*' token
> sql.h:81: parse error before '*' token
> sql.h:82: parse error before '*' token
> qmail-qmtpd.c:19: parse error before "sqlconfig"
> qmail-qmtpd.c:19: warning: data definition has no type or storage class
> make: *** [qmail-qmtpd.o] Error 1
> 
> 
> I have modified sql.header 
> [root@port qmail-sql-1.03]# cat sql.headers
> -I/usr/include/mysql
> 
> Help me

Hello!
I solve this problem by changing 'compile' file to follows:

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
exec cc -O2 -c ${1+"$@"} -I/usr/include/mysql

(just adding -I/usr/include/mysql to the last line)

> 
> Giuseppe De Franceschi