Closed Bug 290923 Opened 20 years ago Closed 19 years ago

linking of libsimpletest.so fails --with-system-nspr

Categories

(Toolkit Graveyard :: Build Config, defect, P1)

x86
Linux

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: wolfiR, Assigned: benjamin)

Details

(Whiteboard: [xulrunner build])

c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -pedantic -O2 -march=i586 -mcpu=i686
-fmessage-length=0 -Wall -Os -fno-strict-aliasing -fshort-wchar -pthread -pipe 
-DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-h -Wl,libsimpletest.so -o
libsimpletest.so  SimpleTest.o       -lxpcomglue_s -L../../../../../dist/bin
-Wl,-rpath-link,../../../../../dist/bin -lxpcom -lxul  -L../../../../../dist/bin
-L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -Wl,--version-script
-Wl,../../../../../build/unix/gnu-ld-scripts/components-version-script
-Wl,-Bsymbolic -ldl -lm    
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
cannot find -lxpcomglue_s
collect2: ld returned 1 exit status

libxpomglue_s.a is only in dist/lib and not in dist/bin.
It can't be found because of this.
Whiteboard: [xulrunner build]
We should be using the new                                                     
                           $(XPCOM_GLUE_LDOPTS) makefile var.
Severity: normal → major
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta2
So, I wonder why the linux tinderbox is green:
http://tinderbox.mozilla.org/showbuilds.cgi?tree=XULRunner

Is there something special about your linux?
(In reply to comment #2)
> So, I wonder why the linux tinderbox is green:
> http://tinderbox.mozilla.org/showbuilds.cgi?tree=XULRunner

I can't see enough information about the builds there.
Maybe it's only green because it's no clean build and old files are around?

> Is there something special about your linux?

Don' think so. The linker can't find the archive because there is no
directive to find it in dist/lib. Is libxpcomglue_s.a in dist/bin in your clean
build?
don't know what happened in the meantime but now it works for me.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
hmm, it works usually but it fails if --with-system-nspr is used
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
--- xulrunner/examples/simple/components/src/Makefile.in        22 Apr 2005
13:44:41 -0000      1.3
+++ xulrunner/examples/simple/components/src/Makefile.in        6 Jun 2005
19:45:30 -0000
@@ -52,11 +52,11 @@ IS_COMPONENT        = 1

 CPPSRCS                = SimpleTest.cpp

 # We link against the xpcom glue library to avoid depending on unfrozen
 # XPCOM symbols.
 EXTRA_DSO_LIBS  = xpcomglue_s
-EXTRA_DSO_LDOPTS= $(EXTRA_DSO_LIBS) $(MOZ_COMPONENT_LIBS)
+EXTRA_DSO_LDOPTS= $(EXTRA_DSO_LIBS) $(MOZ_COMPONENT_LIBS) $(LIBS_DIR)

 EXTRA_COMPONENTS= $(srcdir)/SimpleTest.js

 include $(topsrcdir)/config/rules.mk

This patch works but I think there could be another (better) solution.
At least Benjamin recommended another solution.
Target Milestone: mozilla1.8beta2 → mozilla1.9alpha1
Assignee: darin → benjamin
Status: REOPENED → NEW
Summary: linking of libsimpletest.so fails → linking of libsimpletest.so fails --with-system-nspr
This was fixed on 2005-07-25 by bug 299991 to use the correct var.
Status: NEW → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.