Building Calendar Extension fromThunderbird source code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Building Calendar Extension fromThunderbird source code

Adriano Del Vigna-2
Hi,

I'm trying to build a Windows build of Thunderbird (1.0.6) with the
Calendar (as xpi) extension.

For that, I downloaded Thunderbird's (1.0.6) source code from
mozilla.org. I'm building the Windows package with Cygwin/Mingw32, as
instructed in http://gemal.dk/mozilla/build.html, all fine until here.

I'm usging the following .mozconfig file:

------------------------------------------------------------
. $topsrcdir/mail/config/mozconfig

CC=gcc
CXX=g++
CPP=cpp
AS=as
LD=ld

export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
export MOZ_CALENDAR=1

mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/tbird-obj

ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-accessibility
ac_add_options --disable-activex

ac_add_options --enable-optimize
ac_add_options --enable-calendar
ac_add_options --enable-application=mail
------------------------------------------------------------

But, after a 'make -f client.mk build_all' command, the build process
end with a ton of undefined reference error messages at libxpical dir.
Something like:

------------------------------------------------------------
/cygdrive/f/cygwin//bin/make export
make[1]: Entering directory
`/cygdrive/f/mozilla/tbird-obj/calendar/libxpical'
/cygdrive/f/mozilla/build/cygwin-wrapper f:/moztools/bin/nsinstall -m
644 /cygdrive/f/mozilla/calendar/libxpical/oeIICal.idl ../../dist/idl
/cygdrive/f/mozilla/build/cygwin-wrapper f:/moztools/bin/nsinstall -m
644 _xpidlgen/oeIICal.h ../../dist/include/calendar
/cygdrive/f/cygwin//bin/perl -I/cygdrive/f/mozilla/config
/cygdrive/f/mozilla/config/build-list.pl
../../dist/include/calendar/.headerlist oeIICal.h
make[1]: Leaving directory
`/cygdrive/f/mozilla/tbird-obj/calendar/libxpical'
/cygdrive/f/cygwin//bin/make libs
make[1]: Entering directory
`/cygdrive/f/mozilla/tbird-obj/calendar/libxpical'
rm -f xpical.dll
/cygdrive/f/mozilla/build/cygwin-wrapper g++ -mno-cygwin -shared -o
xpical.dll  token.o md5.o oeICalEventImpl.o oeICalTodoImpl.o
oeICalFactory.o oeICalImpl.o oeICalContainerImpl.o oeDateTimeImpl.o
oeICalStartupHandler.o   ./module.res    -L../../dist/bin
-L../../dist/lib -lmozicalss -lmozical -L../../dist/bin -L../../dist/lib
-lxpcomglue -lstring_s -L../../dist/bin -L../../dist/lib -lnspr4 -lplc4
-lplds4  
-Wl,--version-script,/cygdrive/f/mozilla/build/unix/gnu-ld-scripts/components-version-script
-lm
oeICalEventImpl.o(.text+0x17):oeICalEventImpl.cpp: undefined reference
to `_imp___ZN8nsMemory5CloneEPKvj'
oeICalEventImpl.o(.text+0x459):oeICalEventImpl.cpp: undefined reference
to `_imp___ZN12nsCharTraitsIcE12sEmptyBufferE'
oeICalEventImpl.o(.text+0x460):oeICalEventImpl.cpp: undefined reference
to `_imp___ZN18nsObsoleteACString16sCanonicalVTableE'
oeICalEventImpl.o(.text+0x47e):oeICalEventImpl.cpp: undefined reference
to `_imp___ZN12nsCharTraitsIcE12sEmptyBufferE'
oeICalEventImpl.o(.text+0x485):oeICalEventImpl.cpp: undefined reference
to `_imp___ZN18nsObsoleteACString16sCanonicalVTableE'
:
:
:
:
:
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI17nsIServiceManagerEC1E16nsQueryInterface[nsCOMPtr<nsIServiceManager>::nsCOMPtr(nsQueryInterface)]+0x2a):oeICalEventImpl.cpp:
undefined reference to
`_imp___ZN13nsCOMPtr_base14assign_from_qiE16nsQueryInterfaceRK4nsID'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI13nsIPrefBranchEC1ERK15nsCOMPtr_helper[nsCOMPtr<nsIPrefBranch>::nsCOMPtr(nsCOMPtr_helper
const&)]+0x25):oeICalEventImpl.cpp: undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_from_helperERK15nsCOMPtr_helperRK4nsID'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI17oeEventEnumeratorEaSEPS0_[nsCOMPtr<oeEventEnumerator>::operator=(oeEventEnumerator*)]+0x16):oeICalEventImpl.cpp:
undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_with_AddRefEP11nsISupports'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI16nsIMsgAttachmentEC1ERK15nsCOMPtr_helper[nsCOMPtr<nsIMsgAttachment>::nsCOMPtr(nsCOMPtr_helper
const&)]+0x23):oeICalEventImpl.cpp: undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_from_helperERK15nsCOMPtr_helperRK4nsID'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI9nsIAbCardEC1ERK15nsCOMPtr_helper[nsCOMPtr<nsIAbCard>::nsCOMPtr(nsCOMPtr_helper
const&)]+0x23):oeICalEventImpl.cpp: undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_from_helperERK15nsCOMPtr_helperRK4nsID'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI12oeIICalEventEaSERK15nsCOMPtr_helper[nsCOMPtr<oeIICalEvent>::operator=(nsCOMPtr_helper
const&)]+0x1e):oeICalEventImpl.cpp: undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_from_helperERK15nsCOMPtr_helperRK4nsID'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI12oeIICalEventEaSEPS0_[nsCOMPtr<oeIICalEvent>::operator=(oeIICalEvent*)]+0x16):oeICalEventImpl.cpp:
undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_with_AddRefEP11nsISupports'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI16nsISupportsArrayE15StartAssignmentEv[nsCOMPtr<nsISupportsArray>::StartAssignment()]+0xe):oeICalEventImpl.cpp:
undefined reference to `_imp___ZN13nsCOMPtr_base16begin_assignmentEv'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI16nsIMsgAttachmentE15StartAssignmentEv[nsCOMPtr<nsIMsgAttachment>::StartAssignment()]+0xe):oeICalEventImpl.cpp:
undefined reference to `_imp___ZN13nsCOMPtr_base16begin_assignmentEv'
oeICalEventImpl.o(.text$_ZN8nsCOMPtrI9nsIAbCardE15StartAssignmentEv[nsCOMPtr<nsIAbCard>::StartAssignment()]+0xe):oeICalEventImpl.cpp:
undefined reference to `_imp___ZN13nsCOMPtr_base16begin_assignmentEv'
:
:
:
:

