Last few lines of the output before the error:
Code:
make[3]: Entering directory '/tmp/gltron-0.70/lua/src/lib'
source='lauxlib.c' object='lauxlib.o' libtool=no \
depfile='.deps/lauxlib.Po' tmpdepfile='.deps/lauxlib.TPo' \
depmode=gcc3 /bin/sh ../../../depcomp \
gcc -I. -I. -ansi -pedantic -Wall -I./.. -I../../../lua/include -c `test -f lauxlib.c || echo './'`lauxlib.c
source='lbaselib.c' object='lbaselib.o' libtool=no \
depfile='.deps/lbaselib.Po' tmpdepfile='.deps/lbaselib.TPo' \
depmode=gcc3 /bin/sh ../../../depcomp \
gcc -I. -I. -ansi -pedantic -Wall -I./.. -I../../../lua/include -c `test -f lbaselib.c || echo './'`lbaselib.c
source='ldblib.c' object='ldblib.o' libtool=no \
depfile='.deps/ldblib.Po' tmpdepfile='.deps/ldblib.TPo' \
depmode=gcc3 /bin/sh ../../../depcomp \
gcc -I. -I. -ansi -pedantic -Wall -I./.. -I../../../lua/include -c `test -f ldblib.c || echo './'`ldblib.c
source='liolib.c' object='liolib.o' libtool=no \
depfile='.deps/liolib.Po' tmpdepfile='.deps/liolib.TPo' \
depmode=gcc3 /bin/sh ../../../depcomp \
gcc -I. -I. -ansi -pedantic -Wall -I./.. -I../../../lua/include -c `test -f liolib.c || echo './'`liolib.c
In file included from liolib.c:19:
/usr/include/unistd.h:1041:20: error: unknown type name ‘intptr_t’
1041 | extern void *sbrk (intptr_t __delta) __THROW;
| ^~~~~~~~
make[3]: *** [Makefile:154: liolib.o] Error 1
make[3]: Leaving directory '/tmp/gltron-0.70/lua/src/lib'
make[2]: *** [Makefile:212: all-recursive] Error 1
make[2]: Leaving directory '/tmp/gltron-0.70/lua/src'
make[1]: *** [Makefile:112: all-recursive] Error 1
make[1]: Leaving directory '/tmp/gltron-0.70/lua'
make: *** [Makefile:252: all-recursive] Error 1
This is only my second time building anything from source so I'm not too sure what to look for in this error message. I ran configure with --prefix=/usr/local/games before running make. I'm running Slackware -current and I got the GLTron source from the sourceforge link available here:
http://gltron.org/download.php