Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with ECMAscript enabled failed #350

Open
aelmahmoudy opened this issue Dec 29, 2024 · 1 comment
Open

Build with ECMAscript enabled failed #350

aelmahmoudy opened this issue Dec 29, 2024 · 1 comment

Comments

@aelmahmoudy
Copy link
Contributor

When I try to build with ECMA scripting enabled, I get the following build error:

ccache cc -Isrc/elinks.p -Isrc -I../src -I. -I.. -I/usr/include/p11-kit-1 -I/usr/include/x86_64-linux-gnu -I/usr/include/lua5.3 -I/usr/include/python3.12 -I/usr/local/include -I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE -fdiagnostics-color=always -Wall -Winvalid-pch '-DGETTEXT_PACKAGE="elinks"' '-DBUILD_ID=""' -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/builds/aelmahmoudy/elinks/debian/output/source_dir=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -isystem /usr/include/mit-krb5 -isystem /usr/include/x86_64-linux-gnu/mozjs-128 -isystem /usr/include/mit-krb5 -DHAVE_CONFIG_H -fno-strict-aliasing -Wno-address -Wno-builtin-declaration-mismatch -Wno-array-bounds -MD -MQ src/elinks.p/document_html_renderer.c.o -MF src/elinks.p/document_html_renderer.c.o.d -o src/elinks.p/document_html_renderer.c.o -c ../src/document/html/renderer.c
../src/document/html/renderer.c: In function ‘new_link’:
../src/document/html/renderer.c:1382:64: error: ‘struct document’ has no member named ‘text’; did you mean ‘next’?
 1382 |         link->element_offset = (elformat.top_name && document->text.source) ? elformat.top_name - document->text.source : 0;
      |                                                                ^~~~
      |                                                                next
../src/document/html/renderer.c:1382:109: error: ‘struct document’ has no member named ‘text’; did you mean ‘next’?
 1382 |         link->element_offset = (elformat.top_name && document->text.source) ? elformat.top_name - document->text.source : 0;
      |                                                                                                             ^~~~
      |                                                                                                             next

I am building against mozjs 128, libxml++ 5.4.0, libsqlite3 3.46.1

Full build log: https://salsa.debian.org/aelmahmoudy/elinks/-/jobs/6836394/raw

@rkd77
Copy link
Owner

rkd77 commented Dec 29, 2024

libdom and other netsurf libraries are required for js. libxml++ was "retired".

rkd77 added a commit that referenced this issue Dec 30, 2024
sm-scripting worked without -Dspidermonkey=true, but now is failing,
so instead of fixing it, I enforce to enable -Dspidermonkey=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants