[EMAIL PROTECTED] 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  : [EMAIL PROTECTED]         http://www.isite3d.com.au/
begin:vcard
fn:Lewis Baker
n:Baker;Lewis
org:I-SiTE 3D Laser Imaging;Software Development Team
adr:;;63 Conyngham St.;Glenside;SA;5065;Australia
email;internet:[EMAIL PROTECTED]
title:Software Engineer
tel;work:+61 8 8338 9222
note:OpenPGP Key ID: 0x60D0F558
x-mozilla-html:TRUE
url:http://www.isite3d.com
version:2.1
end:vcard

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to