Bug #24023 Compile / link error with non-GCC on "libmygcc" (cxa_pure_virtual)
Submitted: 6 Nov 2006 19:02 Modified: 10 Nov 2006 20:45
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1.22 OS:HP/UX (HP-UX + Solaris)
Assigned to: Joerg Bruehe CPU Architecture:Any

[6 Nov 2006 19:02] Joerg Bruehe
Description:
Build error on HP-UX 11.00 (HP-PA) 64bit
and on Solaris 9 Sparc (32bit):

File "gcc.cpp" is essentially empty for non-GCC builds (its sole contents line is giverned by an "#ifdef"),
and it is the sole member of "libmygcc.a".
At least on the two platforms mentioned above, this leads to build errors on linking "ndbd".

How to repeat:
Try a build on these platforms.

Suggested fix:
Extend the "#ifdef" by a "#else" around a dummy function so that the file (its symbol table) is never empty.
[7 Nov 2006 15:15] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/14967

ChangeSet@1.2540, 2006-11-07 16:01:54+01:00, joerg@trift2. +1 -0
  Fix bug#24023:  Let "ndb/src/common/portlib/gcc.cpp" export a dummy symbol.
[10 Nov 2006 19:47] Joerg Bruehe
Pushed to the trees of 4.1.23, 5.0.30, and 5.1.13-beta.
An equivalent fix is already used in 4.1.22 on the affected hosts.

IMO, this bug does not warrant a documentation entry.
[10 Nov 2006 20:45] Paul DuBois
No changelog entry needed.