oeICalStartupHandler.o(.text+0x417):oeICalStartupHandler.cpp: undefined
reference to `_imp___ZN13nsCOMPtr_baseD2Ev'
oeICalStartupHandler.o(.text+0x427):oeICalStartupHandler.cpp: undefined
reference to `_imp___ZN13nsCOMPtr_baseD2Ev'
oeICalStartupHandler.o(.text+0x465):oeICalStartupHandler.cpp: undefined
reference to `_imp___ZN13nsCOMPtr_baseD2Ev'
oeICalStartupHandler.o(.text$_ZN8nsCOMPtrI18nsICategoryManagerEC1ERK15nsCOMPtr_helper[nsCOMPtr<nsICategoryManager>::nsCOMPtr(nsCOMPtr_helper
const&)]+0x25):oeICalStartupHandler.cpp: undefined reference to
`_imp___ZN13nsCOMPtr_base18assign_from_helperERK15nsCOMPtr_helperRK4nsID'
collect2: ld returned 1 exit status
make[1]: *** [xpical.dll] Error 1
make[1]: Leaving directory
`/cygdrive/f/mozilla/tbird-obj/calendar/libxpical'
make: *** [all] Error 2
------------------------------------------------------------


Are there any errors or any step I missed? Any clues?

Thanks for the attention.

--
Adriano Del Vigna de Almeida


adriano.vcf (278 bytes) Download Attachment