Bug #51642 Undefined symbol __cxa_pure_virtual
Submitted: 2 Mar 2010 13:16 Modified: 20 May 2010 12:42
Reporter: Hartmut Holzgraefe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster/J Severity:S3 (Non-critical)
Version:ndb-7.1.1 OS:Linux
Assigned to: Bernd Ocklin CPU Architecture:Any

[2 Mar 2010 13:16] Hartmut Holzgraefe
Description:
When compiling Cluster with GCC "Undefined symbol __cxa_pure_virtual" is reported on loading the native libraries needed by ClusterJ unless MySQL was compiled with CXX=gcc to force gcc instead of g++ as compiler for C++ files

When using our binary releases or compiling using the BUILD/compile-... scripts this setting is used by default so the error doesn't show, when just using 
"./configure ...; make" without explicitly setting CXX=gcc one will run into this though.

How to repeat:
Compile and install mysql without explicitly setting CXX to gcc, then try to run any ClusterJ or ClusterJPA application against that installation
[25 Jun 2010 6:28] abhijeet nayak
You can resolve the issue by using g++ compiler instead of gcc compiler. I was facing the the same issue but it got resolved with g++ compiler.