Closed Bug 260337 Opened 20 years ago Closed 20 years ago

Fail to build on solaris

Categories

(Firefox Build System :: General, defect)

1.0 Branch
x86
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: eagle.lu, Assigned: bryner)

References

Details

Attachments

(2 files, 2 obsolete files)

I have checked out firefox 1.0 (tag NFIREFOX_0_10_RELEASE) and built it successfully on linux But when I try to use the same configure options on solaris. Firefox failed to build. I encounted two errors: 1. When I include the line ". $topsrcdir/browser/config/mozconfig" in .mozconfig I was told that export MOZ_PHOENIX=1 is invalid. 2. During compiling, I encounted following errors: CC -o mozilla-installer-bin -I/usr/openwin/include -xO2 -xlibmil -xlibmopt -features=tmplife -xbuiltin=%all -mt -xbuiltin=%all -features=tmplife -mt -DNDEBUG -DTRIMMED -xO2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include nsINIParser.o nsXInstallerDlg.o nsComponent.o nsSetupType.o nsComponentList.o nsRunApp.o nsLicenseDlg.o nsWelcomeDlg.o nsSetupTypeDlg.o nsComponentsDlg.o nsInstallDlg.o nsZipExtractor.o nsXIOptions.o nsXIContext.o nsXInstaller.o nsXIEngine.o -xildoff -zlazyload -zcombreloc -L../../../../../dist/bin -L../../../../../dist/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 ../../../../../dist/lib/libjar50_s.a ../../../../../dist/lib/libxpnet_s.a -lpthread -lsocket -ldl -lm Undefined first referenced symbol in file gethostbyaddr ../../../../../dist/lib/libxpnet_s.a(nsSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) gethostbyname ../../../../../dist/lib/libxpnet_s.a(nsSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) inet_addr ../../../../../dist/lib/libxpnet_s.a(nsSocket.o) (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) ld: fatal: Symbol referencing errors. No output written to mozilla-installer-bin I use the following configure options to build firefox: ac_add_options --enable-default-toolkit=gtk2 ac_add_options --enable-single-profile ac_add_options --disable-profilesharing ac_add_options --disable-ldap ac_add_options --disable-mailnews ac_add_options --enable-extensions="cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs,negotiateauth" ac_add_options --enable-crypto ac_add_options --disable-composer ac_add_options --disable-debug ac_add_options --enable-optimize="-xO2" ac_add_options --disable-tests ac_add_options --disable-static ac_add_options --enable-shared ac_add_options --enable-timeline # ac_add_options --disable-gtktest # ac_add_options --disable-glibtest # ac_add_options --disable-libIDLtest ac_add_options --without-system-nspr ac_add_options --without-system-zlib ac_add_options --without-system-jpeg ac_add_options --without-system-png ac_add_options --without-system-mng ac_add_options --x-includes=/usr/openwin/include ac_add_options --x-libraries=/usr/openwin/lib mk_add_options MOZ_PHOENIX=1 mk_add_options BUILD_OFFICIAL=1 mk_add_options MOZILLA_OFFICIAL=1
Attached patch patch v0 (obsolete) — Splinter Review
Comment on attachment 159389 [details] [diff] [review] patch v0 Can you give r? thanks
Attachment #159389 - Flags: review?(bryner)
*** Bug 260336 has been marked as a duplicate of this bug. ***
I have build firefox 1.0 on both linux and solaris sucessfully after adding this patch. Brian would you please review this patch? thanks
Summary: Fail to build on solaris → Fail to build on solaris
Comment on attachment 159389 [details] [diff] [review] patch v0 >--- browser/config/mozconfig 7 Jul 2004 08:31:10 -0000 1.7.2.1.2.2 >+++ browser/config/mozconfig 19 Sep 2004 12:12:52 -0000 >@@ -3,7 +3,8 @@ > # . $topsrcdir/browser/config/mozconfig > # to the top of your mozconfig file. > >-export MOZ_PHOENIX=1 >+set MOZ_PHOENIX=1 >+export MOZ_PHOENIX > mk_add_options MOZ_PHOENIX=1 > > ac_add_options --disable-ldap I'm ok with thfis. >--- toolkit/mozapps/installer/unix/wizard/Makefile.in 26 Aug 2004 19:57:00 -0000 1.1.6.1 >+++ toolkit/mozapps/installer/unix/wizard/Makefile.in 19 Sep 2004 12:12:52 -0000 >@@ -58,6 +58,7 @@ > $(DIST)/lib/$(LIB_PREFIX)jar50_s.$(LIB_SUFFIX) \ > $(DIST)/lib/$(LIB_PREFIX)xpnet_s.$(LIB_SUFFIX) \ > -lpthread \ >+ -lnsl \ > $(NULL) > > EXTRA_DEPS = \ This, I think, needs to be autoconf'd or ifdef'd per-platform. Looking at nsprpub/pr/src/Makefile.in, it looks like this is really only needed on Solaris.
Attachment #159389 - Flags: review?(bryner) → review-
Comment on attachment 159696 [details] [diff] [review] The patch is made according to Brian's comments Can you give r now?
Attachment #159696 - Flags: review?(bryner)
Attachment #159389 - Attachment is obsolete: true
Attachment #159696 - Flags: review?(bryner) → review+
Comment on attachment 159696 [details] [diff] [review] The patch is made according to Brian's comments Can you give sr? Thanks
Attachment #159696 - Flags: superreview?(firefox)
Comment on attachment 159696 [details] [diff] [review] The patch is made according to Brian's comments patch checked in trunk.
Attachment #159696 - Flags: superreview?(firefox)
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 159696 [details] [diff] [review] The patch is made according to Brian's comments >+set MOZ_PHOENIX=1 Shouldn't this just be: MOZ_PHOENIX=1 This patch turned some of the tinderboxes red, I think. http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox
Hm, "set" only works in csh. Now the tinderbox turned green after bryner fixed it.
I don't know if a similar bug for Thunderbird exists, but it surely applies to it as well (mail/config/mozconfig).
I think thunderbird may have the same problem. I will try the latest codes on solaris.
*** Bug 241808 has been marked as a duplicate of this bug. ***
Attached patch Patch for thunderbird (obsolete) — Splinter Review
Attachment #164347 - Flags: review?(bryner)
Attachment #164347 - Attachment is obsolete: true
Attachment #164347 - Flags: review?(bryner)
Attachment #164351 - Flags: review?(bryner)
Attachment #164351 - Flags: review?(bryner) → review+
toolkit/mozapps/installer/unix/wizard/Makefile.in is broken by 1.4 ben%bengoodger.com 2004-11-30 14:54 Landing the Aviary Branch (Toolkit sections excluding toolkit/content). please checkin it again. And this patch should be commited to AVIARY 1.0 branch too.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: aviary-landing
Relanded on trunk: Checking in mozilla/toolkit/mozapps/installer/unix/wizard/Makefile.in; /cvsroot/mozilla/toolkit/mozapps/installer/unix/wizard/Makefile.in,v <-- Makefile.in new revision: 1.5; previous revision: 1.4 done Please request approval-aviary if you want to make changes on the aviary branch. However, there is currently no Firefox post 1.0 work scheduled for that branch.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Keywords: aviary-landing
Resolution: --- → FIXED
*** Bug 247010 has been marked as a duplicate of this bug. ***
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: