[icedtea-web] build fails with xulrunner 27

Andrew Azores aazores at redhat.com
Fri Feb 14 09:46:25 PST 2014


On 02/14/2014 12:38 PM, Thomas Meyer wrote:
> Hi,
>
> $ hg tip
> changeset:   892:8a12faa4525d
> tag:         tip
> user:        Jiri Vanek <jvanek at redhat.com>
> date:        Wed Feb 12 13:52:13 2014 +0100
> summary:     Updated NEWS
>
> any ideas?
>
> In file included
> from /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaJavaRequestProcessor.h:47:0,
>
> from /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.h:45,
>
> from /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:41:
> /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.h:
> In destructor 'ITNPPluginData::~ITNPPluginData()':
> /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.h:93:9: warning: 'void g_mutex_free(GMutex*)' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:274) [-Wdeprecated-declarations]
>           g_mutex_free (appletviewer_mutex);
>           ^
> /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.h:93:41: warning: 'void g_mutex_free(GMutex*)' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:274) [-Wdeprecated-declarations]
>           g_mutex_free (appletviewer_mutex);
>                                           ^
> In file included
> from /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.h:43:0,
>
> from /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:41:
> /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc: In static member function 'static bool IcedTeaScriptableJavaObject::getProperty(NPObject*, NPIdentifier, NPVariant*)':
> /usr/include/xulrunner-27.0/npruntime.h:140:30: error: 'nullptr' was not
> declared in this scope
>       (_v).value.objectValue = nullptr;
> \
>                                ^
> /home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:634:17: note: in expansion of macro 'VOID_TO_NPVARIANT'
>                   VOID_TO_NPVARIANT(*result);
>                   ^
> make: ***
> [/home/thomas/workspace/icedtea-web/plugin/icedteanp/IcedTeaScriptablePluginObject.o] Error 1
>
>

That revision isn't really related. This occurs after you upgrade 
xulrunner on your system to version 27. We haven't yet patched our 
configure to check for this, but for now you can edit your configure, 
look for "CXXFLAGS", and add "-std=c++11" to it. This should enable you 
to build again.

Thanks,

-- 
Andrew A



More information about the distro-pkg-dev mailing list