Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214785 - Eclipse 3.3.1.1 + xulrunner not working
Summary: Eclipse 3.3.1.1 + xulrunner not working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 101571 (view as bug list)
Depends on: 216014
Blocks:
  Show dependency tree
 
Reported: 2008-03-25 20:18 UTC by Eduard Martinescu
Modified: 2008-04-06 21:15 UTC (History)
2 users (show)

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


Attachments
patch for eclipse-3.3 script in FILESDIR (apply in PORTDIR/dev-util/eclipse-sdk) (eclipse-3.3.patch,804 bytes, patch)
2008-04-03 09:52 UTC, Vlastimil Babka (Caster) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eduard Martinescu 2008-03-25 20:18:06 UTC
So I have Eclipse 3.3.1.1 installed and have configured swt to use xulrunner. However, when I actually open an editor that attempts to make use of xulrunner, I get an eclipse crash with the following on standard error:

/usr/lib/jvm/sun-jdk-1.6/bin/java: symbol lookup error: /usr/lib/libswt-xulrunner-gtk-3347.so: undefined symbol: XPCOMGlueStartup

I've worked around/solved this problem by doing the following:

edit /usr/lib/pkgconfig/xulrunner-xpcom.pc and added -lxpcomglue after the -lxpcom entry.

Effectively, getting the extra libxpcomglue.so to be linked into the libswt-xulrunner-3347.so 

I have not noticed any negative impacts anywhere else....
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-03-25 20:55:36 UTC
Afaik this has nothing to do with gnome. I suspend this same kind of problem that totem had at one point where libs using xulrunner didn't use the proper pkg-config to link against (altough I grepped through the pkgconfig files and couldn't find references to the glue stuff).
Comment 2 Eduard Martinescu 2008-03-26 13:27:36 UTC
It was a toss up as to where to initially file this bug.  And I also could not find a pkg-config that include the glue library, so I thought maybe the xulrunner ebuild would need modification to either create a new pkg-config that had the glue (that could then be used by swt), or just to always include the clue in the current config. (I can't think of any problems this would cause)
Comment 3 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2008-03-26 20:55:58 UTC
This may have to do with the fact that we define a special variable on Eclipse to point to some *.so libraries (MOZILLA_FIVE_STAR_HOME or something like that). Currently this is hardcoded to the Firefox location IIRC. Changing that to xulrunner could solve the problem
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-03-26 21:24:57 UTC
(In reply to comment #3)
> This may have to do with the fact that we define a special variable on Eclipse
> to point to some *.so libraries (MOZILLA_FIVE_STAR_HOME or something like
> that). Currently this is hardcoded to the Firefox location IIRC. Changing that
> to xulrunner could solve the problem

I don't see anything defined in the Eclipse ebuild itself, but it's defined in swt ebuild and when build against xulrunner, points to xulrunner directory. GJL launchers pick it, I doubt eclipse's does though. But somehow it used to work until now, and it was xulrunner being bumped, not eclipse/swt?

Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-03-26 21:34:46 UTC
Ah, found the startup script for eclipse. Yeah it sets the variable to firefox. Should use what swt's package.env defines. Seems java-config doesn't provide an option to query arbitrary variables from package.env of a package, only from VM's env file... but this should work, will export MOZILLA_FIVE_HOME and a harmless gjl_args variable...

eval $(gjl --package swt-3 --get-args)

And perhaps eclipse ebuild should check that swt is built against a mozilla implementation because I think it won't work without it...
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-03 09:52:11 UTC
Created attachment 148196 [details, diff]
patch for eclipse-3.3 script in FILESDIR (apply in PORTDIR/dev-util/eclipse-sdk)

This patch implements this via gjl until we get less hackish support in java-config (bug 216014).
Needs a revbump to hit everyone.
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-06 20:58:41 UTC
In 3.3.1.1-r1 in CVS.
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-06 21:15:05 UTC
*** Bug 101571 has been marked as a duplicate of this bug. ***