With xulrunner 1.9.0.5: $ pkg-config --cflags mozilla-plugin -I/usr/include/xulrunner-1.9/stable -I/usr/include/nspr This doesn't include a number of files needed by plugins. For example, GNU Classpath's plugin now fails to compile due to the following missing files: nsIPluginInstance.h nsIPluginInstancePeer.h nsIPluginTagInfo2.h In Fedora, these are held in a separate plugin include subdirectory which is included in the CFLAGS. -I/usr/include/xulrunner-sdk-1.9/stable -I/usr/include/xulrunner-sdk-1.9/java -I/usr/include/xulrunner-sdk-1.9/plugin -I/usr/include/nspr4 Reproducible: Always Steps to Reproduce: 1. Try to build a plugin (e.g. GNU Classpath's gcjwebplugin) with xulrunner-1.9.0.5 installed which uses these header files. 2. The build fails when it can't find these headers. 3. Actual Results: Build failure with gcjwebplugin. Expected Results: Build succeeds. It does on Fedora.
In the end this was needed: $ ls /usr/include/xulrunner-1.9/plugin/ nsIPluginInstance.h@ nsIPluginStreamInfo.h@ nsIPluginTagInfo2.h@ nsplugindefs.h@ nsIPluginInstancePeer.h@ nsIPluginStreamListener.h@ nsIPluginTagInfo.h@ nspluginroot.h@ after adding the plugin directory to /usr/lib/pkgconfig/mozilla-plugin.pc. Other plugins may need more. All the above are just symlinks to the files in unstable.
Andrew, why don't you file the bug upstream at https://bugzilla.mozilla.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&content=pkgconfig and post the bug id number here? Martin
Still an issue with 1.9.1, but will go away with 1.9.2 when stable/ and unstable/ become unified. Nevertheless, we need to fix this.
I have add a fix to mozilla overlay that nirbheek will push out with the next patch set, We will most likely backport this for stable 1.9.0.11.
I didn't file this upstream because it doesn't occur with xulrunner 1.9.1 on Fedora, only on Gentoo.
(In reply to comment #5) > I didn't file this upstream because it doesn't occur with xulrunner 1.9.1 on > Fedora, only on Gentoo. > This is to the strange way they package the build. It is fixed in the overlay and should be fixed in the tree within next day or so.
(In reply to comment #5) > I didn't file this upstream because it doesn't occur with xulrunner 1.9.1 on > Fedora, only on Gentoo. > Upstream bug is opened. I am working to get it fixed for the official xulrunner-1.9.1 release.
Fixed in-tree with 3.5.1