Ticket #888 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 months ago

Bug in compiling

Reported by: power2all@shockerz.net Assigned to: jan
Priority: normal Milestone: 1.4.20
Component: core Version: 1.4.13
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 1

Description

I found a bug while I tried to compile. It has to do something with mysql including.

Here is the log:

gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/local/servers/announceserver/lib\" -I. -I. -I.. -D_REENTRANT -DEXTENSIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT mod_mysql_vhost_la-mod_mysql_vhost.lo -MD -MP -MF .deps/mod_mysql_vhost_la-mod_mysql_vhost.Tpo -c mod_mysql_vhost.c -o mod_mysql_vhost_la-mod_mysql_vhost.o

mod_mysql_vhost.c:12:19: mysql.h: No such file or directory mod_mysql_vhost.c:37: error: syntax error before "MYSQL" mod_mysql_vhost.c:37: warning: no semicolon at end of struct or union mod_mysql_vhost.c:49: error: syntax error before '}' token mod_mysql_vhost.c:49: warning: type defaults to int' in declaration of plugin_config' mod_mysql_vhost.c:49: error: ISO C forbids data definition with no type or storage class mod_mysql_vhost.c:57: error: syntax error before "plugin_config" mod_mysql_vhost.c:57: warning: no semicolon at end of struct or union mod_mysql_vhost.c:59: warning: type defaults to int' in declaration of conf' mod_mysql_vhost.c:59: error: ISO C forbids data definition with no type or storage class mod_mysql_vhost.c:60: warning: type defaults to int' in declaration of plugin_data' mod_mysql_vhost.c:60: error: ISO C forbids data definition with no type or storage class mod_mysql_vhost.c: In function `mod_mysql_vhost_init': mod_mysql_vhost.c:72: error: `p' undeclared (first use in this function) mod_mysql_vhost.c:72: error: (Each undeclared identifier is reported only once mod_mysql_vhost.c:72: error: for each function it appears in.) mod_mysql_vhost.c: In function `mod_mysql_vhost_cleanup': mod_mysql_vhost.c:83: error: `p' undeclared (first use in this function) mod_mysql_vhost.c:96: error: `s' undeclared (first use in this function) mod_mysql_vhost.c:100: warning: implicit declaration of function `mysql_close' mod_mysql_vhost.c: In function `mod_mysql_vhost_connection_data': mod_mysql_vhost.c:124: error: `p' undeclared (first use in this function) mod_mysql_vhost.c: In function `mod_mysql_vhost_handle_connection_close': mod_mysql_vhost.c:147: error: `p' undeclared (first use in this function) mod_mysql_vhost.c: In function `mod_mysql_vhost_set_defaults': mod_mysql_vhost.c:172: error: `p' undeclared (first use in this function) mod_mysql_vhost.c:191: error: `s' undeclared (first use in this function) mod_mysql_vhost.c:250: warning: implicit declaration of function `mysql_init' mod_mysql_vhost.c:257: warning: implicit declaration of function `mysql_real_connect' mod_mysql_vhost.c:259: warning: implicit declaration of function `mysql_error' mod_mysql_vhost.c: At top level: mod_mysql_vhost.c:281: error: syntax error before "plugin_data" mod_mysql_vhost.c: In function `mod_mysql_vhost_patch_connection': mod_mysql_vhost.c:283: error: `s' undeclared (first use in this function) mod_mysql_vhost.c:283: error: `p' undeclared (first use in this function) mod_mysql_vhost.c:292: error: `srv' undeclared (first use in this function) mod_mysql_vhost.c:297: error: `con' undeclared (first use in this function) mod_mysql_vhost.c: In function `mod_mysql_vhost_handle_docroot': mod_mysql_vhost.c:321: error: `p' undeclared (first use in this function) mod_mysql_vhost.c:326: error: `MYSQL_ROW' undeclared (first use in this function) mod_mysql_vhost.c:326: error: syntax error before "row" mod_mysql_vhost.c:327: error: `MYSQL_RES' undeclared (first use in this function) mod_mysql_vhost.c:327: error: `result' undeclared (first use in this function) mod_mysql_vhost.c:349: warning: implicit declaration of function `mysql_query' mod_mysql_vhost.c:353: warning: implicit declaration of function `mysql_store_result' mod_mysql_vhost.c:354: warning: implicit declaration of function `mysql_num_fields' mod_mysql_vhost.c:355: error: `row' undeclared (first use in this function) mod_mysql_vhost.c:355: warning: implicit declaration of function `mysql_fetch_row' mod_mysql_vhost.c:358: warning: implicit declaration of function `mysql_free_result' gmake[2]: *** [mod_mysql_vhost_la-mod_mysql_vhost.lo] Error 1 gmake[2]: Leaving directory `/usr/local/servers/lighttpd-1.4.13/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/local/servers/lighttpd-1.4.13' gmake: *** [all] Error 2 [root@shockerz lighttpd-1.4.13]#

Attachments

Change History

10/16/2006 11:12:55 AM changed by conny

Properly formatted:

gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/local/servers/announceserver/lib\" 
-I. -I. -I.. -D_REENTRANT -DEXTENSIONS -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic 
-std=gnu99 -MT mod_mysql_vhost_la-mod_mysql_vhost.lo -MD -MP -MF 
.deps/mod_mysql_vhost_la-mod_mysql_vhost.Tpo -c mod_mysql_vhost.c 
-o mod_mysql_vhost_la-mod_mysql_vhost.o
mod_mysql_vhost.c:12:19: mysql.h: No such file or directory
mod_mysql_vhost.c:37: error: syntax error before "MYSQL"
mod_mysql_vhost.c:37: warning: no semicolon at end of struct or union
mod_mysql_vhost.c:49: error: syntax error before '}' token
mod_mysql_vhost.c:49: warning: type defaults to 'int' in declaration of 'plugin_config'
mod_mysql_vhost.c:49: error: ISO C forbids data definition with no type or storage class
mod_mysql_vhost.c:57: error: syntax error before "plugin_config"
mod_mysql_vhost.c:57: warning: no semicolon at end of struct or union
mod_mysql_vhost.c:59: warning: type defaults to 'int' in declaration of 'conf'
mod_mysql_vhost.c:59: error: ISO C forbids data definition with no type or storage class
mod_mysql_vhost.c:60: warning: type defaults to 'int' in declaration of 'plugin_data'
mod_mysql_vhost.c:60: error: ISO C forbids data definition with no type or storage class
mod_mysql_vhost.c: In function `mod_mysql_vhost_init':
mod_mysql_vhost.c:72: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c:72: error: (Each undeclared identifier is reported only once
mod_mysql_vhost.c:72: error: for each function it appears in.)
mod_mysql_vhost.c: In function `mod_mysql_vhost_cleanup':
mod_mysql_vhost.c:83: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c:96: error: `s' undeclared (first use in this function)
mod_mysql_vhost.c:100: warning: implicit declaration of function `mysql_close'
mod_mysql_vhost.c: In function `mod_mysql_vhost_connection_data':
mod_mysql_vhost.c:124: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c: In function `mod_mysql_vhost_handle_connection_close':
mod_mysql_vhost.c:147: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c: In function `mod_mysql_vhost_set_defaults':
mod_mysql_vhost.c:172: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c:191: error: `s' undeclared (first use in this function)
mod_mysql_vhost.c:250: warning: implicit declaration of function `mysql_init'
mod_mysql_vhost.c:257: warning: implicit declaration of function `mysql_real_connect'
mod_mysql_vhost.c:259: warning: implicit declaration of function `mysql_error'
mod_mysql_vhost.c: At top level:
mod_mysql_vhost.c:281: error: syntax error before "plugin_data"
mod_mysql_vhost.c: In function `mod_mysql_vhost_patch_connection':
mod_mysql_vhost.c:283: error: `s' undeclared (first use in this function)
mod_mysql_vhost.c:283: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c:292: error: `srv' undeclared (first use in this function)
mod_mysql_vhost.c:297: error: `con' undeclared (first use in this function)
mod_mysql_vhost.c: In function `mod_mysql_vhost_handle_docroot':
mod_mysql_vhost.c:321: error: `p' undeclared (first use in this function)
mod_mysql_vhost.c:326: error: `MYSQL_ROW' undeclared (first use in this function)
mod_mysql_vhost.c:326: error: syntax error before "row"
mod_mysql_vhost.c:327: error: `MYSQL_RES' undeclared (first use in this function)
mod_mysql_vhost.c:327: error: `result' undeclared (first use in this function)
mod_mysql_vhost.c:349: warning: implicit declaration of function `mysql_query'
mod_mysql_vhost.c:353: warning: implicit declaration of function `mysql_store_result'
mod_mysql_vhost.c:354: warning: implicit declaration of function `mysql_num_fields'
mod_mysql_vhost.c:355: error: `row' undeclared (first use in this function)
mod_mysql_vhost.c:355: warning: implicit declaration of function `mysql_fetch_row'
mod_mysql_vhost.c:358: warning: implicit declaration of function `mysql_free_result'
gmake: *** [mod_mysql_vhost_la-mod_mysql_vhost.lo] Error 1
gmake: Leaving directory `/usr/local/servers/lighttpd-1.4.13/src'
gmake: *** [all-recursive] Error 1
gmake: Leaving directory `/usr/local/servers/lighttpd-1.4.13'
gmake: *** [all] Error 2
[root@shockerz lighttpd-1.4.13]# 

10/16/2006 11:16:13 AM changed by conny

"mysql.h: No such file or directory" and "-I. -I. -I.."

-> the include paths were not correctly set for some reason?

10/16/2006 12:30:16 PM changed by anonymous

I have mysql installed on /usr/mysql/ When I use the paths to locate for libraries to /usr/mysql/lib/mysql/ and include dir /usr/mysql/include/mysql/ will not work. I had the same issue with a other application where the configure was partly not working correctly.

08/06/2007 06:22:52 AM changed by moo

  • blocking changed.
  • pending set to 1.

please check if your mysql_config is working correctly

{{ #ShellExample $ msyql_config --include $ msyql_config --cflags $ mysql_config --libs }}}

04/24/2008 08:55:49 PM changed by stbuehler

  • status changed from new to closed.
  • resolution set to worksforme.

Missing feedback, looks like mysql install is broken.


Add/Change #888 (Bug in compiling)




Change Properties
Action