I loaded a GNU Chess 5.07 source tar ball, but I have difficulty building it on my Ubuntu 10.04. First I got two compiler error messages:
Apparently GNU Chess defines getline as a pointer to the input function, but the current stdio.h already defines it a function, so there is a conflict there. So I just renamed the pointe 'mygetline'.
Then there is a prototype for an 'extern' function input_thread in common.h, while it occurs only in a single file, where it is defined as 'static'. OK, so I removed the 'static'.
But then it gets tougher. After installing the flex package I get to the linking stage, and I get some dozen of undefined references, mostly to pgn_* symbols, but also to flex-related stuff such as yylex.
Does anyone know how to build GNU Chess 5.07 on a Linux system?
Building GNU Chess 5.07
Moderators: hgm, Rebel, chrisw
-
- Posts: 27796
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
-
- Posts: 7218
- Joined: Mon May 27, 2013 10:31 am
Re: Building GNU Chess 5.07
yylex is automatically generated c code. So I don't think you can or should change that.
-
- Posts: 27796
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Building GNU Chess 5.07
Well, never mind. I found a binary package.