Closed Bug 71601 Opened 25 years ago Closed 24 years ago

libraries have IS_COMPONENT=1 but export additional functions

Categories

(MailNews Core :: MIME, defect)

Other
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: achimha, Assigned: bugzilla)

Details

Attachments

(2 files)

In bug 71558 I'm doing some changes to the OS/2 build system to be more similar to what Linux does. Previously we exported all public symbols for DLLs that we created (very ugly). Now we use the IS_COMPONENT flag in the Makefile.in for each module and if it is set, we only export NSGetModule as to the XPCOM specification. This works fine, however mailnews breaks this rule in: /mozilla/mailnews/mime/cthandlers/signstub /mozilla/mailnews/mime/cthandlers/smimestub /mozilla/mailnews/mime/cthandlers/vcard These are configured to be XPCOM modules and yet they require additional functions to be exported. As a workaround, I have patches their makefiles (see 71558) to tell our OS/2 build system to export everything despite it is being marked as XPCOM. Could you please change your code to not require it to export anything else besides NSGetModule for IS_COMPONENT=1 libraries?
QA Contact: esther → stephend
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
I think this issue may have gone away since those modules were converted to generic modules (bug 77226).
There is still one thing left - xpcom/tests/services/Makefile.in Once that is gone, we can get rid of this completely.
Doug, can you review the MyService & TestServMgr changes?
Comment on attachment 54254 [details] [diff] [review] Remove HAS_EXTRAEXPORTS from mail r=cls
Attachment #54254 - Flags: review+
Makefile changes in. I'll build the tests on OS/2 tomorrow just for fun.
Comment on attachment 54284 [details] [diff] [review] Turn MyService component into a generic module looks fine.
Attachment #54284 - Flags: review+
Patch checked in. All of the HAS_EXTRAEXPORTS instances have been fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Can someone who builds on OS/2 verify this? Mike, would you do the honors, please? Thanks.
Works like a charm
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: