Closed Bug 329472 Opened 18 years ago Closed 18 years ago

build firefox error with option "--enable-svg"

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 326007

People

(Reporter: chaiwat, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051229 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051229 Firefox/1.5

I tried to build Mozilla Firefox with option "--enable-svg" and I get some error.
but option "--disable-svg", it work.

Envonment build:
- mozilla firefox 1.5.0.1
- Microsoft windows xp SP2
- Microsoft visual C++ .Net version 7.1 
File: .mozconfig
. $topsrcdir/browser/config/mozconfig

mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-rel-@CONFIG_GUESS@

#ac_add_options --disable-64bit-libs
ac_add_options --enable-application=browser
ac_add_options --disable-debug
ac_add_options --disable-logging
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --enable-static
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --disable-shared
ac_add_options --disable-tests
ac_add_options --with-icu=E:/icu-lite 

Error message:
LINK : warning LNK4044: unrecognized option '/L../../dist/lib/components'; ignored
LIBC.lib(strcat.obj) : error LNK2005: _strcpy already defined in MSVCRT.lib(MSVCR71.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR71.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in MSVCRT.lib(MSVCR71.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR71.dll)
LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in MSVCRT.lib(MSVCR71.dll)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info
@@AAE@ABV0@@Z) already defined in LIBC.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const
 &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBC.lib(typinfo.obj)
LIBC.lib(strcat.obj) : warning LNK4006: _strcpy already defined in MSVCRT.lib(MSVCR71.dll); second definition ignored
LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRT.lib(MSVCR71.dll); second definition ignored
LIBC.lib(crt0dat.obj) : warning LNK4006: __exit already defined in MSVCRT.lib(MSVCR71.dll); second definition ignored
LIBC.lib(crt0dat.obj) : warning LNK4006: __cexit already defined in MSVCRT.lib(MSVCR71.dll); second definition ignored
LIBC.lib(crt0dat.obj) : warning LNK4006: __c_exit already defined in MSVCRT.lib(MSVCR71.dll); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
MSVCRT.lib(ti_inst.obj) : warning LNK4006: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_in
fo@@AAE@ABV0@@Z) already defined in LIBC.lib(typinfo.obj); second definition ignored
MSVCRT.lib(ti_inst.obj) : warning LNK4006: "private: class type_info & __thiscall type_info::operator=(class type_info con
st &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBC.lib(typinfo.obj); second definition ignored
   Creating library firefox.lib and object firefox.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
firefox.exe : fatal error LNK1169: one or more multiply defined symbols found
make[4]: *** [firefox.exe] Error 145
make[4]: Leaving directory `/cygdrive/f/Development/Firefox/dev-static-optimize-mozilla-firefox-1.5.0.1.0/mozilla/obj-enab
le-svg-i586-pc-msvc/browser/app'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/f/Development/Firefox/dev-static-optimize-mozilla-firefox-1.5.0.1.0/mozilla/obj-enab
le-svg-i586-pc-msvc/browser'
make[2]: *** [tier_99] Error 2
make[2]: Leaving directory `/cygdrive/f/Development/Firefox/dev-static-optimize-mozilla-firefox-1.5.0.1.0/mozilla/obj-enab
le-svg-i586-pc-msvc'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/f/Development/Firefox/dev-static-optimize-mozilla-firefox-1.5.0.1.0/mozilla/obj-enab
le-svg-i586-pc-msvc'
make: *** [build] Error 2


Reproducible: Always
Can you try applying attachment 210917 [details] [diff] [review] to your source tree and see if that fixes it? Are you using the free version of MSVC?

*** This bug has been marked as a duplicate of 326007 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.