[p4python] "Symbol not found: _FSRefMakePath" in P4API.so on Mac OSX 10.5.2 PPC
Robert Cowham
robert at vaccaperna.co.uk
Sat Apr 5 16:45:32 PDT 2008
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.
>
> --
> Daryl Spitzer
> _______________________________________________
> p4python mailing list
> p4python at perforce.com
> http://maillist.perforce.com/mailman/listinfo/p4python
>
More information about the p4python
mailing list