CiWiki doesn't compile on FreeBSD out of the box
Personnal or familly wiki with low ressource requirement.
Brought to you by:
redonnet
CiWiki 1.7.3 didn't compile for me on FreeBSD 9.0-RELEASE with the following error message:
dbohdan@archimedes ~/s/ciwiki-1.7.3>make
make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/matchbox\" -DPREFIX=\"/usr/local\" -g -Wall -fno-strict-aliasing -g -O2 -MT http.o -MD -MP -MF .deps/http.Tpo -c -o http.o http.c
http.c: In function 'sigint':
http.c:552: warning: implicit declaration of function 'signal'
http.c:552: error: 'SIGINT' undeclared (first use in this function)
http.c:552: error: (Each undeclared identifier is reported only once
http.c:552: error: for each function it appears in.)
http.c:552: error: 'SIG_DFL' undeclared (first use in this function)
http.c:553: warning: implicit declaration of function 'kill'
http.c: In function 'sigterm':
http.c:568: error: 'SIGTERM' undeclared (first use in this function)
http.c:568: error: 'SIG_DFL' undeclared (first use in this function)
http.c: In function 'http_server':
http.c:602: error: 'SIGINT' undeclared (first use in this function)
http.c:605: error: 'SIGTERM' undeclared (first use in this function)
*** Error code 1
Stop in /usr/home/dbohdan/software/ciwiki-1.7.3/src.
*** Error code 1
Stop in /usr/home/dbohdan/software/ciwiki-1.7.3.
*** Error code 1
Stop in /usr/home/dbohdan/software/ciwiki-1.7.3.
To fix this problem I had to add
#include <signal.h>
in src/http.c.
Fixed Sept 2014