[gambit-list] Anything particular needed to compile on FreeBSD? 'make' on the compilation of the ~fourth file gives: error: 'openpty' was not declared in this scope

Marc Feeley feeley at iro.umontreal.ca
Fri Feb 22 08:46:33 EST 2013


On 2013-02-21, at 11:26 PM, Mikael <mikael.rcv at gmail.com> wrote:

> The compilation error is:
> 
> error: 'openpty' was not declared in this scope
> 
> 
> This was tried on latest FreeBSD 9.0 AMD64 with the gcc46 package installed, i.e., pkg_add -r gcc46; CXX=/usr/local/bin/g++46 ./configure --enable-cplusplus --enable-single-host; make .
> 
> I tried with both the source for 4.6.6 and 4.6.7 as found on the repo today.
> 
> 
> This entire prob made me think maybe there's some operating system headers file package or alike that I missed, though I would guess not as Gambit not has any dependencies apart from what's really core to a C compiler and standard OS and the configure step should have failed if there's any issues with those.
> 
> Also, googling for it does not make me anywiser - apparently lots of people speak about crosscompat issues, which is unrelated to the question of it being defined at all, which this error seems to regard.
> 
> 
> Can anyone else reproduce this problem?
> 
> Any clue what it might be / how to resolve it?
> 

Try to add

#include <sys/types.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <libutil.h>

at the top of os.h .  If that works, then some of the header file dependencies in os.h need to be fixed.

Marc




More information about the Gambit-list mailing list