|Summary:||[Gtk] soup/ResourceHandleSoup.cpp:533: error: 'g_mapped_file_free' was not declared in this scope|
|Product:||WebKit||Reporter:||David Ronis <David.Ronis@McGill.CA>|
|Component:||WebKit Gtk||Assignee:||Nobody <email@example.com>|
|Version:||528+ (Nightly build)|
I just tried upgrading webkitgtk+ form 1.1.10 to 1.1.11; I get the compile-time error given in the summary. I'm using gtk+-2.17.2 and the git-master of libsoup (built today). I'm using gcc-4.4.0, on a slackware-12.2. box
Grepped the include dir for the definition: Here's what I see in glib-2.0/glib/gmappedfile.h: #ifndef G_DISABLE_DEPRECATED void g_mapped_file_free (GMappedFile *file); #endif Looks like this is being phased out. In any event, I manually added the declaration to the webkit file and am resuming the compilation.
Manually adding the declaration, while allowing thing to compile, doesn't work. Things die linking. Bacially it's not in glib.
It seems that g_mapped_file_free needs to be replaced by g_mapped_file_unref. Doing so lets the compile finish.
Created an attachment (id=33002) [details] Use g_mapped_file_unref for GLIB version 2.22 onwards.
(From update of attachment 33002 [details]) yep! r=me