[vchkpw] vpopmail and mysql configuration problems

2004-01-08 Thread Ronnie Samuel
Hi everyone -- can some light be shed on this situation and a possible 
recommendation of how to rectify this please?
Any suggestions / assistance will be greatly appreciated. 
Thanks in advance
Regards,
Ronnie. 

My /home/vpopmail/etc/vpopmail.mysql file looks like this:

localhost|0|vpopmailusername|vpopmailpasswd|vpopmail
localhost|0|root|rootpasswd|vpopmail
My configuration is as follows:

./configure --enable-roaming-users=y --enable-logging=p 
--enable-default-quota=20971520S --enable-ip-alias-domains=n 
--enable-passwd=n --enable-clear-passwd=y --enable-domain-quotas=n 
--enable-mysql=y --enable-many-domains=y --enable-auth-logging=y 
--enable-mysql-logging=y --enable-valias=y --enable-mysql-limits=y 
--enable-incdir=/usr/include/

When I type make -- i get the following error during the make:

chmod 755 makelib
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
cdbmake_add.o
make[2]: Leaving directory `/home/techdoc/qmail/vpopmail-5.3.30/cdb'
make[2]: Entering directory `/home/techdoc/qmail/vpopmail-5.3.30'
gcc -I. -I/usr/include/  -I. -I. -I. -g -O2 -Wall -c `test -f 
'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory
vauth.c:40: error: syntax error before mysql_update
vauth.c:40: warning: type defaults to `int' in declaration of `mysql_update'
vauth.c:40: warning: data definition has no type or storage class
vauth.c:41: error: syntax error before mysql_read_getall
vauth.c:41: warning: type defaults to `int' in declaration of 
`mysql_read_getall'
vauth.c:41: warning: data definition has no type or storage class
vauth.c:59: error: syntax error before '*' token
vauth.c:59: warning: type defaults to `int' in declaration of `res_update'
vauth.c:59: warning: data definition has no type or storage class
vauth.c:60: error: syntax error before '*' token
vauth.c:60: warning: type defaults to `int' in declaration of 
`res_read_getall'
vauth.c:60: warning: data definition has no type or storage class
vauth.c:68: error: syntax error before row
vauth.c:68: warning: type defaults to `int' in declaration of `row'
vauth.c:68: warning: data definition has no type or storage class
vauth.c:69: error: syntax error before row_getall
vauth.c:69: warning: type defaults to `int' in declaration of `row_getall'
vauth.c:69: warning: data definition has no type or storage class
vauth.c: In function `vauth_open_update':
vauth.c:203: warning: implicit declaration of function `mysql_init'
vauth.c:204: warning: implicit declaration of function `mysql_options'
vauth.c:204: error: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in 
this function)
vauth.c:204: error: (Each undeclared identifier is reported only once
vauth.c:204: error: for each function it appears in.)
vauth.c:207: warning: implicit declaration of function `mysql_real_connect'
vauth.c:226: warning: implicit declaration of function `mysql_query'
vauth.c:231: warning: implicit declaration of function `mysql_error'
vauth.c:231: warning: format argument is not a pointer (arg 3)
vauth.c:236: warning: implicit declaration of function `mysql_select_db'
vauth.c: In function `vauth_adduser':
vauth.c:403: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getpw':
vauth.c:454: warning: format argument is not a pointer (arg 3)
vauth.c:458: warning: implicit declaration of function `mysql_store_result'
vauth.c:458: warning: assignment makes pointer from integer without a cast
vauth.c:463: warning: implicit declaration of function `mysql_num_rows'
vauth.c:464: warning: implicit declaration of function `mysql_free_result'
vauth.c:482: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:483: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:484: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:485: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:486: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: subscripted value is neither array nor pointer
vauth.c:487: error: 

Re: [vchkpw] vpopmail and mysql configuration problems

2004-01-08 Thread Tom Collins
On Jan 8, 2004, at 11:08 AM, Ronnie Samuel wrote:
--enable-incdir=/usr/include/
This needs to be the include directory for the MySQL libs.

Something like /usr/local/include/mysql.  Try leaving it blank, as 
vpopmail will search multiple locations for the correct directory.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/