Closed Bug 330753 Opened 16 years ago Closed 14 years ago

Lightning builds compiled with --enable-static fails

Categories

(Calendar :: Lightning Only, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ssitter, Unassigned)

References

Details

Lightning builds compiled with --enable-static fails

If Thunderbird and Lightning are compiled with --enable-static / --disable-shared the resulting Thunderbird build and lightning.xpi does not work together.

In my test I build Thunderbird and Lightning from 2006-03-16 trunk cvs on Windows 2000 using VC8. But this has also been reported in Calendar forum and newsgroup.

Thunderbird can be started normally. But Lightning does not work with the following symptoms:

- Lightning sidebar is displayed but Agenda and Calendar tabs are empty

- When switching to a calendar view nothing except the nav buttons is displayed

- It is not possible to create new Event or Task. No dialog is shown.

- Creation of new calendar opens wizard but does not proceed after entering
  calendar name and pressing 'Next'.

- Preference menu not working

Many similar error messages are logged in JavaScript console. Most of the errors looks like the following and happen in different calendar locations:

    ----------------------------------------------------------------------
    Error: [Exception... "Invalid ClassID or ContractID"  nsresult: 
    "0x80570017 (NS_ERROR_XPC_BAD_CID)" ...
    ----------------------------------------------------------------------
    Error: [Exception... "Component returned failure code: 0x80570016
    (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" ...
    ----------------------------------------------------------------------
    Error: [Exception... "Component returned failure code: 0x80570015
    (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]"  ...
    ----------------------------------------------------------------------
    Error: nsIScriptableDateFormat is not defined
    ----------------------------------------------------------------------
    Error: todoList has no properties
    ----------------------------------------------------------------------
    Error: CalDateTime is not a constructor
    ----------------------------------------------------------------------
    Error: Components.classes['@mozilla.org/calendar/datetime;1'] 
           has no properties
    ----------------------------------------------------------------------
    Error: this.startDay has no properties
    ----------------------------------------------------------------------

This has been seen before with the official builds (e.g. Bug 301973, Bug 314834, Bug 308958). As a result only the tinderbox configuration were changed. Even if it is not possible to fix the problem right now we should keep this bug open to help users to find this problem.


Workaround: Build Lightning with --disable-static / --enable-shared.
Happens also on Windows XP SP2 and Branch builds (MOZILLA_1_8_BRANCH).

Errors her:

Fehler: Components.classes['@mozilla.org/calendar/datetime;1'] has no properties
Quelldatei: chrome://lightning/content/messenger-overlay-sidebar.js
Zeile: 37
 ----------
Fehler: Invalid ClassID or ContractID = NS_ERROR_XPC_BAD_CID
Quelldatei: chrome://calendar/content/calendarUtils.js
Zeile: 89
 ----------
Fehler: Invalid ClassID or ContractID = NS_ERROR_XPC_BAD_CID
Quelldatei: file:///[ProfileDir]/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calItemModule.js
Zeile: 64
 ----------
Fehler: Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]
Quelldatei: chrome://calendar/content/calendarUtils.js
Zeile: 46 

Shared build works.
Component: General → Lightning
The bugspam monkeys have been set free and are feeding on Calendar :: Lightning Only. Be afraid for your sanity!
QA Contact: general → lightning
Could it be possible to move static to shared builds ? Currently, Minefield is - at least on linux - a shared build.

Even it is a little bigger than static builds, but it could help using and debugging lightning.

Commenting these lines in mozilla/mail/installer/Makefile.in (around line 90)

"ifdef BUILD_STATIC_LIBS
ifeq (WINNT,$(OS_ARCH))
MOZ_PKG_MANIFEST_P = $(srcdir)/windows/packages-static
endif
else
$(error you need a "--enable-static --disable-shared" build to create an installer)
endif"

Could help.

Is it possible or not ?
Stefan, since lightning (trunk) now always builds as a shared lib and links against frozen API, this should work now. Can we close this bug?
Yes, seems to work for Trunk builds now. 

What about the same issues on MOZILLA_1_8_BRANCH?
Haven't tested a static branch thunderbird build, but lightning's components come per (enforced) shared lib now on branch, too.
Resolving WORKSFORME per previous comments.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Target Milestone: --- → 1.0
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.