[vchkpw] vpopmail with mysql support
hi ppl i am using qmail on linux with vpopmail(5.3.14) support with mysql. But getting error like that when using with mysql support. Any body has idea about that error. vauth.c: In function `vget_lastauth': vauth.c:1132: `mysql_update' undeclared (first use in this function) vauth.c:1139: warning: assignment makes integer from pointer without a cast vauth.c:1141: warning: passing arg 1 of `mysql_fetch_row' makes pointer from integer without a cast vauth.c: In function `vget_lastauthip': vauth.c:1157: `mysql_update' undeclared (first use in this function) vauth.c:1164: warning: assignment makes integer from pointer without a cast vauth.c:1165: warning: passing arg 1 of `mysql_fetch_row' makes pointer from integer without a cast vauth.c: In function `vcreate_lastauth_table': vauth.c:1178: `LASTAUTH_TABLE_LAYOUT' undeclared (first use in this function) vauth.c:1179: `mysql_update' undeclared (first use in this function) vauth.c:1183: warning: assignment makes integer from pointer without a cast vauth.c: In function `logmysql': vauth.c:1352: `mysql_update' undeclared (first use in this function) vauth.c:1359: warning: assignment makes integer from pointer without a cast vauth.c: In function `vcreate_vlog_table': vauth.c:1372: `mysql_update' undeclared (first use in this function) vauth.c:1376: warning: assignment makes integer from pointer without a cast make[2]: *** [vauth.o] Error 1 make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/vpopmail-5.2.1' make: *** [all-recursive-am] Error 2 ** Waiting for a reply Tx Zafar
Re: [vchkpw] vpopmail with mysql support
I think problem can be in mysql lib files better to check it via ldconfig or make sure password and username is okk for mysql database. Error message which you have attatched with mail is too low. Better to show us output above these lines... -- Best Regs, Masood Ahmad Shah System Administrator ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ | * * * * * * * * * * * * * * * * * * * * * * * * | Fibre Net (Pvt) Ltd. Lahore, Pakistan | Tel: +92-42-6677024 | Mobile: +92-300-4277367 | http://www.fibre.net.pk | * * * * * * * * * * * * * * * * * * * * * * * * ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie) All I want is a few minutes alone with the source code for the universe and a quick recompile. - Original Message - From: zafar rizvi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:23 AM Subject: [vchkpw] vpopmail with mysql support | hi ppl | i am using qmail on linux with vpopmail(5.3.14) support with mysql. But | getting error like that when using with mysql support. | Any body has idea about that error. | | vauth.c: In function `vget_lastauth': | vauth.c:1132: `mysql_update' undeclared (first use in this function) | vauth.c:1139: warning: assignment makes integer from pointer without a cast | vauth.c:1141: warning: passing arg 1 of `mysql_fetch_row' makes pointer from | integer without a cast | vauth.c: In function `vget_lastauthip': | vauth.c:1157: `mysql_update' undeclared (first use in this function) | vauth.c:1164: warning: assignment makes integer from pointer without a cast | vauth.c:1165: warning: passing arg 1 of `mysql_fetch_row' makes pointer from | integer without a cast | vauth.c: In function `vcreate_lastauth_table': | vauth.c:1178: `LASTAUTH_TABLE_LAYOUT' undeclared (first use in this | function) | vauth.c:1179: `mysql_update' undeclared (first use in this function) | vauth.c:1183: warning: assignment makes integer from pointer without a cast | vauth.c: In function `logmysql': | vauth.c:1352: `mysql_update' undeclared (first use in this function) | vauth.c:1359: warning: assignment makes integer from pointer without a cast | vauth.c: In function `vcreate_vlog_table': | vauth.c:1372: `mysql_update' undeclared (first use in this function) | vauth.c:1376: warning: assignment makes integer from pointer without a cast | make[2]: *** [vauth.o] Error 1 | make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1' | make[1]: *** [all-recursive] Error 1 | make[1]: Leaving directory `/usr/local/src/vpopmail-5.2.1' | make: *** [all-recursive-am] Error 2 | ** | | Waiting for a reply | Tx | Zafar | | |
Re: [vchkpw] vpopmail with mysql support
hi here is the all output of make command * cdbmake_add.o make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1/cdb' make[2]: Entering directory `/usr/local/src/vpopmail-5.2.1' gcc -I. -I/usr/include/mysql -g -O2 -Wall -c vpopmail.c gcc -I. -I/usr/include/mysql -g -O2 -Wall -c md5.c gcc -I. -I/usr/include/mysql -g -O2 -Wall -c bigdir.c gcc -I. -I/usr/include/mysql -g -O2 -Wall -c vauth.c In file included from vauth.c:32: vmysql.h:26:29: warning: multi-line string literals are deprecated vmysql.h:27:35: warning: multi-line string literals are deprecated vmysql.h:29:39: warning: multi-line string literals are deprecated vmysql.h:30:35: warning: multi-line string literals are deprecated vmysql.h:31:35: warning: multi-line string literals are deprecated vmysql.h:36:38: warning: multi-line string literals are deprecated vmysql.h:37:33: warning: multi-line string literals are deprecated vmysql.h:39:39: warning: multi-line string literals are deprecated vmysql.h:51:35: warning: multi-line string literals are deprecated In file included from vauth.c:32: vmysql.h:55: syntax error before char vmysql.h:60:35: warning: multi-line string literals are deprecated vmysql.h:71:24: warning: multi-line string literals are deprecated vmysql.h:79:24: warning: multi-line string literals are deprecated vmysql.h:84:42: warning: multi-line string literals are deprecated vmysql.h:91:27: warning: multi-line string literals are deprecated vmysql.h:59: stray '\' in program vmysql.h:118:2: #else without #if vmysql.h:130:2: #endif without #if vmysql.h:243:2: #endif without #if vauth.c: In function `vauth_open_update': vauth.c:108: `mysql_update' undeclared (first use in this function) vauth.c:108: (Each undeclared identifier is reported only once vauth.c:108: for each function it appears in.) vauth.c:112: parse error before rizvi vauth.c:122: parse error before rizvi vauth.c: At top level: vauth.c:133: parse error before numeric constant vauth.c:134: warning: type defaults to `int' in declaration of `snprintf' vauth.c:134: warning: data definition has no type or storage class vauth.c:143: warning: type defaults to `int' in declaration of `res_update' vauth.c:143: conflicting types for `res_update' vauth.c:54: previous declaration of `res_update' vauth.c:143: `mysql_update' undeclared here (not in a function) vauth.c:143: warning: initialization makes integer from pointer without a cast vauth.c:143: initializer element is not constant vauth.c:143: warning: data definition has no type or storage class vauth.c:144: warning: type defaults to `int' in declaration of `mysql_free_result' vauth.c:144: warning: parameter names (without types) in function declaration vauth.c:144: conflicting types for `mysql_free_result' /usr/include/mysql/mysql.h:271: previous declaration of `mysql_free_result' vauth.c:144: warning: data definition has no type or storage class vauth.c:147: parse error before if vauth.c: In function `vauth_open_read_getall': vauth.c:199: `MYSQL_READ_SERVER' undeclared (first use in this function) vauth.c:200: `MYSQL_READ_USER' undeclared (first use in this function) vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function) vauth.c:200: `MYSQL_DATABASE' undeclared (first use in this function) vauth.c:201: `MYSQL_VPORT' undeclared (first use in this function) vauth.c:205: parse error before rizvi vauth.c: At top level: vauth.c:214: parse error before return vauth.c: In function `vauth_adddomain': vauth.c:228: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:232: `TABLE_LAYOUT' undeclared (first use in this function) vauth.c:234: `mysql_update' undeclared (first use in this function) vauth.c:239: warning: assignment makes integer from pointer without a cast vauth.c: In function `vauth_adduser': vauth.c:269: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:272: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this function) vauth.c:311: warning: int format, pointer arg (arg 7) vauth.c:311: warning: format argument is not a pointer (arg 8) vauth.c:311: warning: too many arguments for format vauth.c:313: `mysql_update' undeclared (first use in this function) vauth.c:317: warning: assignment makes integer from pointer without a cast vauth.c: In function `vauth_getpw': vauth.c:351: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:355: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this function) vauth.c:365: `mysql_update' undeclared (first use in this function) vauth.c:370: warning: assignment makes integer from pointer without a cast vauth.c:375: warning: passing arg 1 of `mysql_num_rows' makes pointer from integer without a cast vauth.c:394: warning: passing arg 1 of `mysql_fetch_row' makes pointer from integer without a cast vauth.c: In function `vauth_deldomain': vauth.c:425: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:430: `mysql_update' undeclared (first use
Re: [vchkpw] vpopmail with mysql support
hmmm it seems when u added you login name rizvi and password rizvi.. you had done something wrong with syntex of this file.. I will suggest better to untar again source and put username and password as it will... Always becareful for syntex when adding something to source sorry for spell mistake due to lake of time :) -- Best Regs, Masood Ahmad Shah System Administrator ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ | * * * * * * * * * * * * * * * * * * * * * * * * | Fibre Net (Pvt) Ltd. Lahore, Pakistan | Tel: +92-42-6677024 | Mobile: +92-300-4277367 | http://www.fibre.net.pk | * * * * * * * * * * * * * * * * * * * * * * * * ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie) All I want is a few minutes alone with the source code for the universe and a quick recompile. - Original Message - From: zafar rizvi [EMAIL PROTECTED] To: Ahmad Masood Shah [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:27 PM Subject: Re: [vchkpw] vpopmail with mysql support | hi | here is the all output of make command | * | cdbmake_add.o | make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1/cdb' | make[2]: Entering directory `/usr/local/src/vpopmail-5.2.1' | gcc -I. -I/usr/include/mysql -g -O2 -Wall -c vpopmail.c | gcc -I. -I/usr/include/mysql -g -O2 -Wall -c md5.c | gcc -I. -I/usr/include/mysql -g -O2 -Wall -c bigdir.c | gcc -I. -I/usr/include/mysql -g -O2 -Wall -c vauth.c | In file included from vauth.c:32: | vmysql.h:26:29: warning: multi-line string literals are deprecated | vmysql.h:27:35: warning: multi-line string literals are deprecated | vmysql.h:29:39: warning: multi-line string literals are deprecated | vmysql.h:30:35: warning: multi-line string literals are deprecated | vmysql.h:31:35: warning: multi-line string literals are deprecated | vmysql.h:36:38: warning: multi-line string literals are deprecated | vmysql.h:37:33: warning: multi-line string literals are deprecated | vmysql.h:39:39: warning: multi-line string literals are deprecated | vmysql.h:51:35: warning: multi-line string literals are deprecated | In file included from vauth.c:32: | vmysql.h:55: syntax error before char | vmysql.h:60:35: warning: multi-line string literals are deprecated | vmysql.h:71:24: warning: multi-line string literals are deprecated | vmysql.h:79:24: warning: multi-line string literals are deprecated | vmysql.h:84:42: warning: multi-line string literals are deprecated | vmysql.h:91:27: warning: multi-line string literals are deprecated | vmysql.h:59: stray '\' in program | vmysql.h:118:2: #else without #if | vmysql.h:130:2: #endif without #if | vmysql.h:243:2: #endif without #if | vauth.c: In function `vauth_open_update': | vauth.c:108: `mysql_update' undeclared (first use in this function) | vauth.c:108: (Each undeclared identifier is reported only once | vauth.c:108: for each function it appears in.) | vauth.c:112: parse error before rizvi | vauth.c:122: parse error before rizvi | vauth.c: At top level: | vauth.c:133: parse error before numeric constant | vauth.c:134: warning: type defaults to `int' in declaration of `snprintf' | vauth.c:134: warning: data definition has no type or storage class | vauth.c:143: warning: type defaults to `int' in declaration of `res_update' | vauth.c:143: conflicting types for `res_update' | vauth.c:54: previous declaration of `res_update' | vauth.c:143: `mysql_update' undeclared here (not in a function) | vauth.c:143: warning: initialization makes integer from pointer without a | cast | vauth.c:143: initializer element is not constant | vauth.c:143: warning: data definition has no type or storage class | vauth.c:144: warning: type defaults to `int' in declaration of | `mysql_free_result' | vauth.c:144: warning: parameter names (without types) in function | declaration | vauth.c:144: conflicting types for `mysql_free_result' | /usr/include/mysql/mysql.h:271: previous declaration of `mysql_free_result' | vauth.c:144: warning: data definition has no type or storage class | vauth.c:147: parse error before if | vauth.c: In function `vauth_open_read_getall': | vauth.c:199: `MYSQL_READ_SERVER' undeclared (first use in this function) | vauth.c:200: `MYSQL_READ_USER' undeclared (first use in this function) | vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function) | vauth.c:200: `MYSQL_DATABASE' undeclared (first use in this function) | vauth.c:201: `MYSQL_VPORT' undeclared (first use in this function) | vauth.c:205: parse error before rizvi | vauth.c: At top level: | vauth.c:214: parse error before return | vauth.c: In function `vauth_adddomain': | vauth.c:228: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) | vauth.c:232: `TABLE_LAYOUT' undeclared (first use in this function) | vauth.c:234: `mysql_update' undeclared (first use in this function) | vauth.c:239: warning
Re: [vchkpw] vpopmail with mysql support
zafar rizvi wrote: hi ppl i am using qmail on linux with vpopmail(5.3.14) support with mysql. But getting error like that when using with mysql support. Any body has idea about that error. vauth.c: In function `vget_lastauth': vauth.c:1132: `mysql_update' undeclared (first use in this function) vauth.c:1139: warning: assignment makes integer from pointer without a cast vauth.c:1141: warning: passing arg 1 of `mysql_fetch_row' makes pointer from integer without a cast vauth.c: In function `vget_lastauthip': vauth.c:1157: `mysql_update' undeclared (first use in this function) vauth.c:1164: warning: assignment makes integer from pointer without a cast vauth.c:1165: warning: passing arg 1 of `mysql_fetch_row' makes pointer from integer without a cast vauth.c: In function `vcreate_lastauth_table': vauth.c:1178: `LASTAUTH_TABLE_LAYOUT' undeclared (first use in this function) vauth.c:1179: `mysql_update' undeclared (first use in this function) vauth.c:1183: warning: assignment makes integer from pointer without a cast vauth.c: In function `logmysql': vauth.c:1352: `mysql_update' undeclared (first use in this function) vauth.c:1359: warning: assignment makes integer from pointer without a cast vauth.c: In function `vcreate_vlog_table': vauth.c:1372: `mysql_update' undeclared (first use in this function) vauth.c:1376: warning: assignment makes integer from pointer without a cast make[2]: *** [vauth.o] Error 1 make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/vpopmail-5.2.1' make: *** [all-recursive-am] Error 2 ** Did you edit vmysql.h (as it says in README.mysql) ? Also, is MySQL installed from RPM? -- Aj. Systems Administrator / Developer
Re: [vchkpw] vpopmail with mysql support
Hi, Zafar. Try the latest development release of vpopmail. As you can see below, it's stating there is a syntax error in the header file. This could be a result of your system, or the older version of vpopmail. If you get the latest development release and this occurs, make sure you have the latest MySQL-devel, and latest MySQL installed, and that you're running the latest stable GNU compiler. Hope that helps! zafar rizvi wrote: hi here is the all output of make command * cdbmake_add.o make[2]: Leaving directory `/usr/local/src/vpopmail-5.2.1/cdb' make[2]: Entering directory `/usr/local/src/vpopmail-5.2.1' gcc -I. -I/usr/include/mysql -g -O2 -Wall -c vpopmail.c gcc -I. -I/usr/include/mysql -g -O2 -Wall -c md5.c gcc -I. -I/usr/include/mysql -g -O2 -Wall -c bigdir.c gcc -I. -I/usr/include/mysql -g -O2 -Wall -c vauth.c In file included from vauth.c:32: vmysql.h:26:29: warning: multi-line string literals are deprecated vmysql.h:27:35: warning: multi-line string literals are deprecated vmysql.h:29:39: warning: multi-line string literals are deprecated vmysql.h:30:35: warning: multi-line string literals are deprecated vmysql.h:31:35: warning: multi-line string literals are deprecated vmysql.h:36:38: warning: multi-line string literals are deprecated vmysql.h:37:33: warning: multi-line string literals are deprecated vmysql.h:39:39: warning: multi-line string literals are deprecated vmysql.h:51:35: warning: multi-line string literals are deprecated In file included from vauth.c:32: vmysql.h:55: syntax error before char vmysql.h:60:35: warning: multi-line string literals are deprecated vmysql.h:71:24: warning: multi-line string literals are deprecated vmysql.h:79:24: warning: multi-line string literals are deprecated vmysql.h:84:42: warning: multi-line string literals are deprecated vmysql.h:91:27: warning: multi-line string literals are deprecated vmysql.h:59: stray '\' in program vmysql.h:118:2: #else without #if vmysql.h:130:2: #endif without #if vmysql.h:243:2: #endif without #if vauth.c: In function `vauth_open_update': vauth.c:108: `mysql_update' undeclared (first use in this function) vauth.c:108: (Each undeclared identifier is reported only once vauth.c:108: for each function it appears in.) vauth.c:112: parse error before rizvi vauth.c:122: parse error before rizvi vauth.c: At top level: vauth.c:133: parse error before numeric constant vauth.c:134: warning: type defaults to `int' in declaration of `snprintf' vauth.c:134: warning: data definition has no type or storage class vauth.c:143: warning: type defaults to `int' in declaration of `res_update' vauth.c:143: conflicting types for `res_update' vauth.c:54: previous declaration of `res_update' vauth.c:143: `mysql_update' undeclared here (not in a function) vauth.c:143: warning: initialization makes integer from pointer without a cast vauth.c:143: initializer element is not constant vauth.c:143: warning: data definition has no type or storage class vauth.c:144: warning: type defaults to `int' in declaration of `mysql_free_result' vauth.c:144: warning: parameter names (without types) in function declaration vauth.c:144: conflicting types for `mysql_free_result' /usr/include/mysql/mysql.h:271: previous declaration of `mysql_free_result' vauth.c:144: warning: data definition has no type or storage class vauth.c:147: parse error before if vauth.c: In function `vauth_open_read_getall': vauth.c:199: `MYSQL_READ_SERVER' undeclared (first use in this function) vauth.c:200: `MYSQL_READ_USER' undeclared (first use in this function) vauth.c:200: `MYSQL_READ_PASSWD' undeclared (first use in this function) vauth.c:200: `MYSQL_DATABASE' undeclared (first use in this function) vauth.c:201: `MYSQL_VPORT' undeclared (first use in this function) vauth.c:205: parse error before rizvi vauth.c: At top level: vauth.c:214: parse error before return vauth.c: In function `vauth_adddomain': vauth.c:228: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:232: `TABLE_LAYOUT' undeclared (first use in this function) vauth.c:234: `mysql_update' undeclared (first use in this function) vauth.c:239: warning: assignment makes integer from pointer without a cast vauth.c: In function `vauth_adduser': vauth.c:269: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:272: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this function) vauth.c:311: warning: int format, pointer arg (arg 7) vauth.c:311: warning: format argument is not a pointer (arg 8) vauth.c:311: warning: too many arguments for format vauth.c:313: `mysql_update' undeclared (first use in this function) vauth.c:317: warning: assignment makes integer from pointer without a cast vauth.c: In function `vauth_getpw': vauth.c:351: `MYSQL_DEFAULT_TABLE' undeclared (first use in this function) vauth.c:355: `MYSQL_LARGE_USERS_TABLE' undeclared (first use in this function) vauth.c:365: `mysql_update' undeclared (first use in this function)