Why you want to use fedora on a production server I'll never know, but as usual with everything butchered to buggery by RH, you dont have the headers files, so you need to install the -devel packages of mysql (and anything you want to build against), if your not commited try a decent server OS like Slackware or one of the BSD's

On 22/04/08 16:22:08, Dhaval Thakar wrote:
Dear All,

i am trying to compile vpopmail (5.4.24) with mysql

I used
./configure --enable-logging=p --enable-auth-module=mysql -- disable-passwd --enable-clear-passwd --disable-many-domains -- enable-auth-logging --enable-sql-logging --enable-valias --disable- mysql-limits --enable-incdir=/usr/lib/mysql --enable-onchange- script --enable-libdir=/var/lib/mysql --enable-libdir=/usr/lib/ mysql


vpopmail 5.4.24
Current settings
---------------------------------------

vpopmail directory = /home/vpopmail
domains directory = /home/vpopmail/domains
uid = 508
gid = 503
roaming users = OFF --disable-roaming-users (default)
password learning = OFF --disable-learn-passwords (default)
md5 passwords = ON --enable-md5-passwords (default)
file locking = ON --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
make seekable = ON --enable-make-seekable (default)
clear passwd = ON --enable-clear-passwd (default)
user dir hashing = ON --enable-users-big-dir (default)
address extensions = OFF --disable-qmail-ext (default)
ip alias = OFF --disable-ip-alias-domains (default)
onchange script = ON --enable-onchange-script
auth module = mysql --enable-auth-module=mysql
mysql replication = OFF --disable-mysql-replication (default)
sql logging = ON --enable-sql-logging
mysql limits = OFF --disable-mysql-limits (default)
SQL valias table = ON --enable-valias
auth inc = -I/usr/lib/mysql
auth lib = -L/usr/lib/mysql -lmysqlclient -lz -lm
system passwords = OFF --disable-passwd (default)
pop syslog = show failed attempts with clear text password -- enable-logging=p
auth logging = ON --enable-auth-logging (default)
one domain per SQL table = --disable-many-domains
spamassassin = OFF --disable-spamassassin (default)
maildrop = OFF --disable-maildrop (default)


during make, i am getting following error

vauth.c:33:19: error: mysql.h: No such file or directory
vauth.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_update’ vauth.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_read_getall’ vauth.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token vauth.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token vauth.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘row’ vauth.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘row_getall’
vauth.c: In function ‘vauth_open_update’:
vauth.c:206: warning: implicit declaration of function ‘mysql_ping’
vauth.c:206: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:206: error: (Each undeclared identifier is reported only once
vauth.c:206: error: for each function it appears in.)
vauth.c:212: warning: implicit declaration of function ‘mysql_init’
vauth.c:213: warning: implicit declaration of function ‘mysql_options’ vauth.c:213: error: ‘MYSQL_OPT_CONNECT_TIMEOUT’ undeclared (first use in this function) vauth.c:216: warning: implicit declaration of function ‘mysql_real_connect’ vauth.c:226: warning: implicit declaration of function ‘mysql_select_db’ vauth.c:230: warning: implicit declaration of function ‘mysql_query’ vauth.c:236: warning: implicit declaration of function ‘mysql_error’ vauth.c:236: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
vauth.c: In function ‘vauth_open_read_getall’:
vauth.c:316: error: ‘mysql_read_getall’ undeclared (first use in this function)
vauth.c: In function ‘vauth_create_table’:
vauth.c:343: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:346: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
vauth.c: In function ‘vauth_adduser’:
vauth.c:428: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:429: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vauth_getpw’:
vauth.c:480: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:481: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:504: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:509: error: ‘res_update’ undeclared (first use in this function) vauth.c:509: warning: implicit declaration of function ‘mysql_store_result’ vauth.c:514: warning: implicit declaration of function ‘mysql_num_rows’ vauth.c:515: warning: implicit declaration of function ‘mysql_free_result’
vauth.c:533: error: ‘row’ undeclared (first use in this function)
vauth.c:533: warning: implicit declaration of function ‘mysql_fetch_row’
vauth.c: In function ‘vauth_deldomain’:
vauth.c:582: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c: In function ‘vauth_deluser’:
vauth.c:636: error: ‘mysql_update’ undeclared (first use in this function)
vauth.c: In function ‘vauth_setquota’:
vauth.c:687: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:688: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vauth_getall’:
vauth.c:724: error: ‘res_update’ undeclared (first use in this function) vauth.c:724: error: ‘res_read_getall’ undeclared (first use in this function) vauth.c:727: error: ‘mysql_read_getall’ undeclared (first use in this function) vauth.c:728: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:754: error: ‘row_getall’ undeclared (first use in this function)
vauth.c: In function ‘vauth_end_getall’:
vauth.c:783: error: ‘res_read_getall’ undeclared (first use in this function)
vauth.c: In function ‘vauth_setpw’:
vauth.c:854: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:855: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vclose’:
vauth.c:971: warning: implicit declaration of function ‘mysql_close’ vauth.c:971: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:975: error: ‘mysql_read_getall’ undeclared (first use in this function)
vauth.c: In function ‘vread_dir_control’:
vauth.c:1114: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1123: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1128: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘vwrite_dir_control’:
vauth.c:1199: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1202: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vcreate_dir_control’:
vauth.c:1233: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1234: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vdel_dir_control’:
vauth.c:1250: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1253: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vset_lastauth’:
vauth.c:1273: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1276: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘vget_lastauth’:
vauth.c:1294: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1297: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:1301: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1303: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘vget_lastauthip’:
vauth.c:1321: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1324: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:1328: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1329: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘valias_select’:
vauth.c:1367: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1370: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:1374: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1375: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘valias_insert’:
vauth.c:1410: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1413: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_remove’:
vauth.c:1449: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1452: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_delete’:
vauth.c:1479: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1482: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_delete_domain’:
vauth.c:1510: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1513: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
vauth.c: In function ‘valias_select_all’:
vauth.c:1543: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1546: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’ vauth.c:1550: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1551: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘valias_select_names’:
vauth.c:1597: error: ‘mysql_update’ undeclared (first use in this function) vauth.c:1605: error: ‘res_update’ undeclared (first use in this function)
vauth.c:1611: error: ‘row’ undeclared (first use in this function)
vauth.c: In function ‘logsql’:
vauth.c:1674: error: ‘mysql_update’ undeclared (first use in this function)
make[2]: *** [libvpopmail_a-vauth.o] Error 1
make[2]: Leaving directory `/downloads/vpopmail-5.4.24'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/vpopmail-5.4.24'
make: *** [all] Error 2


installed mysql packages are
mysql-server-5.0.37-2.fc7
php-mysql-5.2.4-1.fc7
libdbi-dbd-mysql-0.8.1a-2.fc7
mysql-connector-odbc-3.51.12-2.2
mysql-libs-5.0.37-2.fc7
mysql-5.0.37-2.fc7


kindly guide me to resolve above error.

regards
dhaval




!DSPAM:480d973c120503251117634!

Reply via email to