I have tried the new TracPerforce 0.4.2 install
with the same results as below. I was able to successsfully build the p4python
P4Client.so using the p4api for /r05.2/bin.linux24x86-rhel3 but am unclear on
how I can use these libs for the PyPerforce build.
From your advice below, it appears I need to
build PyPerforce/src/perforce/api.so using the same version of the api as
above? Can you provide direction on how to do that?
Thanks
Mike
>Mike.Gee at bell.ca
wrote:
>> Thanks Lewis.
>>
>> $ python -c "import perforce.api; print perforce.api.version"
>>
>> output:
>>
>> Traceback (most recent call last):
>> File "<string>", line 1, in ?
>> File "build/bdist.linux-i686/egg/perforce/__init__.py", line 48, in ?
>> File "build/bdist.linux-i686/egg/perforce/api.py", line 7, in ?
>> File "build/bdist.linux-i686/egg/perforce/api.py", line 6, in __bootstrap__
>> ImportError: /root/.python-eggs/PyPerforce-0.3a1-py2.4-linux-i686.egg-tmp/perforce/api.so: undefined symbol: _ZN10ClientUser16SetOutputCharsetEi
>>
>> This seems consistent regardless if I build PyPerforce from src or install the binary egg.
>
>I think the problem here is that the p4api libraries for your platform
>that are bundled with the PyPerforce source don't match up with those
>used to compile python and the extension module.
>
>Linux platforms come with two flavours of p4api libraries: PIC (position
>independent code) and non-PIC. Check the command line options passed to
>gcc when you compile the extension module for '-fPIC' and try replacing
>the p4api libraries with the appropriate flavour.
>
>Hope that helps.
>
>Cheers,
>Lewis.
>
>--
>Lewis Baker I-SiTE
>Software Engineer 3D Laser Imaging
>Email : lewis at isite3d.com.au http://www.isite3d.com.au/
>> Thanks Lewis.
>>
>> $ python -c "import perforce.api; print perforce.api.version"
>>
>> output:
>>
>> Traceback (most recent call last):
>> File "<string>", line 1, in ?
>> File "build/bdist.linux-i686/egg/perforce/__init__.py", line 48, in ?
>> File "build/bdist.linux-i686/egg/perforce/api.py", line 7, in ?
>> File "build/bdist.linux-i686/egg/perforce/api.py", line 6, in __bootstrap__
>> ImportError: /root/.python-eggs/PyPerforce-0.3a1-py2.4-linux-i686.egg-tmp/perforce/api.so: undefined symbol: _ZN10ClientUser16SetOutputCharsetEi
>>
>> This seems consistent regardless if I build PyPerforce from src or install the binary egg.
>
>I think the problem here is that the p4api libraries for your platform
>that are bundled with the PyPerforce source don't match up with those
>used to compile python and the extension module.
>
>Linux platforms come with two flavours of p4api libraries: PIC (position
>independent code) and non-PIC. Check the command line options passed to
>gcc when you compile the extension module for '-fPIC' and try replacing
>the p4api libraries with the appropriate flavour.
>
>Hope that helps.
>
>Cheers,
>Lewis.
>
>--
>Lewis Baker I-SiTE
>Software Engineer 3D Laser Imaging
>Email : lewis at isite3d.com.au http://www.isite3d.com.au/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-dev
-~----------~----~----~----~------~----~------~--~---
