[Domterm-discuss] Installing on Macos possible?

hak hak at hakdir.com
Tue Jun 26 12:40:00 PDT 2018


seems like the patch worked and that there is a new error

make clean
git apply util-env.txt
mkdri tmp-for-jar
make 2> err


——— cat err

protocol.c:391:17: warning: implicit declaration of function 'execvpe' is invalid in C99 [-Wimplicit-function-declaration]
            if (execvpe(argv[0], argv, nenv) < 0) {
                ^
protocol.c:497:27: error: use of undeclared identifier 'HOST_NAME_MAX'
                char hbuf[HOST_NAME_MAX+1];
                          ^
protocol.c:1082:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
             && lws_write(wsi, p0, written, LWS_WRITE_BINARY) != written)
                               ^~
/usr/local/Cellar/libwebsockets/2.4.2_2/include/libwebsockets.h:4185:43: note: passing argument to parameter 'buf' here
lws_write(struct lws *wsi, unsigned char *buf, size_t len,
                                          ^
protocol.c:1437:26: warning: implicit declaration of function 'accept4' is invalid in C99 [-Wimplicit-function-declaration]
            int sockfd = accept4(socket, &sa, &slen, SOCK_CLOEXEC);
                         ^
protocol.c:1437:54: error: use of undeclared identifier 'SOCK_CLOEXEC'
            int sockfd = accept4(socket, &sa, &slen, SOCK_CLOEXEC);
                                                     ^
3 warnings and 2 errors generated.
make[2]: *** [ldomterm-protocol.o] Error 1
make[1]: *** [bin/domterm] Error 2
make: *** [all-recursive] Error 1

> On 26 Jun 2018, at 21:34, Per Bothner <per at bothner.com> wrote:
> 
> On 06/26/2018 12:30 PM, hak wrote:
>> new error :-)
>> ---
>> utils.c:459:38: error: use of undeclared identifier 'environ'; did you mean 'ev_run'?
>>     char **p = envarray ? envarray : environ;
>>                                      ^~~~~~~
> 
> Does the attached patch (just adding a declaration for environ) fix it?
> 
> -- 
> 	--Per Bothner
> per at bothner.com   http://per.bothner.com/
> <util-env.txt>



More information about the Domterm-discuss mailing list