Closed Bug 196183 Opened 21 years ago Closed 21 years ago

mozilla-bin fails to link on hp-ux

Categories

(SeaMonkey :: General, defect)

HP
HP-UX
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jdunn, Assigned: jdunn)

References

Details

Attachments

(1 file)

While trying to link on hp-ux, we run into an unsat symbol.

aCC -ext +p +DAportable +DS2.0 +W67,652,728,740,749,829 -o mozilla-bin  ...     
/usr/ccs/bin/ld: Unsatisfied symbols:
   SFRC4nsIDP11nsISupportsT1PP::nsComponentManager::CreateInstance (code)
gmake: *** [mozilla-bin] Error 1

I talked this over briefly with doug, since I am assuming it has to do
with linking with lib xpcomglue_s.a instead of against -lxpcom.
I spent some time trying to figure it out, but came up blank.

No one is really looking at this (no one is building hp-ux these days,
there are no tboxes...) but I figured I would log it.
changing qa contact
QA Contact: asa → jdunn
here is the LD command 

 /usr/ccs/bin/ld -o mozilla-bin /opt/langtools/lib/crt0.o -u ___exit -u main -L
/opt/aCC/lib /opt/aCC/lib/cpprt0.o -ynsComponentManager::CreateInstance
nsAppRunner.o nsWindowCreator.o showOSAlert.o nsSigHandlers.o nsStackFrameUnix.o
nsNativeAppSupportGtk.o nsNativeAppSupportBase.o -L ../../dist/bin -L
../../dist/lib ../../dist/lib/libstring_s.a
../../dist/lib/libstring_obsolete_s.a ../../dist/lib/libxpcomglue.a
../../dist/lib/libembedstring_s.a -L ../../dist/bin -lmozjs -L
/builds/jdunn/trunk/mozilla/obj/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -L
/opt/gtk+/lib -lgtk -lgdk -L /opt/glib/lib -lgmodule -lglib -L /opt/gettext/lib
-lintl +b /opt/gnome/lib -lXext -lX11 -lm -lm -lstd -lstream -lCsup -lm -lcl -lc
/usr/lib/libdld.sl >/builds/jdunn/tmp/AAAa24330 2>&1
 /opt/aCC/bin/c++filt </builds/jdunn/tmp/AAAa24330 1>&2
/usr/ccs/bin/ld: Unsatisfied symbols:
   static nsComponentManager::CreateInstance(const nsID &,nsISupports *,const
nsID &,void **) (first referenced in nsAppRunner.o) (code)

and the error output of the LD command is

/usr/ccs/bin/ld: Unsatisfied symbols:
   CreateInstance__18nsComponentManagerSFRC4nsIDP11nsISupportsT1PPv (first
referenced in nsAppRunner.o) (code)
We used aCC 03.39 and had the same problem (and one other). The attached patch
fixed it for us to ignore the .h file bringing in the offending function. I
think it's an aCC bug as Solaris, IRIX, Tru64 UNIX, and GCC work fine.
fwiw, the first part of this patch seems to be already checked in
note: ignore the nsCrypto.cpp patch, that was fixed in bug 196893

The review that is important is of nsAppRunner.cpp
Comment on attachment 118066 [details] [diff] [review]
Patch to build Mozilla 1.3 on HP-UX 11i

OK, then it doesn't really matter who reviews it.

Also, the |#include "nsIURI.h"| can be removed too.
Attachment #118066 - Flags: review?(kaie) → review?
Attachment #118066 - Flags: review? → review+
Fix checked in to trunk, 2003-03-21 12:48 PST.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 198793 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: