Compile error in database.cpp for Percona Server 5.6 alpha

Bug #1038816 reported by Roel Van de Paar on 2012-08-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Unassigned
5.5
Invalid
Undecided
Unassigned
5.6
Expired
High
Unassigned

Bug Description

make[2]: Leaving directory `/percona-server/5.6/Percona-Server/storage/HandlerSocket-Plugin-for-MySQL/libhsclient'
Making all in handlersocket
make[2]: Entering directory `/percona-server/5.6/Percona-Server/storage/HandlerSocket-Plugin-for-MySQL/handlersocket'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/include -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/regex -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0 -I/usr/local/Percona-Server-5.6.5-alpha60.0-271.Linux.x86_64/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=alpha60.0 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBUG_OFF -I../libhsclient -O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions -DPERCONA_INNODB_VERSION=alpha60.0 -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC -MT handlersocket_la-database.lo -MD -MP -MF .deps/handlersocket_la-database.Tpo -c -o handlersocket_la-database.lo `test -f 'database.cpp' || echo './'`database.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/include -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/regex -I/percona-server/5.6/Percona-Server-5.6.5-alpha60.0 -I/usr/local/Percona-Server-5.6.5-alpha60.0-271.Linux.x86_64/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=alpha60.0 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBUG_OFF -I../libhsclient -O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions -DPERCONA_INNODB_VERSION=alpha60.0 -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC -MT handlersocket_la-database.lo -MD -MP -MF .deps/handlersocket_la-database.Tpo -c database.cpp -fPIC -DPIC -o .libs/handlersocket_la-database.o
database.cpp: In member function 'virtual void dena::dbcontext::init_thread(const void*, volatile int&)':
database.cpp:312:5: error: 'threads' was not declared in this scope
database.cpp:313:7: error: 'thread_count' was not declared in this scope
database.cpp: In member function 'virtual void dena::dbcontext::term_thread()':
database.cpp:351:7: error: 'thread_count' was not declared in this scope
In file included from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/datadict.h:18:0,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/table.h:23,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/field.h:20,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/unireg.h:172,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/sql_class.h:23,
                 from mysql_incl.hpp:26,
                 from database.cpp:16:
/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/handler.h: In member function 'void dena::dbcontext::cmd_find_internal(dena::dbcallback_i&, const dena::prep_stmt&, ha_rkey_function, const dena::cmd_exec_args&)':
/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/handler.h:1823:15: error: 'virtual int handler::index_prev(uchar*)' is protected
database.cpp:815:38: error: within this context
In file included from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/datadict.h:18:0,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/table.h:23,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/field.h:20,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/unireg.h:172,
                 from /percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/sql_class.h:23,
                 from mysql_incl.hpp:26,
                 from database.cpp:16:
/percona-server/5.6/Percona-Server-5.6.5-alpha60.0/sql/handler.h:1820:15: error: 'virtual int handler::index_next(uchar*)' is protected
database.cpp:819:38: error: within this context
make[2]: *** [handlersocket_la-database.lo] Error 1
make[2]: Leaving directory `/percona-server/5.6/Percona-Server/storage/HandlerSocket-Plugin-for-MySQL/handlersocket'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/percona-server/5.6/Percona-Server/storage/HandlerSocket-Plugin-for-MySQL'
make: *** [all] Error 2

Roel Van de Paar (roel11) wrote :

Build was executed as ./build/build-binary.sh .. (on a FC 17 x64 machine)

I can not repeat this with newer Percona-Server-5.6.6-alpha60.1-303.Linux.x86_64 on FC14.

[openxs@chief build]$ gcc --version
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

Maybe gcc version matters here?

Launchpad Janitor (janitor) wrote :

[Expired for Percona Server 5.6 because there has been no activity for 60 days.]

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2790

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers