Life In 19x19
http://www.lifein19x19.com/

Kombilo 0.7.1
http://www.lifein19x19.com/viewtopic.php?f=9&t=5778
Page 3 of 3

Author:  macelee [ Sun Jul 14, 2013 1:43 am ]
Post subject:  Re: Kombilo 0.7.1

Dear Ulrich,

I have the following error while building the pattern search extension. This system is running a solaris type of the OS. But I do have a proper GCC 4.7 and boost 1.49 library installed.

</kombilo/lk]# python setup.py build_ext
running build_ext
building '_libkombilo' extension
......
gcc -fno-strict-aliasing -O -O2 -DHAVE_DB_185_H -D_REENTRANT -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include/ncurses -DNDEBUG -O -O2 -DHAVE_DB_185_H -D_REENTRANT -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include/ncurses -fPIC -I/opt/local/include/python2.7 -c search.cpp -o build/temp.solaris-2.11-i86pc.64bit-2.7/search.o -O3 -I. -fopenmp
In file included from search.cpp:27:0:
algos.h:354:46: error: expected ',' or '...' before numeric constant
algos.h:495:89: error: expected ',' or '...' before numeric constant
algos.h:515:81: error: expected ',' or '...' before numeric constant
error: command 'gcc' failed with exit status 1

All the three source lines contain a symbol 'CS'. I suspect this symbol might be redefined in boost. Do you have any suggestions?

Author:  ugoertz [ Tue Jul 16, 2013 11:18 pm ]
Post subject:  Re: Kombilo 0.7.1

macelee wrote:
I have the following error while building the pattern search extension. This system is running a solaris type of the OS. But I do have a proper GCC 4.7 and boost 1.49 library installed.

[...]

algos.h:515:81: error: expected ',' or '...' before numeric constant
error: command 'gcc' failed with exit status 1

All the three source lines contain a symbol 'CS'. I suspect this symbol might be redefined in boost. Do you have any suggestions?


It looks like CS is defined somewhere as a macro. I have never had this problem with boost, but unfortunately I do not have time to look into it at the moment. You could try to rename CS to something else in the three lines in algos.h and in the corresponding places in algos.cpp, where those methods are defined. This is not so elegant, but it will be only very few places which should be easy to find.

Best,

Ulrich

Page 3 of 3 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/