MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: Build 5-5-9 in cygwin
Posted by: philippe beaucart
Date: February 17, 2011 10:19AM

For the previous issue, I commented stdlib.h as follow, preventing the compile to stop after 4% progress :
// row 163: char * _EXFUN(dtoa,(double, int, int, int *, int*, char**));

Then compile still blocking at the linking stage :
[ 86%] Building CXX object sql/CMakeFiles/mysqld.dir/main.cc.o
Linking CXX executable mysqld.exe
Creating library file: libmysqld.dll.a
libsql.a(mysqld.cc.o):mysqld.cc:(.rdata$_ZTV12Comp_creator[vtable for Comp_creator]+0x10): undefined reference to `___cxa_pure_virtual'
libsql.a(mysqld.cc.o):mysqld.cc:(.rdata$_ZTV12Comp_creator[vtable for Comp_creator]+0x14): undefined reference to `___cxa_pure_virtual'
libsql.a(mysqld.cc.o):mysqld.cc:(.rdata$_ZTV12Comp_creator[vtable for Comp_creator]+0x18): undefined reference to `___cxa_pure_virtual'
libsql.a(mysqld.cc.o):mysqld.cc:(.rdata$_ZTV12Comp_creator[vtable for Comp_creator]+0x1c): undefined reference to `___cxa_pure_virtual'
libsql.a(mysqld.cc.o):mysqld.cc:(.rdata$_ZTV16Unknown_key_hook[vtable for Unknown_key_hook]+0x10): undefined reference to `___cxa_pure_virtual'
libsql.a(repl_failsafe.cc.o):repl_failsafe.cc:(.rdata$_ZTV19Item_basic_constant[vtable for Item_basic_constant]+0x40): more undefined references to `___cxa_pure_virtual' follow
collect2: ld returned 1 exit status
make[2]: *** [sql/mysqld.exe] Error 1
make[1]: *** [sql/CMakeFiles/mysqld.dir/all] Error 2
make: *** [all] Error 2

Blocking configuration is :
CC=gcc; CFLAGS=-O3 ; CXX=gcc ; CXXFLAGS="-O3 -fno-exceptions"; export CC CFLAGS CXX CXXFLAGS
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DWITH_EMBEDDED_SERVER=0

Checked:
It looks like that __cxa_pure_virtual is in libstdc++.{a,so}
I checked that : libstdc++ and libstdc++6-devel are installed.


=> What are the right options to compile these mysql sources within cygwin or what shall I proceed ?

Thx in advance for support.

Options: ReplyQuote


Subject
Views
Written By
Posted
10248
February 13, 2011 06:42PM
Re: Build 5-5-9 in cygwin
4674
February 17, 2011 10:19AM
3429
February 28, 2011 08:32AM
3824
February 28, 2011 01:57PM
3717
April 01, 2011 06:43PM
3024
May 03, 2011 02:43PM
2586
May 05, 2011 03:45AM
2947
May 10, 2011 10:07AM
2619
April 30, 2011 09:36PM
4634
April 30, 2011 10:05PM
2748
May 01, 2011 07:31AM
2502
May 27, 2011 06:03AM
3119
June 08, 2011 09:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.