?
=?ISO-8859-15?Q?S=F6nke_Tesch?=
Hi everybody,
I have a problem with the following piece of code:
141: /* A data block to manage a single log target: */
142: typedef struct {
143: apr_reslist_t *dbs; /* connection pool */
144:
145: const char *uri; /* the complete log uri.. */
This compiles fine (using gcc 3.2.2 through Apache 2 apxs) on Linux, but
it breaks on some other guy's FreeBSD (again using apxs/gcc, but unknown
gcc version):
/usr/local/libexec/apache2/mod_log_mysql.c:143: syntax error before
'apr_reslist_t'
/usr/local/libexec/apache2/mod_log_mysql.c: In function 'mysql_log_setup':
/usr/local/libexec/apache2/mod_log_mysql.c:210: structure has no member named
'dbs'
[and more "unknown member dbs"..]
No idea what's wrong with line 142 or 143. At first I thought this might be a
problem with apr_reslist_t being unknown but after changing apr_reslist_t to
xxxapr_reslist_t it dumps other errors than the ones above.
Then I tried a slightly different line 141:
141: typedef struct s_log_mysql {
Doesn't help either.
Any ideas? I cannot imagine that this is some gcc incompatibility, at least
it seems to me like standard C code.
The complete mod_log_mysql.c code is available at
http://bitbrook.de/software/mod_log_mysql/mod_log_mysql.c .
Thanks a lot, any help appreciated!
soenk.e
I have a problem with the following piece of code:
141: /* A data block to manage a single log target: */
142: typedef struct {
143: apr_reslist_t *dbs; /* connection pool */
144:
145: const char *uri; /* the complete log uri.. */
This compiles fine (using gcc 3.2.2 through Apache 2 apxs) on Linux, but
it breaks on some other guy's FreeBSD (again using apxs/gcc, but unknown
gcc version):
/usr/local/libexec/apache2/mod_log_mysql.c:143: syntax error before
'apr_reslist_t'
/usr/local/libexec/apache2/mod_log_mysql.c: In function 'mysql_log_setup':
/usr/local/libexec/apache2/mod_log_mysql.c:210: structure has no member named
'dbs'
[and more "unknown member dbs"..]
No idea what's wrong with line 142 or 143. At first I thought this might be a
problem with apr_reslist_t being unknown but after changing apr_reslist_t to
xxxapr_reslist_t it dumps other errors than the ones above.
Then I tried a slightly different line 141:
141: typedef struct s_log_mysql {
Doesn't help either.
Any ideas? I cannot imagine that this is some gcc incompatibility, at least
it seems to me like standard C code.
The complete mod_log_mysql.c code is available at
http://bitbrook.de/software/mod_log_mysql/mod_log_mysql.c .
Thanks a lot, any help appreciated!
soenk.e