Hi Pokersource Folk,

I have run into the same problem as the one in a thread from  
September of 2006 [https://mail.gna.org/public/pokersource-users/ 
2006-09/msg00009.html]. However, there wasn't really an answer in  
that thread so I'm re-posting the question. I do have a little more  
detail that may help lead to an answer.

First, here is the error when I attempt to make pypoker-eval-134.0 on  
Mac OS X 10.4.10:

----------------------------------------------------------------------
#> make

/bin/sh ./libtool --tag=CC --mode=link gcc  -pipe -O3 -Wall -Wpointer- 
arith -Wstrict-prototypes   -o _pokereval_2_4.la -rpath /usr/local/ 
lib/python2.4/site-packages -module -no-undefined -version-info 1:0:0  
_pokereval_2_4_la-pypokereval.lo -L/usr/local/lib -lpoker-eval

gcc  -o .libs/_pokereval_2_4.1.0.0.so -bundle  .libs/ 
_pokereval_2_4_la-pypokereval.o  -L/usr/local/lib /usr/local/lib/ 
libpoker-eval.dylib

/usr/bin/ld: Undefined symbols:
_PyArg_ParseTuple
_PyArg_ParseTupleAndKeywords
_PyErr_Format
_PyErr_Occurred
_PyErr_SetString
_PyExc_RuntimeError
_PyExc_TypeError
_PyInt_AsLong
_PyInt_Type
_PyList_Append
_PyList_GetItem
_PyList_New
_PyList_Size
_PyList_Type
_PyString_AsString
_PyString_Type
_PyType_IsSubtype
_Py_BuildValue
_Py_InitModule4

collect2: ld returned 1 exit status

make: *** [_pokereval_2_4.la] Error 1
----------------------------------------------------------------------

If I edit the gcc line above and then run it manually I can get that  
one line to succeed without an error. Here is the edit I make, I  
simply add the path to my python dynamic library (which happens to be  
in /opt because I built python 2.4 from the MacPorts tree):

gcc  -o .libs/_pokereval_2_4.1.0.0.so -bundle  .libs/ 
_pokereval_2_4_la-pypokereval.o  -L/usr/local/lib /opt/local/lib/ 
libpython2.4.4.dylib /usr/local/lib/libpoker-eval.dylib

That edited line will compile, however, I have _not_ been able to  
figure out how to edit my configure file or Makefile to get it to add  
that path. Any ideas?

Thanks,

   --Noah--


_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to