Closed Bug 3352 Opened 26 years ago Closed 26 years ago

libraptorhtml.so: undefined reference to `ns...'

Categories

(SeaMonkey :: Build Config, defect, P2)

Sun
Solaris
defect

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: dflater, Assigned: mcafee)

Details

SunOS 5.6 Generic_105181-09 sun4u sparc SUNW,Ultra-Enterprise Current sources from cvs -z3 checkout SeaMonkeyBrowser gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release) Remembering that a while back the Solaris build was said to be temporarily hosed, I gave this a while to work itself out, but alas. I am compiling without --enable-editor because that has refused to compile for even longer. Upon trying to link viewer, I get many errors of the following form: ./nsBrowserWindow.o: In function `nsBrowserWindow::ShowPrintPreview(int)': ./nsBrowserWindow.o(.text+0x4b10): undefined reference to `NS_NewPrintPreviewContext(nsIPresContext **)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsBlockFrame::ComputeFinalSize(nsBlockReflowState &, nsHTMLReflowMetrics &)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsStyleSpacing::GetBorderStyle(unsigned char) const' ../../../dist/./bin/libraptorhtml.so: undefined reference to `NS_NewHTMLStyleElement(nsIHTMLContent **, nsIAtom *)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsSplittableFrame::IsSplittable(unsigned int &) const' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsDocument::Convert(JSContext *, long)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `NS_NewHTMLBaseFontElement(nsIHTMLContent **, nsIAtom *)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsBlockFrame::DeleteFrame(nsIPresContext &)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsBlockFrame::InsertFrames(nsIPresContext &, nsIPresShell &, nsIAtom *, nsIFrame *, nsIFrame *)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `NS_NewHTMLLabelElement(nsIHTMLContent **, nsIAtom *)' ../../../dist/./bin/libraptorhtml.so: undefined reference to `nsContainerFrame::List(FILE *, int) const' ...et cetera, through many ns* functions.
Assignee: briano → mcafee
Chris, you've been hacking mozilla for Solaris 2.6. Any clues?
Here's the offending link line. c++ -Wall -O2 -fPIC -UDEBUG -DNDEBUG -DTRIMMED -DOSTYPE=\"SunOS5\" -include ../../../config-defs.h -I../../../dist/./include -I../../../dist/include -I../../../include -I/depot/pub/moz-dwf-1999-01-26/include -I../../../dist/./public/jpeg -I../../../dist/./public/png -I../../../dist/./public/zlib -I/usr/openwin/include -DWIDGET_DLL=\"libwidgetgtk.so\" -DGFXWIN_DLL=\"libgfxgtk.so\" -I/usr/openwin/include -I/depot/pub/moz-dwf-1999-01-26/lib/glib/include -I/depot/pub/moz-dwf-1999-01-26/include -o viewer ./nsGTKMain.o ./nsGTKMenu.o ./nsBaseDialog.o ./nsFindDialog.o ./nsXPBaseWindow.o ./nsTableInspectorDialog.o ./nsImageInspectorDialog.o ./nsPrintSetupDialog.o ./nsBrowserWindow.o ./nsEditorMode.o ./nsSetupRegistry.o ./nsViewerApp.o ./nsWebCrawler.o ./nsStubs.o -L../../../dist/./bin -lraptorwebwidget -lwidgetgtk -lraptorgfx -lgfxgtk -lgfxps -lraptorhtml -lgmbasegtk -lraptorhtmlpars -lraptorview -ljsdom -lraptorplugin -labouturl -lfileurl -lftpurl -lgophurl -lhttpurl -lremoturl -lsockstuburl -lmimetype -lnetcache -lnetcnvts -lnetlib -lnetutil -lnetwork -lxp -ljsurl -lmozdbm -lpwcac -limg ../../../dist/./lib/libjpeg.a ../../../dist/./lib/libpng.a -lraptorbase -lpref ../../../dist/./lib/libzlib.a -lreg -ljs -lxpcom -lsecfree -lmozutil -L/depot/pub/moz-dwf-1999-01-26/lib -lplds21 -lplc21 -lnspr21 -L/depot/pub/moz-dwf-1999-01-26/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm -ll -lw -lposix4 -lintl -lelf -lnsl -lsocket -lresolv -ldl -lm -lc Here's what I did (which used to work): cd /scratch/dflater/mozilla make -C nsprpub DIST=/depot/pub/moz-dwf-1999-01-26 NSDISTMODE=copy \ NS_USE_GCC=1 MOZILLA_CLIENT=1 NO_MDUPDATE=1 NS_USE_NATIVE= \ USE_PTHREADS= export autoconf -l build/autoconf ./configure --prefix=/depot/pub/moz-dwf-1999-01-26 \ --with-nspr=/depot/pub/moz-dwf-1999-01-26 make depend make
Yeah I'm seeing similar things when trying to link viewer with Workshop.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I've fixed this for the workshop build, are you still seeing this? Marking fixed, please reopen if this is still happening.
Status: RESOLVED → REOPENED
It's still happening. I've updated my build script from the latest build instructions but it made no difference for the link errors. I had some trouble with nsprpub getting built with cc instead of gcc, but working around that as shown below didn't help. make -C nsprpub DIST=/depot/pub/moz-dwf-1999-01-26 NSDISTMODE=copy \ NS_USE_GCC=1 MOZILLA_CLIENT=1 NO_MDUPDATE=1 NS_USE_NATIVE= \ USE_PTHREADS= export # autoconf -l build/autoconf ./configure --prefix=/depot/pub/moz-dwf-1999-01-26 \ --with-nspr=/depot/pub/moz-dwf-1999-01-26 \ --enable-editor --disable-build-nspr make depend make
Target Milestone: M4
targeting for m4
Target Milestone: M4 → M5
moving to m5
--enable-editor is now the default; I've been building on Solaris 2.6/egcs for the last two months, make sure "which ld" points to /usr/ccs/bin/ld. Not sure what the problem is here.
I configured the egcs here to use GNU ld on account of other people were complaining that KDE won't build with the ccs ld. I'll try again to build viewer after we finish recovering from the weekend outage here.
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: FIXED → WORKSFORME
Today viewer built OK, GNU ld and all. *shrug* Marking resolved/worksforme.
vrfy
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.