Building GNU Chess 5.07

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Building GNU Chess 5.07

Post by hgm »

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?
Henk
Posts: 7218
Joined: Mon May 27, 2013 10:31 am

Re: Building GNU Chess 5.07

Post by Henk »

yylex is automatically generated c code. So I don't think you can or should change that.
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Building GNU Chess 5.07

Post by hgm »

Well, never mind. I found a binary package.