Error building ocserv 0.2.2

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Fri Dec 6 03:50:35 EST 2013


On Thu, Dec 5, 2013 at 10:38 PM, Per Juborg <per at juborg.nu> wrote:
> Hi
> I'm having problems with building OCServ on my Mac OSX 10.8.5
> I get the following message when running make:
> In file included from main.c:30:
> ./system.h:28:1: error: unknown type name 'sighandler_t'
> sighandler_t ocsignal(int signum, sighandler_t handler);

Hello,
 Simply replace sighandler_t with sig_t on that system. I've added a
configure check in master to prevent that issue in the future.

> #define LIST_HEAD(name) \
>         ^
> /usr/include/sys/queue.h:373:9: note: previous definition is here
> #define LIST_HEAD(name, type)                                           \
>         ^

edit src/ccan/list/list.h and add the following:
#undef LIST_HEAD
after the last include. Does that fix the issue you see?

regards,
Nikos



More information about the openconnect-devel mailing list