Bug 124861 - freeOwnedGPtr(GError*) needs to be exported
Summary: freeOwnedGPtr(GError*) needs to be exported
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 8
: P2 Trivial
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-25 14:44 PST by Alex Christensen
Modified: 2013-12-17 10:42 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.05 KB, patch)
2013-11-25 14:55 PST, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (1.68 KB, patch)
2013-12-16 20:50 PST, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2013-11-25 14:44:15 PST
WebKit doesn't link on Windows without exporting freeOwnedGPtr(GError*).  Specifically MediaPlayerPrivateGStreamer.obj and GStreamerUtilities.obj have 1 unresolved external symbol when linking.
Comment 1 Alex Christensen 2013-11-25 14:55:14 PST
Created attachment 217835 [details]
Patch
Comment 2 Brent Fulgham 2013-11-26 19:08:42 PST
Comment on attachment 217835 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=217835&action=review

> Source/WTF/wtf/gobject/GOwnPtr.cpp:30
> +WTF_EXPORT_PRIVATE void freeOwnedGPtr(GError* ptr)

It seem strange that this is not a template on Windows.  Why is that?
Comment 3 Philippe Normand 2013-11-28 06:47:47 PST
The folks trying to build the MediaPlayerPrivate on OSX have the same issue, it seems.
Comment 4 Alex Christensen 2013-11-30 21:35:58 PST
It does seem strange, but it doesn't export the correct linker symbol as a template.  Maybe this should be changed where it is used instead of where it's defined.  I'll look into this more next week.
Comment 5 Alex Christensen 2013-12-16 20:50:36 PST
Created attachment 219392 [details]
Patch
Comment 6 Alex Christensen 2013-12-16 20:53:28 PST
It said I had different linkage because I forgot to add it to the declaration.  Adding it to the declaration and definition solves the problem the right way.
Comment 7 WebKit Commit Bot 2013-12-17 10:42:40 PST
Comment on attachment 219392 [details]
Patch

Clearing flags on attachment: 219392

Committed r160716: <http://trac.webkit.org/changeset/160716>
Comment 8 WebKit Commit Bot 2013-12-17 10:42:42 PST
All reviewed patches have been landed.  Closing bug.