Error building ocserv 0.2.2

Per Juborg per at juborg.nu
Thu Dec 5 16:38:55 EST 2013


Hi

I'm having problems with building OCServ on my Mac OSX 10.8.5

I get the following message when running make:

make  all-recursive
Making all in gl
make  all-recursive
make[4]: Nothing to be done for `all-am'.
Making all in src
Making all in pcl
make[3]: Nothing to be done for `all'.
  CC       main.o
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);
^
./system.h:28:35: error: unknown type name 'sighandler_t'
sighandler_t ocsignal(int signum, sighandler_t handler);
                                  ^
In file included from main.c:35:
In file included from ./script-list.h:24:
In file included from ./main.h:28:
In file included from ./vpn.h:211:
In file included from ./tun.h:26:
./ccan/list/list.h:126:9: warning: 'LIST_HEAD' macro redefined
#define LIST_HEAD(name) \
        ^
/usr/include/sys/queue.h:373:9: note: previous definition is here
#define LIST_HEAD(name, type)                                           \
        ^
main.c:706:7: warning: 'daemon' is deprecated: first deprecated in OS X 10.5 [-Wdeprecated-declarations]
                if (daemon(0, 0) == -1) {
                    ^
/usr/include/stdlib.h:292:6: note: 'daemon' declared here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5...
         ^
2 warnings and 2 errors generated.
make[3]: *** [main.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Have I missed something when running configure or are there flags that have to be set specifically for building on OSX?

/Per



More information about the openconnect-devel mailing list