Hello,

I have been searching the toaster mailing list archive but didn't quite find an answer to my problem. I am hoping that someone can give me some guidance. I have installed the latest posting of Bill's Toaster on my Fedora Core 3 server. I was now trying to install the greylisting patch and run into the following problem when issuing "make".

Just to confirm I am following the write steps, here is my setup and what I have done.

Setup:
-Fedora Core 3
-Latest Qmail Toaster Installed and functioning
-MySQL Version 4.1.12

What I have done:
-I downloaded the qmail-toaster-0.6-1+greylisting.patch <http://shupp.org/patches/qmail-toaster-0.6-1+greylisting.patch> and patched the "netqmail-105" listed on Bill's site. The patch installed without errors.
-I then changed the auth/database info in dbdef.sql AND local_scan.c
-I issued the "make" command to compile netqmail-105 and get the following problem.

The questions I have are:
-Am I using the right greylisting patch for my version of qmail/netqmail? Do I need an additional patch? -It seems like it is bombing out in mysql. Where do I get the mysql/mysql.h file, or am I heading in the wrong direction.

Any help is welcome.  Thanks,  Stephen


alloc.a strerr.a substdio.a error.a str.a fs.a auto_qmail.o base64.o  `cat \
socket.lib` dns.o `cat dns.lib`
./compile qmail-envelope-scanner.c
./compile local_scan.c
local_scan.c:15:25: mysql/mysql.h: No such file or directory
local_scan.c:33: error: syntax error before '*' token
local_scan.c: In function `mysql_query_wrapper':
local_scan.c:37: error: `mysql' undeclared (first use in this function)
local_scan.c:37: error: (Each undeclared identifier is reported only once
local_scan.c:37: error: for each function it appears in.)
local_scan.c:37: error: `sqltext' undeclared (first use in this function)
local_scan.c: At top level:
local_scan.c:64: error: syntax error before '*' token
local_scan.c: In function `checkWhiteListIP':
local_scan.c:66: error: `MYSQL_RES' undeclared (first use in this function)
local_scan.c:66: error: `myres' undeclared (first use in this function)
local_scan.c:67: error: `MYSQL_ROW' undeclared (first use in this function)
local_scan.c:67: error: syntax error before "myrow"
local_scan.c:79: error: `mysql' undeclared (first use in this function)
local_scan.c:81: error: `myrow' undeclared (first use in this function)
local_scan.c:93: error: `action' undeclared (first use in this function)
local_scan.c: At top level:
local_scan.c:107: error: syntax error before '*' token
local_scan.c: In function `checkWhiteListDomain':
local_scan.c:109: error: `MYSQL_RES' undeclared (first use in this function)
local_scan.c:109: error: `myres' undeclared (first use in this function)
local_scan.c:110: error: `MYSQL_ROW' undeclared (first use in this function)
local_scan.c:110: error: syntax error before "myrow"
local_scan.c:115: error: `i' undeclared (first use in this function)
local_scan.c:121: error: `mysql' undeclared (first use in this function)
local_scan.c:123: error: `myrow' undeclared (first use in this function)
local_scan.c:135: error: `action' undeclared (first use in this function)
local_scan.c: At top level:
local_scan.c:170: error: syntax error before '*' token
local_scan.c: In function `checkGreylist':
local_scan.c:172: error: `MYSQL_RES' undeclared (first use in this function)
local_scan.c:172: error: `myres' undeclared (first use in this function)
local_scan.c:173: error: `MYSQL_ROW' undeclared (first use in this function)
local_scan.c:173: error: syntax error before "myrow"
local_scan.c:179: error: `i' undeclared (first use in this function)
local_scan.c:180: error: `mysql' undeclared (first use in this function)
local_scan.c:182: error: `myrow' undeclared (first use in this function)
local_scan.c:197: error: `action' undeclared (first use in this function)
local_scan.c: In function `local_scan':
local_scan.c:223: error: `MYSQL' undeclared (first use in this function)
local_scan.c:223: error: `mysql' undeclared (first use in this function)
make: *** [local_scan.o] Error 1

Reply via email to