[icedtea-web] build fails with xulrunner 27

Omair Majid omajid at redhat.com
Fri Feb 14 09:45:57 PST 2014


* Thomas Meyer <thomas at m3y3r.de> [2014-02-14 12:40]:
> 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

xulrunner has started using C++11 code (`nullptr`) in headers. We have
to pass extra flags to the compiler to set the C++ standard to use. I am
looking at writing a configure fix for this, but in the meantime,
perhaps you can pass in CXXFLAGS to the build? There is a temporary fix
in Fedora package that does this:

http://pkgs.fedoraproject.org/cgit/icedtea-web.git/commit/?id=377d868bc17994a46fca2b0cbe5567ab1944a13b

Thanks,
Omair

-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681


More information about the distro-pkg-dev mailing list