[Domterm-discuss] Installing on Macos possible?
Per Bothner
per at bothner.com
Tue Jun 26 12:18:55 PDT 2018
On 06/26/2018 11:57 AM, hak wrote:
> hi per,
> —— errors from make ——
> In file included from server.c:1:
> ./server.h:227:74: error: unexpected ';' before ')'
> extern int process_options(int argc, char **argv, struct options *options;);
> ^
> server.c:120:9: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
> daemon(1, 0);
> ^
> /usr/include/stdlib.h:298:6: note: 'daemon' has been explicitly marked deprecated here
> int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
> ^
> server.c:595:30: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
> opts.browser_command = browser_specifier;
> ^ ~~~~~~~~~~~~~~~~~
> server.c:1187:13: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
> if (daemon(1, 0) != 0)
> ^
> /usr/include/stdlib.h:298:6: note: 'daemon' has been explicitly marked deprecated here
> int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
> ^
> server.c:1427:37: warning: more '%' conversions than data arguments [-Wformat]
> "<base href='http://%s:%d/'/>\n" // FIXME no longer needed?
> ~^
> server.c:1496:43: error: use of undeclared identifier 'SOCK_CLOEXEC'
> if ((fd = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0)) == -1)
> ^
> 4 warnings and 2 errors generated.
> make[2]: *** [ldomterm-server.o] Error 1
> make[1]: *** [bin/domterm] Error 2
> make: *** [all-recursive] Error 1
I checked in fixes for the errors and some of the warnings.
Could you try again?
I t may make sense to replace daemon by lws_daemon. I'll get back to you
about that and the other issues shortly.
--
--Per Bothner
per at bothner.com http://per.bothner.com/
More information about the Domterm-discuss
mailing list