Bug 20790 - undefined reference to `___cxa_guard_release' (and __cxa_pure_virtual)
Summary: undefined reference to `___cxa_guard_release' (and __cxa_pure_virtual)
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 15:45 PDT by Luke Kenneth Casson Leighton
Modified: 2018-06-10 22:31 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2008-09-11 15:45:09 PDT
you would not believe how many of these there are.  thousands.
i'm cross-compiling using mingw32-4.4.0.
host:amd64-debian-linux
target:win32
compiler: gcc 4.4.0 out of svn repository as of 08sep2008 (don't ask!!)

references to fixing the problems:
http://lists.apple.com/archives/Darwin-drivers/2005/May/msg00066.html
http://developer.apple.com/releasenotes/DeveloperTools/GCC40PortingReleaseNotes/Articles/PortingToGCC.html

the notes say things like, "we realised in gcc 4 that in function static constructors don't work"....

no, i can't switch back to gcc (mingw32) 3.4 - that would mean that
i couldn't compile in with -lgcc_s.

looong story.
Comment 1 Alexey Proskuryakov 2008-09-13 08:19:50 PDT
I'm not sure what this bug report is about. Can we do anything to avoid these?

We cannot move static constructors to global scope, because that would increase WebKit framework load time a lot, negatively affecting all applications that link to WebKit on Mac OS X and other platforms.