Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130273 - pkg-config --cflags mozilla-xpcom does not list all required include directories
Summary: pkg-config --cflags mozilla-xpcom does not list all required include directories
Status: RESOLVED DUPLICATE of bug 137665
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 10:15 UTC by Mikko Tiihonen
Modified: 2006-11-11 14:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikko Tiihonen 2006-04-17 10:15:19 UTC
The upcoming eclipse 3.2 uses pkg-config to find out the include directories for mozilla xpcom. Unfortunately the most important include file nsEmbedAPI.h is not in the include path and thus eclipse build fails.

Gentoo:
pkg-config --cflags mozilla-xpcom
-I/usr/lib64/mozilla/include -I/usr/lib64/mozilla/include/xpcom -I/usr/lib64/mozilla/include/string -I/usr/lib64/mozilla/include/nspr
location of nsEmbedAPI.h: /usr/lib64/mozilla/include/embed_base/nsEmbedAPI.h

Fedora 5:
pkg-config --cflags mozilla-xpcom                                                 
-I/usr/include/mozilla-1.7.12 -I/usr/include/mozilla-1.7.12/xpcom -I/usr/include/mozilla-1.7.12/string -I/usr/include/nspr4
location of nsEmbedAPI.h: /usr/include/mozilla-1.7.12/nsEmbedAPI.h


The exact same problem applies also to pkg-config --cflags firefox-xpcom
Tested ebuilds:
www-client/mozilla-1.7.12-r3
www-client/mozilla-firefox-1.5.0.2

Two fixes are possible:
1) move all include files from <mozilla>/include/embed_base to <mozilla>/include
2) add -I<mozilla>/include/embed_base to pkg-config --cflags mozilla-xpcom
Comment 1 Mikko Tiihonen 2006-04-29 11:21:35 UTC
I just noticed that there is also an gecko-sdk ebuild. It has the same problem.

But instead of fixing the pkg-config {mozilla|firefox|gecko-sdk}-xpcom I know think the proper place is to change the {mozilla|firefox|gecko-sdk}-gtkmozembed. It is also missing the embed_base subdirectory but at least the --libs is correct for embedding.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-11 14:31:56 UTC
mozilla and gecko-sdk will be removed from the tree, nothing to fix here. eclipse-sdk now uses seamonkey.


*** This bug has been marked as a duplicate of 137665 ***