[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
build errors on windows
|
From: |
Hannes Domani |
|
Subject: |
build errors on windows |
|
Date: |
Sun, 12 Feb 2023 16:46:42 +0000 (UTC) |
Hello
When trying to build poke on windows, I get some build errors, mainly for
termios, sigaction, and thread functions:
$ make -k
Making all in jitter
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/jitter'
make all-recursive
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/jitter'
Making all in gnulib-local
make[3]: Entering directory '/c/src/repos/poke/poke-3.0/b/jitter/gnulib-local'
make all-recursive
make[4]: Entering directory '/c/src/repos/poke/poke-3.0/b/jitter/gnulib-local'
make[5]: Entering directory '/c/src/repos/poke/poke-3.0/b/jitter/gnulib-local'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/c/src/repos/poke/poke-3.0/b/jitter/gnulib-local'
make[4]: Leaving directory '/c/src/repos/poke/poke-3.0/b/jitter/gnulib-local'
make[3]: Leaving directory '/c/src/repos/poke/poke-3.0/b/jitter/gnulib-local'
make[3]: Entering directory '/c/src/repos/poke/poke-3.0/b/jitter'
if test 'no' != no; then \
am__dir=. am__subdir_includes=''; \
case emacs/jitter-mode.elc in */*) \
am__dir=`echo 'emacs/jitter-mode.elc' | sed 's,/[^/]*$,,'`; \
am__subdir_includes="-L $am__dir -L ../../jitter/$am__dir"; \
esac; \
test -d "$am__dir" || /usr/bin/mkdir -p "$am__dir" || exit 1; \
no --batch \
\
$am__subdir_includes -L . -L ../../jitter \
--eval '(if (boundp (quote byte-compile-dest-file-function)) (setq
byte-compile-dest-file-function (lambda (_) "emacs/jitter-mode.elc")) (defun
byte-compile-dest-file (_) "emacs/jitter-mode.elc") )' \
-f batch-byte-compile '../../jitter/emacs/jitter-mode.el'; \
else :; fi
make[3]: Leaving directory '/c/src/repos/poke/poke-3.0/b/jitter'
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/jitter'
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/jitter'
Making all in gl
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/gl'
make all-recursive
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/gl'
make[3]: Entering directory '/c/src/repos/poke/poke-3.0/b/gl'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/c/src/repos/poke/poke-3.0/b/gl'
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/gl'
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/gl'
Making all in maps
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/maps'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/maps'
Making all in pickles
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/pickles'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/pickles'
Making all in gl-libpoke
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/gl-libpoke'
make all-recursive
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/gl-libpoke'
make[3]: Entering directory '/c/src/repos/poke/poke-3.0/b/gl-libpoke'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/c/src/repos/poke/poke-3.0/b/gl-libpoke'
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/gl-libpoke'
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/gl-libpoke'
Making all in libpoke
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/libpoke'
make all-am
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/libpoke'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/libpoke'
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/libpoke'
Making all in poke
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/poke'
make all-am
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/poke'
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-poke.o -MD -MP -MF
.deps/poke-poke.Tpo -c -o poke-poke.o `test -f 'poke.c' || echo
'../../poke/'`poke.c
../../poke/poke.c:29:10: fatal error: arpa/inet.h: No such file or directory
29 | #include <arpa/inet.h> /* For htonl */
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2696: poke-poke.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-pk-term.o -MD -MP -MF
.deps/poke-pk-term.Tpo -c -o poke-pk-term.o `test -f 'pk-term.c' || echo
'../../poke/'`pk-term.c
../../poke/pk-term.c: In function 'pk_term_init':
../../poke/pk-term.c:348:7: warning: implicit declaration of function
'update_screen_dimensions' [-Wimplicit-function-declaration]
348 | update_screen_dimensions ();
| ^~~~~~~~~~~~~~~~~~~~~~~~
../../poke/pk-term.c: In function 'pk_puts_paged':
../../poke/pk-term.c:410:24: error: storage size of 'old_termios' isn't known
410 | struct termios old_termios;
| ^~~~~~~~~~~
../../poke/pk-term.c:411:24: error: storage size of 'new_termios' isn't known
411 | struct termios new_termios;
| ^~~~~~~~~~~
../../poke/pk-term.c:419:9: warning: implicit declaration of function
'tcgetattr'; did you mean 'tigetstr'? [-Wimplicit-function-declaration]
419 | tcgetattr (0, &old_termios);
| ^~~~~~~~~
| tigetstr
../../poke/pk-term.c:420:53: error: invalid application of 'sizeof' to
incomplete type 'struct termios'
420 | memcpy (&new_termios, &old_termios, sizeof (struct termios));
| ^~~~~~
../../poke/pk-term.c:421:34: error: 'ICANON' undeclared (first use in this
function); did you mean 'ICM_ON'?
421 | new_termios.c_lflag &= ~(ICANON | ECHO);
| ^~~~~~
| ICM_ON
../../poke/pk-term.c:421:34: note: each undeclared identifier is reported only
once for each function it appears in
../../poke/pk-term.c:421:43: error: 'ECHO' undeclared (first use in this
function)
421 | new_termios.c_lflag &= ~(ICANON | ECHO);
| ^~~~
../../poke/pk-term.c:422:26: error: 'VTIME' undeclared (first use in this
function); did you mean 'ETIME'?
422 | new_termios.c_cc[VTIME] = 0;
| ^~~~~
| ETIME
../../poke/pk-term.c:423:26: error: 'VMIN' undeclared (first use in this
function)
423 | new_termios.c_cc[VMIN] = 1;
| ^~~~
../../poke/pk-term.c:424:9: warning: implicit declaration of function
'tcsetattr' [-Wimplicit-function-declaration]
424 | tcsetattr (0, TCSANOW, &new_termios);
| ^~~~~~~~~
../../poke/pk-term.c:424:23: error: 'TCSANOW' undeclared (first use in this
function)
424 | tcsetattr (0, TCSANOW, &new_termios);
| ^~~~~~~
../../poke/pk-term.c:411:24: warning: unused variable 'new_termios'
[-Wunused-variable]
411 | struct termios new_termios;
| ^~~~~~~~~~~
../../poke/pk-term.c:410:24: warning: unused variable 'old_termios'
[-Wunused-variable]
410 | struct termios old_termios;
| ^~~~~~~~~~~
At top level:
../../poke/pk-term.c:174:1: warning: 'lookup_color' defined but not used
[-Wunused-function]
174 | lookup_color (int red, int green, int blue)
| ^~~~~~~~~~~~
../../poke/pk-term.c:161:12: warning: 'default_bgcolor' defined but not used
[-Wunused-variable]
161 | static int default_bgcolor;
| ^~~~~~~~~~~~~~~
../../poke/pk-term.c:160:12: warning: 'default_color' defined but not used
[-Wunused-variable]
160 | static int default_color;
| ^~~~~~~~~~~~~
make[2]: *** [Makefile:2710: poke-pk-term.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-pk-repl.o -MD -MP -MF
.deps/poke-pk-repl.Tpo -c -o poke-pk-repl.o `test -f 'pk-repl.c' || echo
'../../poke/'`pk-repl.c
../../poke/pk-repl.c:46:8: error: unknown type name 'sigjmp_buf'
46 | static sigjmp_buf /*volatile*/ ctrlc_buf;
| ^~~~~~~~~~
../../poke/pk-repl.c: In function 'poke_sigint_handler':
../../poke/pk-repl.c:230:11: warning: implicit declaration of function
'pthread_kill'; did you mean 'pthread_self'? [-Wimplicit-function-declaration]
230 | pthread_kill (ctrlc_thread, SIGINT);
| ^~~~~~~~~~~~
| pthread_self
../../poke/pk-repl.c:241:11: warning: implicit declaration of function
'siglongjmp'; did you mean 'longjmp'? [-Wimplicit-function-declaration]
241 | siglongjmp (ctrlc_buf, 1);
| ^~~~~~~~~~
| longjmp
../../poke/pk-repl.c:248:24: error: storage size of 'sa' isn't known
248 | struct sigaction sa;
| ^~
../../poke/pk-repl.c:252:7: warning: implicit declaration of function
'sigaction' [-Wimplicit-function-declaration]
252 | sigaction (SIGINT, &sa, NULL);
| ^~~~~~~~~
../../poke/pk-repl.c:248:24: warning: unused variable 'sa' [-Wunused-variable]
248 | struct sigaction sa;
| ^~
../../poke/pk-repl.c: In function 'pk_repl':
../../poke/pk-repl.c:342:20: error: storage size of 'sa' isn't known
342 | struct sigaction sa;
| ^~
../../poke/pk-repl.c:371:3: warning: implicit declaration of function
'sigsetjmp'; did you mean '_setjmp'? [-Wimplicit-function-declaration]
371 | sigsetjmp (ctrlc_buf, 1);
| ^~~~~~~~~
| _setjmp
../../poke/pk-repl.c:342:20: warning: unused variable 'sa' [-Wunused-variable]
342 | struct sigaction sa;
| ^~
make[2]: *** [Makefile:2738: poke-pk-repl.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-pk-cmd-def.o -MD -MP -MF
.deps/poke-pk-cmd-def.Tpo -c -o poke-pk-cmd-def.o `test -f 'pk-cmd-def.c' ||
echo '../../poke/'`pk-cmd-def.c
../../poke/pk-cmd-def.c:22:10: fatal error: regex.h: No such file or directory
22 | #include <regex.h>
| ^~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2822: poke-pk-cmd-def.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-pk-ios.o -MD -MP -MF
.deps/poke-pk-ios.Tpo -c -o poke-pk-ios.o `test -f 'pk-ios.c' || echo
'../../poke/'`pk-ios.c
../../poke/pk-ios.c:23:10: fatal error: regex.h: No such file or directory
23 | #include <regex.h>
| ^~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2892: poke-pk-ios.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-pk-map-tab.o -MD -MP -MF
.deps/poke-pk-map-tab.Tpo -c -o poke-pk-map-tab.o `test -f 'pk-map-tab.c' ||
echo '../../poke/'`pk-map-tab.c
In file included from c:\msys64\mingw64\x86_64-w64-mingw32\include\windows.h:71,
from
c:\msys64\mingw64\x86_64-w64-mingw32\include\winsock2.h:23,
from ../gl/unistd.h:48,
from ../gl/textstyle.h:40,
from ../../poke/pk-term.h:24,
from pk-map-tab.y:42:
../../poke/pk-map-tab.h:65:5: error: expected identifier before numeric constant
65 | ERROR = 258, /* ERROR */
| ^~~~~
make[2]: *** [Makefile:2920: poke-pk-map-tab.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poke -I../gl -I../../gl -I../../common
-I../../libpoke -I../libpoke -DJITTER_VERSION=\"0.9.294\"
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-DPKGINFODIR=\"/c/src/repos/poke/inst/share/info\"
-DLOCALEDIR=\"/c/src/repos/poke/inst/share/locale\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poke-pk-hserver.o -MD -MP -MF
.deps/poke-pk-hserver.Tpo -c -o poke-pk-hserver.o `test -f 'pk-hserver.c' ||
echo '../../poke/'`pk-hserver.c
../../poke/pk-hserver.c:30:10: fatal error: netinet/in.h: No such file or
directory
30 | #include <netinet/in.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:2962: poke-pk-hserver.o] Error 1
make[2]: Target 'all-am' not remade because of errors.
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/poke'
make[1]: *** [Makefile:2527: all] Error 2
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/poke'
Making all in poked
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/poked'
gcc -DHAVE_CONFIG_H -I. -I../../poked -I../poke -I../../common -I../gl-poked
-I../../gl-poked -I../../libpoke -I../libpoke
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poked-poked.o -MD -MP -MF
.deps/poked-poked.Tpo -c -o poked-poked.o `test -f 'poked.c' || echo
'../../poked/'`poked.c
../../poked/poked.c:26:10: fatal error: err.h: No such file or directory
26 | #include <err.h>
| ^~~~~~~
compilation terminated.
make[1]: *** [Makefile:2600: poked-poked.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poked -I../poke -I../../common -I../gl-poked
-I../../gl-poked -I../../libpoke -I../libpoke
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poked-usock-buf.o -MD -MP -MF
.deps/poked-usock-buf.Tpo -c -o poked-usock-buf.o `test -f 'usock-buf.c' ||
echo '../../poked/'`usock-buf.c
../../poked/usock-buf.c:24:10: fatal error: err.h: No such file or directory
24 | #include <err.h> // In usock_buf_chain_rev
| ^~~~~~~
compilation terminated.
make[1]: *** [Makefile:2614: poked-usock-buf.o] Error 1
gcc -DHAVE_CONFIG_H -I. -I../../poked -I../poke -I../../common -I../gl-poked
-I../../gl-poked -I../../libpoke -I../libpoke
-DPKGDATADIR=\"/c/src/repos/poke/inst/share/poke\"
-I/c/src/repos/poke/libs/include -Wall -g -O2 -MT poked-usock.o -MD -MP -MF
.deps/poked-usock.Tpo -c -o poked-usock.o `test -f 'usock.c' || echo
'../../poked/'`usock.c
../../poked/usock.c:31:10: fatal error: err.h: No such file or directory
31 | #include <err.h>
| ^~~~~~~
compilation terminated.
make[1]: *** [Makefile:2628: poked-usock.o] Error 1
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/poked'
Making all in utils
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/utils'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/utils'
Making all in doc
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/doc'
Making all in man
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/man'
Making all in testsuite
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/testsuite'
Making all in poke.libpoke
make[2]: Entering directory
'/c/src/repos/poke/poke-3.0/b/testsuite/poke.libpoke'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/testsuite/poke.libpoke'
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/testsuite'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/testsuite'
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/testsuite'
Making all in etc
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/etc'
Making all in vim
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/etc/vim'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/etc/vim'
make[2]: Entering directory '/c/src/repos/poke/poke-3.0/b/etc'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/c/src/repos/poke/poke-3.0/b/etc'
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/etc'
Making all in po
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b/po'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b/po'
make[1]: Entering directory '/c/src/repos/poke/poke-3.0/b'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/c/src/repos/poke/poke-3.0/b'
make: *** [Makefile:2516: all-recursive] Error 1
make: Target 'all' not remade because of errors.
I can provide more info if needed.
Regards
Hannes
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- build errors on windows,
Hannes Domani <=