Compile error with version 1.0.4-8

Bug #461173 reported by Olivier Doucet
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona-XtraDB
Fix Released
Medium
Aleksandr Kuzminsky

Bug Description

When compiling, I got the following issue:

make[1]: Entering directory `/usr/*/storage/innobase'
/bin/sh ../../libtool --preserve-dup-deps --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../storage/innobase/include -I../../sql -I. -DMYSQL_DYNAMIC_PLUGIN -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -MT ha_innodb_la-i_s.lo -MD -MP -MF .deps/ha_innodb_la-i_s.Tpo -c -o ha_innodb_la-i_s.lo `test -f 'handler/i_s.cc' || echo './'`handler/i_s.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../storage/innobase/include -I../../sql -I. -DMYSQL_DYNAMIC_PLUGIN -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -MT ha_innodb_la-i_s.lo -MD -MP -MF .deps/ha_innodb_la-i_s.Tpo -c handler/i_s.cc -fPIC -DPIC -o .libs/ha_innodb_la-i_s.o
handler/i_s.cc: In function ‘int i_s_innodb_buffer_pool_pages_index_fill(THD*, TABLE_LIST*, COND*)’:
handler/i_s.cc:799: error: invalid conversion from ‘const char*’ to ‘char*’

Used with mysql-5.1.39 source package + percona-xtradb-1.0.4-8.tar.gz
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
Platform: x86_64

Revision history for this message
Nicolas Brousse (orieg) wrote :

I have the same problem on 64bit host running ubuntu karmic. I'm copiling mysql 5.1.40 and xtradb branch release-9 :

g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../storage/innobase/include -I../../sql -I. -I../../zlib -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -MT libinnobase_a-i_s.o -MD -MP -MF .deps/libinnobase_a-i_s.Tpo -c -o libinnobase_a-i_s.o `test -f 'handler/i_s.cc' || echo './'`handler/i_s.cc
handler/i_s.cc: In function ‘int i_s_innodb_buffer_pool_pages_index_fill(THD*, TABLE_LIST*, COND*)’:
handler/i_s.cc:799: error: invalid conversion from ‘const char*’ to ‘char*’
handler/i_s.cc: In function ‘int i_s_innodb_admin_command_fill(THD*, TABLE_LIST*, COND*)’:
handler/i_s.cc:2993: warning: deprecated conversion from string constant to ‘char*’
make[3]: *** [libinnobase_a-i_s.o] Error 1
make[3]: Leaving directory `/usr/src/mysql-5.1.40/storage/innobase'
make[2]: *** [custom_checks] Error 2
make[2]: Leaving directory `/usr/src/mysql-5.1.40/storage/innobase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mysql-5.1.40/storage'
make: *** [all-recursive] Error 1

Revision history for this message
StasN (stas-global) wrote :

at handler/i_s.cc:799

- if((p = strchr(index->table_name, '/')))
+ if((p = strchr((char *) index->table_name, '/')))

Revision history for this message
StasN (stas-global) wrote :

More correct way...

Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

Confirm the same error on Ubuntu Karmic 5.1.41+release-9

Changed in percona-xtradb:
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
importance: Undecided → Medium
status: New → Confirmed
Changed in percona-xtradb:
status: Confirmed → In Progress
Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

Fixed in Release-10

Changed in percona-xtradb:
status: In Progress → Fix Committed
Revision history for this message
Stewart Smith (stewart) wrote :

All development of XtraDB has moved under the Percona Server project - https://launchpad.net/percona-server - If this bug can be reproduced against current Percona Server, please file this bug against percona-server (you can simply do so by using the "Also affects project" link above).

Thanks,
Stewart Smith
Director of Server Development
Percona.

Changed in percona-xtradb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.