Closed
Bug 162918
Opened 22 years ago
Closed 22 years ago
static builds are busted
Categories
(SeaMonkey :: Build Config, defect)
SeaMonkey
Build Config
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.2beta
People
(Reporter: netscape, Assigned: netscape)
Details
Attachments
(1 file, 2 obsolete files)
4.73 KB,
patch
|
srgchrpv
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
Right now we have have 2 bits of static build bustage due to the fixes for bug
157993 & bug 121622. These need to be fixed.
Assignee | ||
Comment 1•22 years ago
|
||
The problem in both cases is that all global symbols need to be uniquely named.
In the case of bug 157993, the ns*coderSupport classes are being duplicated in
ucvmath.so. ucvmath.so was never converted to use ucvutil_s.
In the case of bug 121622, the logmodule symbols need to be renamed. I'm not
sure if that requires a seperate name to register the log module. Probably.
Assignee | ||
Comment 2•22 years ago
|
||
It builds. It runs. I make no guarantees about correctness though.
alecf mentioned that he had another iteration to merge things even further.
There are many files with just a few lines now, e.g.,
http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvlatin/nsUnicodeToZapfDingbat.cpp
http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvlatin/nsUnicodeToZapfDingbat.h
[I wonder if these can't be collapsed/grouped too (per module).]
In the meantime, if your patch works, go for it. Examples of test pages:
http://www.mozilla.org/projects/mathml/demo/basics.xhtml
http://www.mozilla.org/projects/mathml/demo/start.xml
Comment 4•22 years ago
|
||
yeah, and I'm going to collapse them even further (from a simple class down to a
single function) - but I'm keeping them seperate for now
Assignee | ||
Comment 5•22 years ago
|
||
Someone more mathml-savvy than I will have to verify the correctness of the
patch. The test page rendered fine with a few ?s w & w/o my patch before I
installed the mathml fonts. Once I installed the TexCM & Mathematica fonts on
my w2k box, the portion of the page with the formulas does not render at all and
the page height & width is extremely large.
Comment 6•22 years ago
|
||
Comment on attachment 95507 [details] [diff] [review]
make ucvmath use ucvutil_s
seawood: you're very close and you've got the right idea. The only thing you
need to do now is remove the GetMaxLength() method from each of these classes -
which means removing it from both the header and the C++...
Attachment #95507 -
Flags: needs-work+
Assignee | ||
Comment 7•22 years ago
|
||
Attachment #95507 -
Attachment is obsolete: true
Comment 8•22 years ago
|
||
marking dup of that bug because it has a patch with review
*** This bug has been marked as a duplicate of 163217 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 9•22 years ago
|
||
Reopening as the fix for bug 163217 doesn't fix the debug builds.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 10•22 years ago
|
||
It turns out that we have multiple problems in debug static builds:
1) printing is using the same global variable for logging across multiple
components
2) plugins has a local non-static copy of the nsManifestLineReader class
3) NSS is doing something weird.
This patch solves the first 2 problems. I'm not sure what's going on when we
link against NSS. To confirm that the problem did not lie in PSM, I forced a
link against NSS_LIBS even when crypto was not enabled and the crash still
occurred. We crash before main is even called which is usually a sign of
something crashing in a static constructor. This seems strange as I thought
that NSS was all C, not C++. And non-debug crypto-enabled static builds seem
to work fine.
Attachment #95908 -
Attachment is obsolete: true
Comment 11•22 years ago
|
||
Comment on attachment 96643 [details] [diff] [review]
fix --disable-crypto debug builds
sr=alecf
I wish I knew what was up with the 2nd nsManifestLineReader :(
Attachment #96643 -
Flags: superreview+
Comment 12•22 years ago
|
||
Comment on attachment 96643 [details] [diff] [review]
fix --disable-crypto debug builds
>I wish I knew what was up with the 2nd nsManifestLineReader :(
yeah, I was thinking rename it initially, but did not:(
r=serge
Attachment #96643 -
Flags: review+
Assignee | ||
Comment 13•22 years ago
|
||
And now static debug builds magically work again.
Status: REOPENED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.2beta
What about the orange tinderboxes? (I did a static opt build recently, and it
didn't start either.)
Assignee | ||
Comment 15•22 years ago
|
||
Orange tinderboxes are not a build problem but a runtime problem.
There seems to be something in our tinderbox scripts that breaks static builds
(or our static builds are just consistently flaky on the tinderbox). I setup a
tinderbox on starscream and ran it over the weekend. It went orange just like
the other static build tinderboxes. I then did a local build using the same
mozconfig file and it worked fine. My static debug build using my regular
mozconfig file worked fine with a 8am pull. I just did a gcc2.95.3 -O2 build
from that same tree and it works fine as well.
As I pointed out in bug 168433, the problem on the tinderboxes appears to be
that they are failing to create an instance of the startupNotifier in main1().
Updated•20 years ago
|
Product: Browser → Seamonkey
Updated•9 years ago
|
Whiteboard: [partner-cherry-pick]
Updated•9 years ago
|
Whiteboard: [partner-cherry-pick]
You need to log in
before you can comment on or make changes to this bug.
Description
•