1.0.6-9 build failed as embedded server

Bug #509365 reported by hshh
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona-XtraDB
Invalid
Undecided
Unassigned

Bug Description

I can't compile XtraDB on FreeBSD 8.0-RELEASE amd64. XtraDB src 1.0.6-9, mysql-5.1.42.tar.gz.
Here is summary,

/bin/sh ../../libtool --preserve-dup-deps --tag=CXX --mode=link c++ -O2 -pipe -O3 -fno-omit-frame-pointer -fno-gcse -fPIC -fno-strict-aliasing -O2 -pipe -O3 -fno-omit-frame-pointer -fno-gcse -fPIC -fno-strict-aliasing -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -o mysqltest_embedded mysqltest.o ../libmysqld.a ../../regex/libregex.a -pthread -lcrypt -lm -pthread -lwrap -lcrypt -lm -lz ../../extra/yassl/src/libyassl.la ../../extra/yassl/taocrypt/src/libtaocrypt.la
libtool: link: c++ -O2 -pipe -O3 -fno-omit-frame-pointer -fno-gcse -fPIC -fno-strict-aliasing -O2 -pipe -O3 -fno-omit-frame-pointer -fno-gcse -fPIC -fno-strict-aliasing -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -o mysqltest_embedded mysqltest.o -pthread -pthread ../libmysqld.a ../../regex/libregex.a -lcrypt -lm -lwrap -lcrypt -lm -lz ../../extra/yassl/src/.libs/libyassl.a -lcrypt ../../extra/yassl/taocrypt/src/.libs/libtaocrypt.a -lcrypt -pthread
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x58bc): In function `innobase_init(void*)':
: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x58d8): In function `innobase_init(void*)':
: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x5cae): In function `innobase_init(void*)':
: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x5ccb): In function `innobase_init(void*)':
: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x6e6f): In function `innobase_commit_by_xid(handlerton*, xid_t*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x75bc): In function `innobase_drop_database(handlerton*, char*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x7875): In function `innobase_commit(handlerton*, THD*, bool)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0xad72): In function `ha_innobase::rename_table(char const*, char const*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0xb008): In function `ha_innobase::delete_table(char const*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0xb66e): more undefined references to `active_mi' follow
*** Error code 1
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x58bc): In function `innobase_init(void*)':
: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x58d8): In function `innobase_init(void*)':
: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x5cae): In function `innobase_init(void*)':
: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x5ccb): In function `innobase_init(void*)':
: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x6e6f): In function `innobase_commit_by_xid(handlerton*, xid_t*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x75bc): In function `innobase_drop_database(handlerton*, char*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0x7875): In function `innobase_commit(handlerton*, THD*, bool)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0xad72): In function `ha_innobase::rename_table(char const*, char const*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0xb008): In function `ha_innobase::delete_table(char const*)':
: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o)(.text+0xb66e): more undefined references to `active_mi' follow
*** Error code 1
mv -f .deps/mysql_client_test.Tpo .deps/mysql_client_test.Po
2 errors

Revision history for this message
mark thomas (spatialguru-net) wrote :

Same compilation error on openSUSE 11.2 x86_64

Revision history for this message
mark thomas (spatialguru-net) wrote :

Traced this down to attempting to compile with the embedded server. Trying now without embedded server.

summary: - 1.0.6-9 build failed on freebsd 8.0-amd64
+ 1.0.6-9 build failed as embedded server
Revision history for this message
mark thomas (spatialguru-net) wrote :

builds fine without embedded server

Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

build should be done with
--without-embedded-server

Changed in percona-xtradb:
status: New → Won't Fix
Revision history for this message
mark thomas (spatialguru-net) wrote :

this needs to be fixed as the code block causing the error relates to updating the replication position info inside InnoDB. see percona-xtradb-1.0.6-9/handler/ha_innodb.c lines 2615-2633 in

Changed in percona-xtradb:
status: Won't Fix → New
Revision history for this message
Robert Brown (rjbrown99) (rjbrown99) wrote :

For what it's worth, I have a similar error building on 32 bit Fedora Core 11 using their latest SRPM and replacing the innobase directory with yours. This is with -9 release of XtraDB. They default to --with-embedded-server in the spec file.

Here's my error:
/bin/sh ../../libtool --preserve-dup-deps --tag=CXX --mode=link g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqltest_embedded mysqltest.o ../libmysqld.a -ldl ../../regex/libregex.a -lpthread -lcrypt -lnsl -lm -lpthread -lcrypt -lnsl -lm -lssl -lcrypto -lz
libtool: link: g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysqltest_embedded mysqltest.o ../libmysqld.a -ldl ../../regex/libregex.a -lpthread -lcrypt -lnsl -lm -lpthread -lcrypt -lnsl -lm -lssl -lcrypto -lz
../libmysqld.a(libinnobase_a-ha_innodb.o): In function `innobase_commit_low':
/home/rbrown/rpmbuild/BUILD/mysql-5.1.42/storage/innobase/handler/ha_innodb.cc:2622: undefined reference to `active_mi'
../libmysqld.a(libinnobase_a-ha_innodb.o): In function `innobase_init':
/home/rbrown/rpmbuild/BUILD/mysql-5.1.42/storage/innobase/handler/ha_innodb.cc:2116: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
/home/rbrown/rpmbuild/BUILD/mysql-5.1.42/storage/innobase/handler/ha_innodb.cc:2116: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
/home/rbrown/rpmbuild/BUILD/mysql-5.1.42/storage/innobase/handler/ha_innodb.cc:2131: undefined reference to `init_strvar_from_file(char*, int, st_io_cache*, char const*)'
/home/rbrown/rpmbuild/BUILD/mysql-5.1.42/storage/innobase/handler/ha_innodb.cc:2131: undefined reference to `init_intvar_from_file(int*, st_io_cache*, int)'
collect2: ld returned 1 exit status
make[4]: *** [mysqltest_embedded] Error 1

I'm rebuilding without embedded.

Revision history for this message
legs.ant.king (legs-ant-king) wrote :

undefined reference to `active_mi' install error
make install error exitsl;

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: New → Invalid
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.