Bug 429654 - Attempting to link with libmozjs fails
Attempting to link with libmozjs fails
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: xulrunner (Show other bugs)
rawhide
All Linux
low Severity urgent
: ---
: ---
Assigned To: Martin Stransky
Fedora Extras Quality Assurance
http://koji.fedoraproject.org/koji/ge...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-22 01:47 EST by Braden McDaniel
Modified: 2008-01-23 13:18 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-23 10:25:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Braden McDaniel 2008-01-22 01:47:31 EST
Description of problem:
Attempting to link with libmozjs using the flags provided by xulrunner-js.pc fails.

Version-Release number of selected component (if applicable):
1.9-0.beta2.11.nightly20080115

Additional info:
The following link command is failing:

/bin/sh ../libtool --tag=CXX   --mode=link g++ -pthread 
-I/usr/include/freetype2   -DXP_UNIX -DJS_THREADSAFE
-I/usr/include/xulrunner-sdk-1.9pre/stable
-I/usr/include/xulrunner-sdk-1.9pre/js -I/usr/include/nspr4   -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
-m64 -mminimal-toc -version-info 8:2:0 -ljpeg -lpng -lz -lfontconfig  
-lfreetype   -L/usr/lib64/xulrunner-sdk-1.9pre/lib -L/lib64 -lmozjs -lplds4
-lplc4 -lnspr4 -lpthread -ldl      -o libopenvrml/libopenvrml.la -rpath
/usr/lib64 libopenvrml/openvrml/libopenvrml_libopenvrml_la-vrml97_grammar.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_vrml_grammar.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-read_write_mutex.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-basetypes.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-field_value.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-event.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-exposedfield.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-scope.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-node.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-bounding_volume.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-script.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-ScriptJDK.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-browser.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-viewer.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-rendering_context.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-frustum.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-node_impl_util.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-vrml97node.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_core.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_networking.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_grouping.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_rendering.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_shape.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_geometry2d.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_texturing.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_interpolation.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_key_device_sensor.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_event_utilities.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_dis.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_environmental_effects.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_geospatial.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_hanim.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_nurbs.lo
libopenvrml/openvrml/libopenvrml_libopenvrml_la-x3d_cad_geometry.lo
-lboost_thread-mt 
mkdir libopenvrml/.libs
g++ -shared -nostdlib
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib64/crti.o
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/crtbeginS.o 
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-vrml97_grammar.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_vrml_grammar.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-read_write_mutex.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-basetypes.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-field_value.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-event.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-exposedfield.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-scope.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-node.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-bounding_volume.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-script.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-ScriptJDK.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-browser.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-viewer.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-rendering_context.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-frustum.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-node_impl_util.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-vrml97node.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_core.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_networking.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_grouping.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_rendering.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_shape.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_geometry2d.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_texturing.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_interpolation.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_key_device_sensor.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_event_utilities.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_dis.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_environmental_effects.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_geospatial.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_hanim.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_nurbs.o
libopenvrml/openvrml/.libs/libopenvrml_libopenvrml_la-x3d_cad_geometry.o  -ljpeg
-lpng -lz -lfontconfig -lfreetype -L/usr/lib64/xulrunner-sdk-1.9pre/lib -L/lib64
-lmozjs -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lboost_thread-mt
-L/usr/lib/gcc/ppc64-redhat-linux/4.1.2
-L/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/crtsavres.o
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/crtendS.o
/usr/lib/gcc/ppc64-redhat-linux/4.1.2/../../../../lib64/crtn.o  -pthread -m64
-mminimal-toc -Wl,-soname -Wl,libopenvrml.so.8 -o
libopenvrml/.libs/libopenvrml.so.8.0.2
/usr/bin/ld: cannot find -lmozjs
Comment 1 Martin Stransky 2008-01-23 09:31:49 EST
xulrunner-js.pc is no more provided, you have to use mozilla-js.pc instead.

But you're right, mozjs is in /usr/lib64/xulrunner-sdk-1.9pre/sdk/lib, not in
/usr/lib64/xulrunner-sdk-1.9pre/lib.
Comment 2 Braden McDaniel 2008-01-23 10:06:42 EST
The change to mozilla-*.pc ought to be announced on fedora-devel (along with its
rationale). Fortunately, in this case, openvrml's configure already looks for
mozilla-js.pc, as well.
Comment 3 Martin Stransky 2008-01-23 10:24:40 EST
It was announced:

http://www.redhat.com/archives/rhl-devel-list/2008-January/msg00766.html

should be fixed in xulrunner-1.9-0.beta2.12.nightly20080121.fc9
Comment 4 Braden McDaniel 2008-01-23 13:18:14 EST
My mistake. I recall reading that e-mail; however, it wasn't clear to me from the text that these .pc files 
were affected. And I didn't follow the link.
Comment 5 Braden McDaniel 2008-01-23 13:18:22 EST
My mistake. I recall reading that e-mail; however, it wasn't clear to me from the text that these .pc files 
were affected. And I didn't follow the link.

Note You need to log in before you can comment on or make changes to this bug.