Closed Bug 528903 Opened 16 years ago Closed 16 years ago

Stub reports missing Microsoft CRT DLL

Categories

(Mozilla Labs :: Prism, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: matthew.gertner, Assigned: matthew.gertner)

Details

Attachments

(1 file)

When the Prisms stub is run on Windows, it reports that MSVCR80.DLL is missing using a modal dialog. Once the dialog is closed, the app starts normally. The same thing occurs when building with VS 2008 except it reports MSVCR90.DLL is missing.
The problem is that the stub links to the CRT statically. This means that the DLL dependencies are not added to the stub manifest. If the stub loads Mozilla DLLs dynamically that have DLL dependencies on the CRT (e.g. NSPR), the problem ensues. Specifically, the Prism binary components have NSPR dependencies and thus depend indirectly on the CRT DLLs. This patch specifies that the stub should link dynamically to the CRT, which causes the correct manifest to be generated.
Attachment #412564 - Flags: review?(mark.finkle)
Comment on attachment 412564 [details] [diff] [review] Specify dynamic linkage to CRT for Prism stub Does this only affect the CRT? It doesn't affect the linkage of any other DLLs?
(In reply to comment #2) > (From update of attachment 412564 [details] [diff] [review]) > Does this only affect the CRT? It doesn't affect the linkage of any other DLLs? Looks that way to me. See http://mxr.mozilla.org/mozilla1.9.1/source/config/config.mk#543
Attachment #412564 - Flags: review?(mark.finkle) → review+
Sending client/stub/Makefile.in Transmitting file data . Committed revision 59103.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
I'm getting the described error on 1.0b3pre.
(In reply to comment #5) > I'm getting the described error on 1.0b3pre. If you're getting this with the latest version I posted on my blog, please let me know. That would be very surprising.
(In reply to comment #6) > (In reply to comment #5) > > I'm getting the described error on 1.0b3pre. > > If you're getting this with the latest version I posted on my blog, please let > me know. That would be very surprising. Confirming: latest version has this fixed now.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: