Closed Bug 355608 Opened 18 years ago Closed 17 years ago

xulrunner + python fails with "dist/lib/libpyxpcom.a: No such file or directory"

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: myk, Assigned: vamposdecampos)

Details

Attachments

(1 file, 1 obsolete file)

When I try to compile xulrunner with the python extension enabled, the build dies with the following error:

---
gmake[7]: Entering directory `/home/myk/Projects/pyxulrunner/mozilla/obj-xulrunner/extensions/python/dom/src'
rm -f libpydom.so
c++  -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 -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -DPYTHON_SO=\"libpython2.4.so\" -fPIC -shared -Wl,-z,defs -Wl,-h,libpydom.so -o libpydom.so  nsPyArgArray.o nsPyContext.o nsPyRuntime.o nsPyDOMModule.o nsPyDOMISupports.o nsPyTimeout.o    -lpthread    -L../../../../dist/bin -Wl,-rpath-link,../../../../dist/bin -lxpcom -lxul  -L../../../../dist/bin -L../../../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl ../../../../dist/lib/libxpcomglue_s.a -L../../../../dist/bin -Wl,-rpath-link,../../../../dist/bin -lxpcom  -Wl,--version-script -Wl,/home/myk/Projects/pyxulrunner/mozilla/build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm  -L/usr/lib -lpython2.4 -lutil ../../../../dist/lib/libpyxpcom.a  -L../../../../dist/bin -lmozjs
c++: ../../../../dist/lib/libpyxpcom.a: No such file or directory
gmake[7]: *** [libpydom.so] Error 1
gmake[7]: Leaving directory `/home/myk/Projects/pyxulrunner/mozilla/obj-xulrunner/extensions/python/dom/src'
---

Symlinking libpyxpcom.a to libpyxpcom.so seems to work around the problem.
This fixes it for me (linux, gcc 4.1.2). Not tested on other platforms.
bug 375318 for general pyxpcom/xulrunner/cvs trunk build issues
Alex, I have no idea if the fix is correct but it seem to work for me (linux). It would be good to ask review for it so that we can get a fix for this issue on the trunk.
I've been using xulrunner with pyxpcom for a couple of weeks now, with this patch, and it seems to work for me, too (Ubuntu edgy, gcc 4.1.2).
Comment on attachment 253079 [details] [diff] [review]
patch to use .so suffix instead of .a

libpyxpcom is currently build as shared library.

Thus, this patch looks reasonable.

Benjamin, do you still consider patches and do reviews for python?
Attachment #253079 - Flags: review?(benjamin)
Comment on attachment 253079 [details] [diff] [review]
patch to use .so suffix instead of .a

normally no, but this looks pretty obvious
Attachment #253079 - Flags: review?(benjamin) → review+
Comment on attachment 253079 [details] [diff] [review]
patch to use .so suffix instead of .a

Actually, this will break Windows.

You want $(call EXPAND_LIBNAME_PATH,pyxpcom,$(DIST)/lib)
Attachment #253079 - Flags: review+ → review-
Changed as suggested; verified to build on Linux and win32.
Attachment #253079 - Attachment is obsolete: true
Attachment #284153 - Flags: review?
Attachment #284153 - Flags: review? → review?(benjamin)
Comment on attachment 284153 [details] [diff] [review]
patch to use EXPAND_LIBNAME_PATH

This doesn't need approval, it's NPOB
Attachment #284153 - Flags: review?(benjamin) → review+
given the NPOB from bsmedberg and the r+, asking for checkin
Keywords: checkin-needed
Assignee: nobody → vamposdecampos
Checking in extensions/python/dom/src/Makefile.in;
/cvsroot/mozilla/extensions/python/dom/src/Makefile.in,v  <--  Makefile.in
new revision: 1.4; previous revision: 1.3
done
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: