8 messages in com.perforce.p4python[p4python] "Symbol not found: _FSRefM...
FromSent OnAttachments
Daryl Spitzer05 Apr 2008 13:28 
Robert Cowham05 Apr 2008 16:45 
Daryl Spitzer07 Apr 2008 07:49 
Daryl Spitzer07 Apr 2008 10:01 
Robert Cowham07 Apr 2008 15:04 
Daryl Spitzer01 May 2008 08:51 
Robert Cowham01 May 2008 09:38 
Daryl Spitzer02 May 2008 10:47 
Subject:[p4python] "Symbol not found: _FSRefMakePath" in P4API.so on Mac OSX 10.5.2 PPC
From:Daryl Spitzer (dary@gmail.com)
Date:04/07/2008 07:49:21 AM
List:com.perforce.p4python

Done. Thanks.

(I'll report back on what I learn.)

On Sat, Apr 5, 2008 at 4:45 PM, Robert Cowham <robert at vaccaperna.co.uk>
wrote:

This version of P4Python is now supported by Perforce so I would copy support on this one.

Regards Robert

-----Original Message----- From: p4python-bounces at perforce.com [mailto:p4python-bounces at perforce.com] On Behalf Of Daryl Spitzer Sent: 05 April 2008 21:29 To: p4python at perforce.com Subject: [p4python] "Symbol not found: _FSRefMakePath" in P4API.so on Mac OSX 10.5.2 PPC

I installed P4Python on my PowerBook G4 running Mac OS X 10.5.2, and get the following when I do an "import P4":

import P4

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2 .5/site-packages/P4.py", line 185, in <module> import P4API ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/p ython2.5/site-packages/P4API.so, 2): Symbol not found: _FSRefMakePath Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2. 5/site-packages/P4API.so Expected in: dynamic lookup

I thought perhaps I hadn't properly uninstalled after my previous attempt to install P4Python. (I first got it from http://public.perforce.com/guest/robert_cowham/perforce/API/py thon/index.html.) I deleted all the P4 files from (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2 .5/site-packages/:

-rw-r--r-- 1 darylspitzer admin 12876 Feb 20 14:38 P4.py -rw-r--r-- 1 darylspitzer admin 17184 Apr 5 13:11 P4.pyc -rwxr-xr-x 1 darylspitzer admin 843276 Apr 5 13:03 P4API.so -rw-r--r-- 1 darylspitzer admin 1048 Apr 5 13:11 P4Python-2007.3-py2.5.egg-info

And didn't get any warnings the second time I built. Though it now occurs to me that I probably didn't see the warnings because it wasn't making "clean". Here are the warnings I saw the first time I built:

g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5/P4API.o build/temp.macosx-10.3-fat-2.5/PythonClientAPI.o build/temp.macosx-10.3-fat-2.5/PythonClientUser.o build/temp.macosx-10.3-fat-2.5/SpecMgr.o build/temp.macosx-10.3-fat-2.5/P4Result.o -Lp4api-2007.3.143793/ -Lp4api-2007.3.143793/lib -lclient -lrpc -lsupp -o build/lib.macosx-10.3-fat-2.5/P4API.so ld warning: in p4api-2007.3.143793/lib/libclient.a, file is not of required architecture ld warning: in p4api-2007.3.143793/lib/librpc.a, file is not of required architecture ld warning: in p4api-2007.3.143793/lib/libsupp.a, file is not of required architecture ld warning: ClientUser::OutputError(char*) has different visibility (hidden) in p4api-2007.3.143793/lib/libclient.a(clientuser.o) and (default) in build/temp.macosx-10.3-fat-2.5/PythonClientUser.o ld warning: ClientUser::OutputInfo(char, char*)has different visibility (hidden) in p4api-2007.3.143793/lib/libclient.a(clientuser.o) and (default) in build/temp.macosx-10.3-fat-2.5/PythonClientUser.o ld warning: ClientUser::OutputBinary(char*, int)has different visibility (hidden) in p4api-2007.3.143793/lib/libclient.a(clientuser.o) and (default) in build/temp.macosx-10.3-fat-2.5/PythonClientUser.o ld warning: ClientUser::OutputText(char*, int)has different visibility (hidden) in p4api-2007.3.143793/lib/libclient.a(clientuser.o) and (default) in build/temp.macosx-10.3-fat-2.5/PythonClientUser.o ld warning: ClientUser::Help(char* const*)has different visibility (hidden) in p4api-2007.3.143793/lib/libclient.a(clientuser.o) and (default) in build/temp.macosx-10.3-fat-2.5/PythonClientUser.o

I installed using ftp://ftp.perforce.com/perforce/r07.3/tools/p4python.tgz and ftp://ftp.perforce.com/perforce/r07.3/bin.macosx104ppc/p4api.tar.