Bug #15842 Change in "item.cc" adding Item_sp_variable breaks compile on HP-UX 11.23
Submitted: 19 Dec 2005 1:02 Modified: 6 Jan 2006 5:11
Reporter: Kent Boortz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.1.4-pre OS:HP/UX (HP-UX 11.23, OpenServer 6)
Assigned to: Alexander Nozdrin CPU Architecture:Any

[19 Dec 2005 1:02] Kent Boortz
Description:
Compile of 5.1 on HP-UX 11.23 IA64 fails, changeset comment
is "Introduce a new class: Item_sp_variable -- a base class of
stored-routine-variables classes"

aCC -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/data\"" -DSHAREDIR="\"/usr/\local/mysql/share/mysql\"" -DLIBDIR="\"/usr/local/mysql/lib/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../zlib -I../include\ -I../include -I../regex -I.      -DDBUG_OFF +O2 +O2 +DD64 +DSitanium2 -mt -DPTHREAD_COMPAT_MODE -O1 -Aa   -DHPUX11  -DS\NPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREA\D_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -c -o item.o item.cc

"item.cc", line 952: error #2289: no instance of constructor
            "Item_sp_variable::Item_sp_variable" matches the argument list
            argument types are: (const char *, uint)
    :Item_sp_variable(STRING_WITH_LEN("case_expr")),

How to repeat:
Compile current 5.1 on HP-UX 11.23 IA64
[19 Dec 2005 1:16] Kent Boortz
There is a similar error on OpenServer 6

"item.cc", line 952: error: no instance of constructor "Item_sp_variable::Item_sp_variable" matches the argument list
            argument types are: (const char *, uint)
    :Item_sp_variable(STRING_WITH_LEN("case_expr")),
[19 Dec 2005 12:55] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/250
[19 Dec 2005 16:37] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/264
[21 Dec 2005 8:39] Kristian Nielsen
I can see that a fix for this has been pushed to mysql-5.1-new.

However, the problem also exists in mysql-5.0, so the fix must also be pushed there.
[21 Dec 2005 14:22] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/318
[22 Dec 2005 10:23] Alexander Nozdrin
The patch was pushed into 5.0 (currently tagged 5.0.17) and
5.1 (currently tagged 5.1.3).
[6 Jan 2006 5:11] Paul DuBois
No changelog entry needed.