Open
Description
hi
building latest master I get the following compile failure:
FAILED: src/elinks.p/js_quickjs_window.c.o
gcc -m64 -Isrc/elinks.p -Isrc -I../src -I. -I.. -I/opt/stow.d/versions/openssl-3.4.1/usr/include -I/opt/stow.d/versions/libidn2-2.3.7/usr/include -I/opt/stow.d/versions/gnutls-3.8.9/usr/include -I/opt/stow.d/versions/nettle-3.10.1/usr/include -I/opt/stow.d/stow/libtasn1/usr/include -I/usr/include/p11-kit-1 -I/opt/stow.d/versions/expat-2.6.4/usr/include -I/opt/stow.d/versions/python3-3.13.2/usr/python3/include/python3.13 -I/opt/stow.d/stow/quickjs-4felinks/usr/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -g '-DGETTEXT_PACKAGE="elinks"' '-DBUILD_ID=""' -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -DHAVE_CONFIG_H -fno-strict-aliasing -Wno-address -Wno-builtin-declaration-mismatch -Wno-array-bounds -MD -MQ src/elinks.p/js_quickjs_window.c.o -MF src/elinks.p/js_quickjs_window.c.o.d -o src/elinks.p/js_quickjs_window.c.o -c ../src/js/quickjs/window.c
In file included from ../src/util/lists.h:4,
from ../src/main/object.h:4,
from ../src/config/options.h:4,
from ../src/main/module.h:4,
from ../src/bfu/leds.h:6,
from ../src/js/quickjs/window.c:18:
../src/js/quickjs/window.c: In function ‘detach_js_view_state’:
../src/js/quickjs/window.c:95:16: error: ‘main_ctx’ undeclared (first use in this function); did you mean ‘main_action’?
95 | assert(main_ctx);
| ^~~~~~~~
../src/util/error.h:111:47: note: in definition of macro ‘assert’
111 | do { if (!assert_failed && (assert_failed = !(x))) { \
| ^
../src/js/quickjs/window.c:95:16: note: each undeclared identifier is reported only once for each function it appears in
95 | assert(main_ctx);
| ^~~~~~~~
../src/util/error.h:111:47: note: in definition of macro ‘assert’
111 | do { if (!assert_failed && (assert_failed = !(x))) { \
| ^
Indeed, window.c
is the only file containing a reference to main_ctx
under quickjs
, while I get many hits for main_ctx
under spidermonkey
: looks like a typo where main_ctx
has been used in the wrong place?
Thank you very much for your valuable work
ciao
-g
Metadata
Metadata
Assignees
Labels
No labels