Public bug reported:

Ubuntu 11.04
libgjs 0.7.13-2ubuntu1

Linking an app that depends on libgjs (this is edited from the real
command line):

libtool: link: gcc -pthread -DJS_THREADSAFE -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/gjs-1.0 
-I/usr/include/gobject-introspection-1.0 -I/usr/include/xulrunner-2.0 
-I/usr/include/nspr -Wall  -g -O2 -o .libs/foo foo.o -pthread 
-Wl,--export-dynamic  ./.libs/libfoo.so -L/usr/lib/i386-linux-gnu -lm 
/usr/lib/i386-linux-gnu/libgmodule-2.0.so -lgjs 
/usr/lib/i386-linux-gnu/libgobject-2.0.so 
/usr/lib/i386-linux-gnu/libgthread-2.0.so -lrt 
/usr/lib/i386-linux-gnu/libglib-2.0.so -pthread
/usr/bin/ld: warning: libmozjs.so, needed by /usr/lib/libgjs.so, not found (try 
using -rpath or -rpath-link)
/usr/lib/libgjs.so: undefined reference to `JS_NewCompartmentAndGlobalObject'
/usr/lib/libgjs.so: undefined reference to `JS_GC'
[... and so on for every symbol]

Somehow, -L/usr/lib/xulrunner-2.0/ has not appeared, even though
-I/usr/lib/xulrunner-2.0 *has* appeared. libtool tries to resolve the
libmozjs.so dep but it cannot find it.

I'm not sure if this is a bug in mozilla-js.pc or gjs.pc to be honest,
or somewhere else entirely ..

** Affects: gjs (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Ubuntu 11.04
  libgjs 0.7.13-2ubuntu1
  
- Linking an app that depends on libgjs:
+ Linking an app that depends on libgjs (this is edited from the real
+ command line):
  
  libtool: link: gcc -pthread -DJS_THREADSAFE -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/gjs-1.0 
-I/usr/include/gobject-introspection-1.0 -I/usr/include/xulrunner-2.0 
-I/usr/include/nspr -Wall  -g -O2 -o .libs/foo foo.o -pthread 
-Wl,--export-dynamic  ./.libs/libfoo.so -L/usr/lib/i386-linux-gnu -lm 
/usr/lib/i386-linux-gnu/libgmodule-2.0.so -lgjs 
/usr/lib/i386-linux-gnu/libgobject-2.0.so 
/usr/lib/i386-linux-gnu/libgthread-2.0.so -lrt 
/usr/lib/i386-linux-gnu/libglib-2.0.so -pthread
  /usr/bin/ld: warning: libmozjs.so, needed by /usr/lib/libgjs.so, not found 
(try using -rpath or -rpath-link)
  /usr/lib/libgjs.so: undefined reference to `JS_NewCompartmentAndGlobalObject'
  /usr/lib/libgjs.so: undefined reference to `JS_GC'
+ [... and so on for every symbol]
  
  Somehow, -L/usr/lib/xulrunner-2.0/ has not appeared, even though
  -I/usr/lib/xulrunner-2.0 *has* appeared. libtool tries to resolve the
  libmozjs.so dep but it cannot find it.
  
  I'm not sure if this is a bug in mozilla-js.pc or gjs.pc to be honest,
  or somewhere else entirely ..

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/825367

Title:
  gjs fails to link with libmozjs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/825367/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to