Closed Bug 203956 Opened 22 years ago Closed 22 years ago

Mac static build is broken

Categories

(SeaMonkey :: Build Config, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bryner, Assigned: bryner)

Details

Attachments

(1 file, 1 obsolete file)

ssu's checkin for bug 125106 broke the Mac static build. Here's the error: c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -fpascal-strings -traditional-cpp -fno-common -fshort-wchar -I/Developer/Headers/FlatCarbon -F/System/Library/Frameworks -pipe -DNDEBUG -DTRIMMED -O -fPIC -arch ppc -o libxpinstall.dylib CertReader.o nsInstall.o nsInstallTrigger.o nsInstallVersion.o nsInstallFolder.o nsJSInstall.o nsJSFile.o nsJSInstallTriggerGlobal.o nsJSInstallVersion.o nsSoftwareUpdate.o nsSoftwareUpdateRun.o nsInstallFile.o nsInstallExecute.o nsInstallPatch.o nsInstallUninstall.o nsInstallResources.o nsRegisterItem.o nsTopProgressNotifier.o nsLoggingProgressNotifier.o ScheduledTasks.o nsXPIProxy.o nsXPITriggerInfo.o nsXPInstallManager.o nsInstallFileOpItem.o nsJSFileSpecObj.o nsInstallLogComment.o nsInstallBitwise.o -L../../dist/bin -L../../dist/lib -L../../dist/bin -lmozjs -L../../dist/bin -lxpcom -L../../dist/bin -L/builds/tinderbox/SeaMonkey/Darwin_! 6.5_Depend/ mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -L../../dist/lib -lxpcom_compat ../../dist/lib/libunicharutil_s.a -lz -framework Carbon /System/Library/Frameworks/Carbon.framework/Carbon -bundle -lm ld: ../../dist/lib/libunicharutil_s.a(nsUnicharUtils.o) has local relocation entries in non-writable section (__TEXT,__text) make[4]: *** [libxpinstall.dylib] Error 1 The problem is that libunicharutil_s.a has been built with non-position independent code. But xpinstall is forced to be a shared library, so it needs to use PIC if xpinstall is enabled.
Attached patch patch (obsolete) — Splinter Review
Attachment #122129 - Flags: review?(seawood)
Comment on attachment 122129 [details] [diff] [review] patch xpinstall isn't the only forced shared lib that uses unicharutil. inspector uses it as do the meta components. Not sure why this is just becoming a problem though.
Attachment #122129 - Flags: review?(seawood) → review-
Probably because we don't build inspector for Camino so that bustage never showed up. Sounds like we should make unicharutil_s use PIC unconditionally.
Attached patch patch #2Splinter Review
how about this?
Attachment #122129 - Attachment is obsolete: true
Attachment #122179 - Flags: review?(seawood)
Attachment #122179 - Flags: review?(seawood) → review+
Attachment #122179 - Flags: approval1.4b?
Comment on attachment 122179 [details] [diff] [review] patch #2 a=sspitzer
Attachment #122179 - Flags: approval1.4b? → approval1.4b+
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: