mysql-5.0.87 + patches-5.0.86 compile fail in ubuntu 9.10 (karmic)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OurDelta |
Fix Committed
|
Undecided
|
Arjen Lentz | ||
Percona patches |
Fix Released
|
Undecided
|
Unassigned | ||
Arch Linux |
New
|
Undecided
|
Unassigned |
Bug Description
Did a test build of mysql-5.0.87 with percona-
Compiles on Ubuntu 8.04 (Hardy) and 9.04 (Jaunty), but compile fails on 9.10 (Karmic) with the following:
make[4]: Entering directory `sql'
if g++ -DMYSQL_SERVER -DDEFAULT_
then mv -f ".deps/
ha_innodb.cc: In function âbool innodb_
ha_innodb.cc:6774: error: invalid conversion from âconst char*â to âchar*â
The compiler version in Karmic is newer, and perhaps more pedantic.
Karmic: g++-4.4.real (Ubuntu 4.4.1-4ubuntu8) 4.4.1
Jaunty: g++-4.3.real (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Since similar is in XtraDB and that compiles ok on Karmic, you might be able to easily derive a solution from there?
Thanks
Related branches
- Vadim Tkachenko: Approve
-
Diff: 12 lines (+1/-1)1 file modifiedinnodb_show_bp.patch (+1/-1)
Changed in ourdelta: | |
assignee: | nobody → Arjen Lentz (arjen-lentz) |
Changed in percona-patches: | |
status: | Fix Committed → Fix Released |
This fixes it
--- ha_innodb.orig 2009-11-10 23:43:08.000000000 +1000 >field[ 10]->store( index-> name, strlen( index-> name), system_ charset_ info);
+++ ha_innodb.cc 2009-11-10 23:41:11.000000000 +1000
@@ -6771,7 +6771,7 @@
table-
// fprintf(stderr, " index %s, table %s", index->name, index->table_name);
- if((p = strchr( index-> table_name, '/'))) db_name_ raw, index->table_name, p-index- >table_ name); name_raw[ p-index- >table_ name] = 0;
+ if((p = strchr((char *) index->table_name, '/')))
{
strncpy(
db_
In-tree patch provided in attached branch.