[Domterm-discuss] Installing on Macos possible?
hak
hak at hakdir.com
Tue Jun 26 12:30:48 PDT 2018
new error :-)
---
utils.c:459:38: error: use of undeclared identifier 'environ'; did you mean 'ev_run'?
char **p = envarray ? envarray : environ;
^~~~~~~
ev_run
/usr/local/include/ev.h:639:18: note: 'ev_run' declared here
EV_API_DECL int ev_run (EV_P_ int flags EV_CPP (= 0));
^
utils.c:459:25: warning: pointer type mismatch ('char **' and 'int (*)(struct ev_loop *, int)') [-Wpointer-type-mismatch]
char **p = envarray ? envarray : environ;
^ ~~~~~~~~ ~~~~~~~
1 warning and 1 error generated.
make[2]: *** [ldomterm-utils.o] Error 1
make[1]: *** [bin/domterm] Error 2
make: *** [all-recursive] Error 1
> On 26 Jun 2018, at 21:18, Per Bothner <per at bothner.com> wrote:
>
> 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