I haven't been able to build libpyxpcom on OS X 10.4, with Xcode 2.4 or
2.2. I did try the workaround for building with 2.4 at
http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites, even
though the build didn't fail with that particular error.  I am building
xulrunner with the pyxpcom extension.  Building xulrunner by itself
works fine.

This is my .mozconfig:

mk_add_options [EMAIL PROTECTED]@/[EMAIL PROTECTED]@
. $topsrcdir/xulrunner/config/mozconfig
ac_add_options --disable-javaxpcom
ac_add_options --disable-tests
ac_add_options --enable-extensions=python/xpcom,default


This is the build error:

rm -f libpyxpcom.dylib
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
-fpascal-strings -no-cpp-precomp -fno-common -fshort-wchar
-I/Developer/Headers/FlatCarbon -pipe  -DNDEBUG -DTRIMMED -O
-DPYTHON_SO=\"libpython2.3.so\" -fPIC  -o libpyxpcom.dylib
ErrorUtils.o PyGBase.o PyGModule.o PyGStub.o PyGInputStream.o
PyGWeakReference.o PyIClassInfo.o PyIComponentManager.o
PyIInputStream.o PyIEnumerator.o PyIID.o PyIInterfaceInfo.o
PyIInterfaceInfoManager.o PyISimpleEnumerator.o PyISupports.o
PyIVariant.o Pyxpt_info.o TypeObject.o VariantUtils.o dllmain.o
-Wl,-dead_strip -L../../../../dist/bin
-Wl,-executable_path,../../../../dist/bin -lxpcom
../../../../dist/bin/XUL -lobjc -L../../../../dist/bin
-L../../../../dist/lib -lplds4 -lplc4 -lnspr4
../../../../dist/lib/libxpcomglue_s.a -L../../../../dist/bin
-Wl,-executable_path,../../../../dist/bin -lxpcom  -dynamiclib
-install_name @executable_path/libpyxpcom.dylib -compatibility_version
1 -current_version 1  -framework Python
ld: -executable_path: multiply specified
/usr/bin/libtool: internal link edit command failed
make[5]: *** [libpyxpcom.dylib] Error 1

>From what I've been able to gather, "multipy specified" has to do with
universal binaries.  If that's the case, I only need a PPC build.  Is
there a trick to getting around this?

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to