Kenneth McDonald | 27 Jul 2006 07:58
Picon
Favicon

-lpython2.4 build error (but I think I'm close!)

After installing a couple of libraries needed for the build, I think I'm 
very close to getting my moz/pyxpcom build working. Here is output 
before and reporting the error:

c++ -o xpcom.o -c  -DMOZILLA_INTERNAL_API -DOSTYPE=\"Darwin8.7.1\" 
-DOSARCH=\"Darwin\" -DBUILD_ID=0000000000 
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 
-I../../../../dist/include/xpcom -I../../../../dist/include/string 
-I../../../../dist/include/pyxpcom -I../../../../dist/include 
-I../../../../dist/include/nspr       -fPIC   -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   
-DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
-Wp,-MD,.deps/xpcom.pp xpcom.cpp
rm -f lib_xpcom.dylib
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 -fpascal-strings -no-cpp-precomp 
-fno-common -fshort-wchar -I/Developer/Headers/FlatCarbon -pipe  
-DNDEBUG -DTRIMMED -O -fPIC  -o lib_xpcom.dylib  ErrorUtils.o PyGBase.o 
PyGModule.o PyGStub.o PyGInputStream.o PyGWeakReference.o PyIClassInfo.o 
PyIComponentManager.o PyIComponentManagerObsolete.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 xpcom.o      -Wl,-dead_strip 
-dynamiclib -install_name  <at> executable_path/lib_xpcom.dylib 
-compatibility_version 1 -current_version 1 -L../../../../dist/bin 
-lxpcom -lxpcom_core -L../../../../dist/bin -L../../../../dist/lib 
(Continue reading)

Shane Caraveo | 27 Jul 2006 17:54
Picon

Re: -lpython2.4 build error (but I think I'm close!)

Kenneth McDonald wrote:
> After installing a couple of libraries needed for the build, I think I'm 
> very close to getting my moz/pyxpcom build working. Here is output 
> before and reporting the error:

> -L/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config 
> -lpython2.4 /usr/bin/libtool: can't locate file for: -lpython2.4
> /usr/bin/libtool: file: -lpython2.4 is not an object file (not allowed 
> in a library)

> Is this a consequence of the "Frameworks" structure OS X uses? 

Yes, and the above library usage is completely wrong.  What branch was 
this?  You probably need a patch we use to build on osx.  I'll send it 
to you separately, and Trent can send it out to anyone else who needs it.

Trent, it's MOZILLA_1_8/pyxpcom_build.patch

Shane
Kenneth McDonald | 28 Jul 2006 04:24
Picon
Favicon

Re: -lpython2.4 build error (but I think I'm close!)

Shane Caraveo wrote:
> Kenneth McDonald wrote:
>> After installing a couple of libraries needed for the build, I think 
>> I'm very close to getting my moz/pyxpcom build working. Here is 
>> output before and reporting the error:
>
>> -L/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config 
>> -lpython2.4 /usr/bin/libtool: can't locate file for: -lpython2.4
>> /usr/bin/libtool: file: -lpython2.4 is not an object file (not 
>> allowed in a library)
>
>> Is this a consequence of the "Frameworks" structure OS X uses? 
>
> Yes, and the above library usage is completely wrong.  What branch was 
> this?  You probably need a patch we use to build on osx.  I'll send it 
> to you separately, and Trent can send it out to anyone else who needs it.
>
> Trent, it's MOZILLA_1_8/pyxpcom_build.patch
>
> Shane
>
Applied the patch, but unfortunately still got what seems to be the same 
error:

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 -fpascal-strings -no-cpp-precomp 
-fno-common -fshort-wchar -I/Developer/Headers/FlatCarbon -pipe  
-DNDEBUG -DTRIMMED -O -fPIC  -o lib_xpcom.dylib  ErrorUtils.o PyGBase.o 
PyGModule.o PyGStub.o PyGInputStream.o PyGWeakReference.o PyIClassInfo.o 
(Continue reading)


Gmane