Bug 247172 - firefox-plugin.pc missing -I${includedir}
Summary: firefox-plugin.pc missing -I${includedir}
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Christopher Aillon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-05 19:45 UTC by Alexandre Oliva
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-11 12:17:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexandre Oliva 2007-07-05 19:45:00 UTC
Can't built GCC 4.2 or 4.3 with GCJ Web Plugin enabled because pkgconfig
--cflags firefox-plugin doesn't list the directory containing nsISupports.h,
included from various files in /usr/include/firefox-2.0.0.4/plugin

Version-Release number of selected component (if applicable):
firefox-2.0.0.4-2.fc7

Comment 1 Christopher Aillon 2007-07-05 20:25:07 UTC
You're supposed to also use pkgconfig --cflags firefox-xpcom to build if you
need nsISupports.

Comment 2 Alexandre Oliva 2007-07-05 20:54:20 UTC
I don't know that I need nsISupports.  It's just that some header files in
plugin/ include nsISupports.h.  Therefore, firefox-plugin might as well be
helpful and provide the additional needed -I flags.  Otherwise it becomes
necessary to always use firefox-xpcom cflags after firefox-plugin.

Oddly, the #includes are "", not <>, so it even looks like nsISupports.h was
expected to be in the same directory as the plugin headers.  Is this some
packaging error?

Comment 3 Christopher Aillon 2007-07-05 21:49:28 UTC
(In reply to comment #2)
> I don't know that I need nsISupports.  It's just that some header files in
> plugin/ include nsISupports.h.  Therefore, firefox-plugin might as well be
> helpful and provide the additional needed -I flags.  Otherwise it becomes
> necessary to always use firefox-xpcom cflags after firefox-plugin.

Only the nsI* files require nsISupports (and thus require xpcom).  If you're
only including the np* stuff for the basic NPAPI support, you don't need to pull
in the rather heavy xpcom dependency.  This behavior is intentional from
upstream.  See https://bugzilla.mozilla.org/show_bug.cgi?id=366113


> Oddly, the #includes are "", not <>, so it even looks like nsISupports.h was
> expected to be in the same directory as the plugin headers.  Is this some
> packaging error?

This is how upstream ships it.

Comment 4 Martin Stransky 2007-09-11 12:17:47 UTC
Closing as NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.