Dave Logan wrote:
> Beryl Snyder wrote:
>> I am trying to compile DB-mail.
>> I can run the configure script fine but,  when i run "make all" I get
>> these errors.
>> Its not the program because  both the 2.2.7RC an 2.2.8 are both give it.
>> I would be grateful for any help.
>>
>
> does the line:
>
> > dbmysql.c:29:19: error: mysql.h: No such file or directory
>
> mean that you don't have the mysql dev packages installed?
>
>
>
>> In file included from ../dbmail.h:30,
>>                  from dbmysql.c:28:
>> ../config.h:99:1: warning: "_GNU_SOURCE" redefined
>> <command line>:1:1: warning: this is the location of the previous
>> definition
>> dbmysql.c:29:19: error: mysql.h: No such file or directory
>> dbmysql.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before
>> 'co                                                                          
>>   
>> nn'
>> dbmysql.c:75: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before
>> '*'                                                                          
>>    
>> token
>> dbmysql.c:76: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before
>> 'la                                                                          
>>   
>> st_row'
>> dbmysql.c: In function 'db_connect':
>> dbmysql.c:150: warning: implicit declaration of function 'mysql_init'
>> dbmysql.c:150: error: 'conn' undeclared (first use in this function)
>> dbmysql.c:150: error: (Each undeclared identifier is reported only once
>> dbmysql.c:150: error: for each function it appears in.)
>> dbmysql.c:173: warning: implicit declaration of function
>> 'mysql_real_connect'
>> dbmysql.c:175: warning: comparison between pointer and integer
>> dbmysql.c:176: warning: implicit declaration of function 'mysql_error'
>> dbmysql.c:176: warning: format '%s' expects type 'char *', but argument
>> 7 has
>> ty                                                                           
>>  
>> pe 'int'
>> dbmysql.c: In function 'db_num_rows':
>> dbmysql.c:191: error: 'res' undeclared (first use in this function)
>> dbmysql.c:194: warning: implicit declaration of function
>> 'mysql_num_rows'
>> dbmysql.c: In function 'db_num_fields':
>> dbmysql.c:199: error: 'res' undeclared (first use in this function)
>> dbmysql.c:202: warning: implicit declaration of function
>> 'mysql_num_fields'
>> dbmysql.c: In function 'db_free_result':
>> dbmysql.c:207: error: 'res' undeclared (first use in this function)
>> dbmysql.c:208: warning: implicit declaration of function
>> 'mysql_free_result'
>> dbmysql.c: In function 'db_get_result':
>> dbmysql.c:218: error: 'res' undeclared (first use in this function)
>> dbmysql.c:228: warning: implicit declaration of function
>> 'mysql_data_seek'
>> dbmysql.c:229: error: 'last_row' undeclared (first use in this function)
>> dbmysql.c:229: warning: implicit declaration of function
>> 'mysql_fetch_row'
>> dbmysql.c: In function 'db_disconnect':
>> dbmysql.c:255: error: 'res' undeclared (first use in this function)
>> dbmysql.c:257: warning: implicit declaration of function 'mysql_close'
>> dbmysql.c:257: error: 'conn' undeclared (first use in this function)
>> dbmysql.c: In function 'db_check_connection':
>> dbmysql.c:263: warning: implicit declaration of function 'mysql_ping'
>> dbmysql.c:263: error: 'conn' undeclared (first use in this function)
>> dbmysql.c: In function 'db_insert_result':
>> dbmysql.c:275: warning: implicit declaration of function
>> 'mysql_insert_id'
>> dbmysql.c:275: error: 'conn' undeclared (first use in this function)
>> dbmysql.c: In function 'db_query':
>> dbmysql.c:293: warning: implicit declaration of function
>> 'mysql_real_query'
>> dbmysql.c:293: error: 'conn' undeclared (first use in this function)
>> dbmysql.c:294: warning: format '%s' expects type 'char *', but argument
>> 7 has
>> ty                                                                           
>>  
>> pe 'int'
>> dbmysql.c:297: error: 'res' undeclared (first use in this function)
>> dbmysql.c:300: warning: implicit declaration of function
>> 'mysql_store_result'
>> dbmysql.c: In function 'db_escape_string':
>> dbmysql.c:308: warning: implicit declaration of function
>> 'mysql_real_escape_stri                                                      
>>                       
>> ng'
>> dbmysql.c:308: error: 'conn' undeclared (first use in this function)
>> dbmysql.c: In function 'db_get_length':
>> dbmysql.c:339: error: 'res' undeclared (first use in this function)
>> dbmysql.c:353: error: 'last_row' undeclared (first use in this function)
>> dbmysql.c:358: warning: implicit declaration of function
>> 'mysql_fetch_lengths'
>> dbmysql.c:358: error: subscripted value is neither array nor pointer
>> dbmysql.c: In function 'db_get_affected_rows':
>> dbmysql.c:363: warning: implicit declaration of function
>> 'mysql_affected_rows'
>> dbmysql.c:363: error: 'conn' undeclared (first use in this function)
>> dbmysql.c: In function 'db_get_result_set':
>> dbmysql.c:368: error: 'res' undeclared (first use in this function)
>> dbmysql.c: In function 'db_set_result_set':
>> dbmysql.c:373: error: 'res' undeclared (first use in this function)
>> dbmysql.c:373: error: 'MYSQL_RES' undeclared (first use in this
>> function)
>> dbmysql.c:373: error: expected expression before ')' token
>> dbmysql.c:371: warning: unused parameter 'the_result_set'
>> make[2]: *** [dbmysql.lo] Error 1
>> make[2]: Leaving directory
>> `/root/dbmail-2.2.7RC3/dbmail-2.2.7-rc3/modules'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/root/dbmail-2.2.7RC3/dbmail-2.2.7-rc3'
>> make: *** [all] Error 2
>>
>> _______________________________________________
>> DBmail mailing list
>> [email protected]
>> https://mailman.fastxs.nl/mailman/listinfo/dbmail
>
>
Ya, thats what fixed it, thanks

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to