Bug #1341

The identifier "MYSQL_OPT_RECONNECT" is undefined in mod_mysql_vhost.c, Line = 176

Added by Anonymous about 1 year ago. Updated about 1 year ago.

Status:Fixed Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:mod_mysql_vhost
Target version:1.5.0

Description

From the current 1.5.0-r1922

cc-1209 c99: WARNING File = mod_mysql_vhost.c, Line = 133
The controlling expression is constant.

if (!buffer_is_equal_string(s->core->backend, CONST_STR_LEN("mysql"))) continue;
^

cc-1196 c99: WARNING File = mod_mysql_vhost.c, Line = 142
The indicated function is declared implicitly.

if (sel->used && (qmark = index(sel->ptr, '?'))) {
^

cc-1515 c99: ERROR File = mod_mysql_vhost.c, Line = 142
A value of type "int" cannot be assigned to an entity of type "char *".

if (sel->used && (qmark = index(sel->ptr, '?'))) {
^

cc-1020 c99: ERROR File = mod_mysql_vhost.c, Line = 176
The identifier "MYSQL_OPT_RECONNECT" is undefined.

mysql_options(s->mysql, MYSQL_OPT_RECONNECT, &reconnect);
^

2 errors detected in the compilation of "mod_mysql_vhost.c".
gmaker3: *** mod_mysql_vhost_la-mod_mysql_vhost.lo Fehler 1
gmaker3: Leaving directory `/usr2/MIPS/lighttpd-1.5.0/src'
gmaker2: *** all-recursive Fehler 1
gmaker2: Leaving directory `/usr2/MIPS/lighttpd-1.5.0/src'
gmaker1: *** all-recursive Fehler 1
gmaker1: Leaving directory `/usr2/MIPS/lighttpd-1.5.0'

-- behrens

History

Updated by Anonymous about 1 year ago

The error only exists when building against mysql 4.1.xx and not when using mysql 5.0.x

Btw: the anti spam plugin sucks

-- behrens

Updated by jan about 1 year ago

  • Status changed from New to Fixed
  • Resolution set to fixed

fixed in r1995

Also available in: Atom PDF