Bug #1341

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

Added by Anonymous almost 7 years ago. Updated almost 7 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:mod_mysql_vhost
Target version:1.5.0
Missing in 1.5.x:

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

#1 Updated by Anonymous almost 7 years 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

#2 Updated by jan almost 7 years ago

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

fixed in r1995

Also available in: Atom