Hi,

I have updated to Snow Leopard, and now my Python is at version 2.6. So, I am 
once again trying to rebuild STAF Python support, and am stuck again with 
similar errors. I have made a guess as to what the environment variables are, 
but it is not working for me. Here is my guess:

export PROJECTS=python
export BUILD_ARCH=i386
export BUILD_TYPE=retail
export 
LD_LIBRARY_PATH=/Users/admin/Documents/staf/rel/macosx/staf/retail/lib:/Users/admin/Documents/staf/rel/macosx/staf/retail/lib/java12:
export OSTYPE=darwin9.0
export OS_NAME=macosx
export STAFCONVDIR=/Users/admin/Documents/staf/rel/macosx/staf/retail/codepage
export STAFHome=/Users/admin/Documents/staf/rel/macosx/staf/retail
export STAF_USE_IPV6=
export STAF_USE_SSL=
export PYTHON_BULD_V23=0
export PYTHON_BULD_V25=0
export PYTHON_BULD_V26=1
export PYTHON_V26_ROOT=/System/Library/Frameworks/Python.framework/Versions/2.6
export PYTHON_V26_INCLUDEDIRS=$PYTHON_V26_ROOT/include/python2.6
export PYTHON_V26_LIBDIRS=$PYTHON_V26_ROOT/lib/python2.6
export PYTHON_V26_LIBS=python2.6


And here is my error:

office-dhcp-217:staf admin$ make
*** Compiling PYSTAF.o ***
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:9:20: 
error: Python.h: No such file or directory
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:23: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:24: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:25: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:26: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:27: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:28: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:29: 
error: expected initializer before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:31: 
error: ‘PyMethodDef’ does not name a type
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp: In 
function ‘void initPYSTAF()’:
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:57: 
error: ‘PyObject’ was not declared in this scope
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:57: 
error: ‘module’ was not declared in this scope
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:57: 
error: ‘PYSTAF_Methods’ was not declared in this scope
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:57: 
error: ‘Py_InitModule’ was not declared in this scope
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp: At 
global scope:
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:65: 
error: expected constructor, destructor, or type conversion before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:78: 
error: expected constructor, destructor, or type conversion before ‘*’ token
/Users/admin/Documents/staf/src/staf/lang/python/python23/../PYSTAF.cpp:195: 
error: expected `}' at end of input
make: *** 
[/Users/admin/Documents/staf/obj/macosx/staf/retail/lang/python/python23/PYSTAF.o]
 Error 1


Thanks for your help,
Cynthia



On Jul 28, 2009, at 7:17 PM, David Bender wrote:

> 
> In STAF 3.3.4 the environment variables for building STAF were changed. 
> 
> You need to set the following: 
> 
> PYTHON_BULD_V23=0 
> PYTHON_BULD_V25=1 
> PYTHON_V25_ROOT=/System/Library/Frameworks/Python.framework/Versions/2.5 
> PYTHON_V25_INCLUDEDIRS=$(PYTHON_V25_ROOT)/include/python2.5 
> PYTHON_V25_LIBDIRS=$(PYTHON_V25_ROOT)/lib/python2.5 
> PYTHON_V25_LIBS=python2.5 
> 
> I'll open a bug to update the STAF Developer's Guide with this information.
>  
> Thanks, 
> David
> 
> David Bender 
> STAF/STAX Development 
> IBM Software Group, WPLC 
>       11501 Burnet Rd. 
> Bldg. 903-5B002 
> Austin, TX 78758-3400 
>       Phone (T/L): 1-512-286-5315 (363-5315) 
> ITN: 23635315 
> Email: bda...@us.ibm.com 
>  
> 
> 
> 
> 
> 
> Cynthia Sadler <cynthia.sad...@unboundid.com>
> 07/28/2009 04:27 PM
> 
> To
> staf-users@lists.sourceforge.net
> cc
> Subject
> [staf-users] Errors building STAF Python on Mac OS X
> 
> 
> 
> 
> 
> Hi,
> 
> I am trying to build the STAF Python support on Mac OS X so it will be  
> compatible with Python 2.5. I have built the STAF core per  
> instructions. But when I run make for the Python project I get:
> 
> office-dhcp-252:staf admin$ make
> *** Compiling PYSTAF.o ***
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:9:20: error: Python.h: No such file or directory
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:23: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:24: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:25: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:26: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:27: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:28: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:29: error: expected initializer before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:31: error: ‘PyMethodDef’ does not name a type
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp: In function ‘void initPYSTAF()’:
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:57: error: ‘PyObject’ was not declared in this scope
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:57: error: ‘module’ was not declared in this scope
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:57: error: ‘PYSTAF_Methods’ was not declared in this scope
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:57: error: ‘Py_InitModule’ was not declared in this scope
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp: At global scope:
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:65: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:78: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:111: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:142: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:155: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:168: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> /Users/admin/Documents/staf/src/staf/lang/python/python23/../ 
> PYSTAF.cpp:181: error: expected constructor, destructor, or type  
> conversion before ‘*’ token
> make: *** [/Users/admin/Documents/staf/obj/macosx/staf/retail/lang/ 
> python/python23/PYSTAF.o] Error 1
> 
> 
> My environment is this:
> BUILD_ARCH=i386
> BUILD_TYPE=retail
> LD_LIBRARY_PATH=/Users/admin/Documents/staf/rel/macosx/staf/retail/ 
> lib:/Users/admin/Documents/staf/rel/macosx/staf/retail/lib/java12:
> OSTYPE=darwin9.0
> OS_NAME=macosx
> PATH=/Users/admin/Documents/staf/rel/macosx/staf/retail/bin:/Users/ 
> admin/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ 
> Home/bin:/opt/subversion/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ 
> bin:/usr/X11/bin
> PROJECTS=python
> PYTHON_INCLUDEDIRS=/System/Library/Frameworks/Python.framework/ 
> Versions/2.5/include/python2.5
> PYTHON_LIBDIRS=/System/Library/Frameworks/Python.framework/Versions/ 
> 2.5/lib/python2.5
> PYTHON_LIBS=python25
> PYTHON_ROOT=/System/Library/Frameworks/Python.framework/Versions/2.5
> STAFCONVDIR=/Users/admin/Documents/staf/rel/macosx/staf/retail/codepage
> STAFHome=/Users/admin/Documents/staf/rel/macosx/staf/retail
> STAF_USE_IPV6=
> STAF_USE_SSL=
> 
> Since my PYTHON_INCLUDEDIRS has Python.h, I'm not sure about the first  
> error. The errors are also curious that they initially reference the  
> src/staf/lang/python/python23/ directory instead of python25.
> 
> Any advice to get this going? Thanks.
> 
> Kind regards,
> Cynthia------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  
> http://p.sf.net/sfu/bobj-july_______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
> 
> <smime.p7s>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to