Static linking is passing duplicate OS libraries

RESOLVED WORKSFORME

Status

Firefox Build System
General
RESOLVED WORKSFORME
15 years ago
4 months ago

People

(Reporter: Stephen Walker, Unassigned)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
link ...
comctl32.lib comdlg32.lib uuid.lib shell32.lib ole32.lib oleaut32.lib
version.lib winspool.lib kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib
advapi32.lib ...
comctl32.lib comdlg32.lib uuid.lib shell32.lib ole32.lib oleaut32.lib
version.lib winspool.lib gdi32.lib
Product: Browser → Seamonkey

Comment 1

14 years ago
(In reply to comment #0)
> link ...
> comctl32.lib comdlg32.lib uuid.lib shell32.lib ole32.lib oleaut32.lib
> version.lib winspool.lib kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib
> advapi32.lib ...
> comctl32.lib comdlg32.lib uuid.lib shell32.lib ole32.lib oleaut32.lib
> version.lib winspool.lib gdi32.lib

I am also seeing this with a static build of thunderbird 1.0 under Solaris. Note
that i've also built GTK and all of the supporting libraries as static only. The
build goes all to way to linking thunderbird-bin and produces the following errors:

ld: fatal: symbol `XmlGetUtf16InternalEncodingNS' is multiply-defined:
	(file /tools/gtk+-2.6/lib/libexpat.a(xmltok.o) type=FUNC; file
../../dist/lib/components/libhtmlpars.a(xmltok.o) type=FUNC);
ld: fatal: symbol `XmlInitEncodingNS' is multiply-defined:
	(file /tools/gtk+-2.6/lib/libexpat.a(xmltok.o) type=FUNC; file
../../dist/lib/components/libhtmlpars.a(xmltok.o) type=FUNC);
ld: fatal: symbol `XmlParseXmlDeclNS' is multiply-defined:
	(file /tools/gtk+-2.6/lib/libexpat.a(xmltok.o) type=FUNC; file
../../dist/lib/components/libhtmlpars.a(xmltok.o) type=FUNC);
ld: fatal: symbol `XmlGetUtf8InternalEncodingNS' is multiply-defined:
	(file /tools/gtk+-2.6/lib/libexpat.a(xmltok.o) type=FUNC; file
../../dist/lib/components/libhtmlpars.a(xmltok.o) type=FUNC);
ld: fatal: symbol `XmlInitUnknownEncodingNS' is multiply-defined:
	(file /tools/gtk+-2.6/lib/libexpat.a(xmltok.o) type=FUNC; file
../../dist/lib/components/libhtmlpars.a(xmltok.o) type=FUNC);
ld: fatal: File processing errors. No output written to thunderbird-bin

Comment 2

13 years ago
The original problem is due to the win32 OS libraries being explicitly listed in both static-config.mk and the individual makefiles.  

Glenn's problem is completely unrelated and appears to be due to an naming conflict between the system installed libexpat and the moz-tree version.
Component: Build Config → Build Config
Product: Mozilla Application Suite → Core
This should be fixed in the current build system.
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → WORKSFORME

Updated

4 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.