Mac OS X build stops here

Discussion about official Mozilla Thunderbird builds
Post Reply
User avatar
macrxnapa
Posts: 246
Joined: May 5th, 2003, 12:47 pm

Mac OS X build stops here

Post by macrxnapa »

Trying to build this puppy, I end up here

ld: warning multiple definitions of symbol ShutdownSpecialSystemDirectory()
../../../dist/bin/libxpcom_compat.dylib(nsSpecialSystemDirectory.o) definition of ShutdownSpecialSystemDirectory()
../../../dist/bin/libxpcom.dylib(SpecialSystemDirectory.o) definition of ShutdownSpecialSystemDirectory()
ld: warning multiple definitions of symbol StartupSpecialSystemDirectory()
../../../dist/bin/libxpcom_compat.dylib(nsSpecialSystemDirectory.o) definition of StartupSpecialSystemDirectory()
../../../dist/bin/libxpcom.dylib(SpecialSystemDirectory.o) definition of StartupSpecialSystemDirectory()
ld: Undefined symbols:
nsRDFResource::EqualsNode(nsIRDFNode*, int*)
nsRDFResource::GetDelegate(char const*, nsID const&, void**)
nsRDFResource::EqualsString(char const*, int*)
nsRDFResource::GetValueConst(char const**)
nsRDFResource::QueryInterface(nsID const&, void**)
nsRDFResource::ReleaseDelegate(char const*)
nsRDFResource::Init(char const*)
nsRDFResource::AddRef()
nsRDFResource::Release()
nsRDFResource::GetValue(char**)
nsRDFResource::nsRDFResource[not-in-charge]()
nsRDFResource::~nsRDFResource [not-in-charge]()
make[2]: *** [libimport.dylib] Error 1
make[1]: *** [libs] Error 2
make: *** [all] Error 2

Using these settings:

mk_add_options MOZ_THUNDERBIRD=1
mk_add_options MOZ_OBJDIR=/Volumes/DevProjects/Thunderbird/tbirdndb
mk_add_options MOZ_MAKE_FLAGS=-j4
ac_add_options --enable-crypto
ac_add_options --disable-mathml
ac_add_options --disable-debug
ac_add_options --disable-installer
ac_add_options --disable-tests
ac_add_options --enable-extensions=default,inspector,wallet
ac_add_options --enable-necko-protocols=http,file,jar,viewsource,res
ac_add_options --disable-accessibility

After getting this I realized that the xpcom libs may be conflicting with each other, so I changed into the object dir for xpcom, cleared it:

make clean

then remaked it

make

No dice, same errors.

Any ideas much appreciated. :-)
Tofa
Posts: 19
Joined: May 8th, 2003, 2:32 am
Location: Roma, Italy

Post by Tofa »

I got the same error. I solved adding to the offending command "-lrdfutil_s" the the link libraries. I'm not enough confident to make changes to makefiles so i redo the command by hand and redo 'make -f ...' on top directory.

I got another error after a while in mozilla/mailnews/build at link time, the error was "ld: nsMsgAppleEncode.o illegal reference to symbol: _DateToSeconds defined in indirectly referenced dynamic library /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore"

I solved this one adding "-framework carbon" after -F/System/Library/Frameworks on command line (again by hand).

At the moment, I'm stopped at: mozilla/mail/app with this error:

mkdir -p ../../dist/Thunderbird.app/Contents/MacOS
rsync -a ./macbuild/Contents ../../dist/Thunderbird.app
link_stat ./macbuild/Contents : No such file or directory
rsync error: partial transfer (code 23) at /SourceCache/rsync/rsync-8/rsync/main.c(576)
make[1]: *** [libs] Error 23
make[1]: Leaving directory `/Volumes/Dati/devel/Thunderbird/mozilla/mail/app'
make: *** [all] Error 2
make: Leaving directory `/Volumes/Dati/devel/Thunderbird/mozilla/mail/app'

The application seems 'formed' in dist directory... you can also start it by the command line (it starts VERY ugly and without mouse support... I have to "hack" the commands to form the Application Bundle (I suspect the name change broke the makefile)...

ANY hint is VERY appreciated... build seems almost finished... :?

btw: I'm building from a checkout made Wed May 7 08:19:44 CEST 2003.
User avatar
macrxnapa
Posts: 246
Joined: May 5th, 2003, 12:47 pm

Post by macrxnapa »

Ah! I know how to solve this one. Had the same problem with Minotaur.

There are a set of files that make a final Mac app. These can be found in xpfe/bootstrap/macbuild. This macbuild dir will need to be copied to the mail/app dir.

The info.plst files will need to be modified for the Thunderbird build, for expample, one line in the plist file will have mozilla-bin. This will have to be changed to thunderbird-bin, or whatever the final binary is named. Change all other lines appropriately. Do the same for the Strings file. After this, you should have an executable that launches.

I can send you these, if you like.

Hope this helps.
Post Reply