#6 CiWiki doesn't compile on FreeBSD out of the box

v1.0_(example)
open-fixed
nobody
None
5
2014-10-27
2014-01-09
Danyil Bohdan
No

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.

Discussion

    • status: open --> open-fixed
    • assigned_to: Jean-Pierre Redonnet
     
    • assigned_to: Jean-Pierre Redonnet --> nobody
     
  • Fixed Sept 2014