Closed Bug 369398 Opened 18 years ago Closed 17 years ago

Java XPCOM glue doesn't work when built with gcc 4.x

Categories

(Core Graveyard :: Java to XPCOM Bridge, defect)

1.8 Branch
x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: glandium, Assigned: jhpedemonte)

Details

Attachments

(1 file)

Attached patch easy workaroundSplinter Review
The javaxpcom glue doesn't work when built with gcc 4.x because in such cases symbols are hidden by default and the JNI glue doesn't export the necessary symbols. I've been using a workaround, that I'll attach here for documentation purpose, with success for a few months.
Well, I've been building with GCC 4.1.2 on Ubuntu with no problems.  There are only three methods in the glue lib that should be external, and all those are declared as NS_EXPORT, which makes them visibility == "default" (that is, not hidden).
on which branch ?
On the trunk and MOZILLA_1_8_BRANCH (1.8.1.x).
I can confirm this works on MOZILLA_1_8_BRANCH
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: