Hi all,
 
not posted for a while as all has been going well with my mail server.
I have decided to build a new mail server for a friend and I am having a small problem
 
I am using mysql 3.23.55 on a linux from scratch server with glibc2.2
 
I am using vpopmail 5.2.1
 
I have edited vmysql.h to contain the right username/pass/servername for the root and read users, and tested them connecting with mysql
 
I run this VERY long configure option
 
./configure --enable-qmaildir=/var/qmail --enable-vpopuser=vpopmail --enable-vpopgroup=vchkpw --enable-roaming-users=y --enable-tcpfules-prog=/usr/local/bin/tcprules --enable-tcpserver-file=~vpopmail/etc/tcp.smtp --enable-relay-clear-minutes=120 --enable-learn-passwords=n --enable-md5-passwords=y --enable-auth-logging=y --enable-mysql-logging=y --enable-clear-passwd=y --enable-logging=e --enable-log-name=vpopmail --enable-mysql=y --enable-sqlincdir=/usr/local/mysql/include/mysql --enable-sqllibdir=/usr/local/mysql/lib/mysql --enable-incdir=/usr/include --enable-libdir=/usr/lib --enable-valias=y --enable-default-domain=mdlan.co.uk
 
which seems to go ok, but when I issue "make" it starts complaining about a lot of mysql functions and some C files.
 
(sorry for the long error message but I think there are 2 problems here)
 
vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function)
vauth.c:204: `MYSQL_UPDATE_SERVER' undeclared (first use in this function)
vauth.c:205: `MYSQL_UPDATE_USER' undeclared (first use in this function)
vauth.c:205: `MYSQL_UPDATE_PASSWD' undeclared (first use in this function)
vauth.c: In function `vauth_adddomain':
vauth.c:239: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_adduser':
vauth.c:314: warning: format argument is not a pointer (arg 2)
vauth.c:317: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_getpw':
vauth.c:366: warning: format argument is not a pointer (arg 2)
vauth.c:370: warning: assignment makes pointer from integer without a cast
vauth.c:375: warning: implicit declaration of function `mysql_num_rows'
vauth.c:394: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:397: subscripted value is neither array nor pointer
vauth.c:397: subscripted value is neither array nor pointer
vauth.c:398: subscripted value is neither array nor pointer
vauth.c:398: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c: In function `vauth_deldomain':
vauth.c:433: warning: assignment makes pointer from integer without a cast
vauth.c:446: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_deluser':
vauth.c:479: warning: assignment makes pointer from integer without a cast
vauth.c:489: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_setquota':
vauth.c:521: warning: format argument is not a pointer (arg 2)
vauth.c:524: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_getall':
vauth.c:561: warning: format argument is not a pointer (arg 2)
vauth.c:565: warning: assignment makes pointer from integer without a cast
vauth.c:587: warning: comparison between pointer and integer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:590: subscripted value is neither array nor pointer
vauth.c:590: subscripted value is neither array nor pointer
vauth.c:591: subscripted value is neither array nor pointer
vauth.c:591: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:594: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:598: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c: In function `vauth_setpw':
vauth.c:687: warning: format argument is not a pointer (arg 2)
vauth.c:691: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vopen_smtp_relay':
vauth.c:728: warning: format argument is not a pointer (arg 2)
vauth.c:731: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vupdate_rules':
vauth.c:744: warning: format argument is not a pointer (arg 2)
vauth.c:748: warning: assignment makes pointer from integer without a cast
vauth.c:753: subscripted value is neither array nor pointer
vauth.c: In function `vcreate_relay_table':
vauth.c:782: warning: format argument is not a pointer (arg 2)
vauth.c:785: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vclose':
vauth.c:799: warning: implicit declaration of function `mysql_close'
vauth.c: In function `vread_dir_control':
vauth.c:954: warning: assignment makes pointer from integer without a cast
vauth.c:959: warning: comparison between pointer and integer
vauth.c:961: subscripted value is neither array nor pointer
vauth.c:962: subscripted value is neither array nor pointer
vauth.c:963: subscripted value is neither array nor pointer
vauth.c:965: subscripted value is neither array nor pointer
vauth.c:966: subscripted value is neither array nor pointer
vauth.c:967: subscripted value is neither array nor pointer
vauth.c:969: subscripted value is neither array nor pointer
vauth.c:970: subscripted value is neither array nor pointer
vauth.c:971: subscripted value is neither array nor pointer
vauth.c:973: subscripted value is neither array nor pointer
vauth.c:974: subscripted value is neither array nor pointer
vauth.c:975: subscripted value is neither array nor pointer
vauth.c:977: subscripted value is neither array nor pointer
vauth.c:978: subscripted value is neither array nor pointer
vauth.c:979: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c: In function `vwrite_dir_control':
vauth.c:1031: warning: format argument is not a pointer (arg 2)
vauth.c:1035: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vcreate_dir_control':
vauth.c:1049: warning: format argument is not a pointer (arg 2)
vauth.c:1052: warning: assignment makes pointer from integer without a cast
vauth.c:1072: warning: format argument is not a pointer (arg 2)
vauth.c:1075: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vdel_dir_control':
vauth.c:1091: warning: format argument is not a pointer (arg 2)
vauth.c:1095: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vset_lastauth':
vauth.c:1114: warning: format argument is not a pointer (arg 2)
vauth.c:1117: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vget_lastauth':
vauth.c:1135: warning: format argument is not a pointer (arg 2)
vauth.c:1139: warning: assignment makes pointer from integer without a cast
vauth.c:1142: subscripted value is neither array nor pointer
vauth.c: In function `vget_lastauthip':
vauth.c:1160: warning: format argument is not a pointer (arg 2)
vauth.c:1164: warning: assignment makes pointer from integer without a cast
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c: In function `vcreate_lastauth_table':
vauth.c:1180: warning: format argument is not a pointer (arg 2)
vauth.c:1183: warning: assignment makes pointer from integer without a cast
vauth.c: In function `valias_select':
vauth.c:1205: warning: format argument is not a pointer (arg 2)
vauth.c:1209: warning: assignment makes pointer from integer without a cast
vauth.c: In function `valias_select_next':
vauth.c:1216: subscripted value is neither array nor pointer
vauth.c: In function `valias_insert':
vauth.c:1236: warning: format argument is not a pointer (arg 2)
vauth.c:1240: warning: assignment makes pointer from integer without a cast
vauth.c: In function `valias_delete':
vauth.c:1258: warning: format argument is not a pointer (arg 2)
vauth.c:1262: warning: assignment makes pointer from integer without a cast
vauth.c: In function `valias_delete_domain':
vauth.c:1280: warning: format argument is not a pointer (arg 2)
vauth.c:1284: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vcreate_valias_table':
vauth.c:1296: warning: format argument is not a pointer (arg 2)
vauth.c:1299: warning: assignment makes pointer from integer without a cast
vauth.c: In function `valias_select_all':
vauth.c:1316: warning: format argument is not a pointer (arg 2)
vauth.c:1320: warning: assignment makes pointer from integer without a cast
vauth.c: In function `valias_select_all_next':
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1327: subscripted value is neither array nor pointer
vauth.c:1328: subscripted value is neither array nor pointer
vauth.c: In function `logmysql':
vauth.c:1359: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vcreate_vlog_table':
vauth.c:1376: warning: assignment makes pointer from integer without a cast
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/usr/local/src/qmail/vpopmail-5.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/qmail/vpopmail-5.2.1'
make: *** [all-recursive-am] Error 2
 
Any input would be great.
 
Thanks,
 
Matt.
 

Reply via email to