尝试在此视频上安装 Florist 但 ./Configure --prefix=/usr/gnat 之后的安装过程我没有走
checking how to run the C preprocessor ... /lib/cpp
checking for aio.h. .. no
checking for dirent.h ... no
checking for errno.h ... no
checking for fcntl.h ... no
checking for grp.h. .. no
checking for locale.h ... no
checking for mqueue.h ... no
...
Socket interface Looks like BSD 4.3
checking for getaddrinfo ... no
configure: WARNING: No getaddrinfo provided by the OS. Will use our own version.
checking for pthread_self in-lpthread ... yes
checking for aio_read in-laio ... no
checking for clock_gettime in-lposix4 ... no
checking for clock_gettime in-lrt ... yes
checking for gethostbyname in-lnsl ... yes
checking for t_bind in-lnsl ... no
checking for t_bind in-lnsl_s ... no
checking for accept in-lsocket ... no
checking for h_errno in-lresolv ... no
using LIBS =-lnsl-lrt-lpthread
checking for egrep ... grep-E
一般来说,所有“不”有什么问题?GNAT and florist (2013) 如果继续,则去掉以下错误
ebanat@ebanat:~/Program/florist$ make -j 4
gcc -c -O2 posix-macros.c
gcc -c -O2 posix-macros-sockets.c
gcc -O2 -DVERSION="\"Florist-2013 (20130319)\"" -DLIBS="\"-lnsl -lrt -lpthread \"" -o c-posix c-posix.c -lnsl -lrt -lpthread
gnatprep posix-implementation.gpb posix-implementation.adb gnatprep.config -c -r
In file included from pconfig.h:10:0,
from posix-macros-sockets.c:13:
addrinfo.h:18:3: error: unknown type name 'size_t'
addrinfo.h:43:42: error: unknown type name 'size_t'
addrinfo.h:43:58: error: unknown type name 'size_t'
addrinfo.h:44:46: error: unknown type name 'size_t'
In file included from pconfig.h:10:0,
from c-posix.c:56:
addrinfo.h:18:3: error: unknown type name 'size_t'
In file included from pconfig.h:10:0,
from posix-macros.c:45:
addrinfo.h:18:3: error: unknown type name 'size_t'
addrinfo.h:43:42: error: unknown type name 'size_t'
addrinfo.h:43:58: error: unknown type name 'size_t'
addrinfo.h:44:46: error: unknown type name 'size_t'
addrinfo.h:43:42: error: unknown type name 'size_t'
addrinfo.h:43:58: error: unknown type name 'size_t'
addrinfo.h:44:46: error: unknown type name 'size_t'
In file included from /usr/include/errno.h:29:0,
from c-posix.c:57:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
In file included from /usr/include/unistd.h:26:0,
from posix-macros.c:46:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [posix-macros-sockets.o] Ошибка 1
make: *** Ожидание завершения заданий...
make: *** [c-posix] Ошибка 1
make: *** [posix-macros.o] Ошибка 1