[Bug 281215] www/elinks: fails to build with CSS option on
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 281215] www/elinks: fails to build with CSS option on"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Sep 2024 02:14:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281215 Bug ID: 281215 Summary: www/elinks: fails to build with CSS option on Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com CC: jailbird@fdf.net CC: jailbird@fdf.net Flags: maintainer-feedback?(jailbird@fdf.net) www/elinks is currently 0.17.0, and if the CSS option is on, it fails to build today [[1]]. I don't know if the specific versions of dependent libraries matter or not, but libcss is currently at 0.9.2 and libdom is 0.4.2. I didn't try to roll back to older versions when the CSS option was introduced, but if it used to build back then (Jan 2024 when elinks was updated to 0.17.0), it doesn't seem to now. Here's the config I used... % make showconfig ===> The following configuration options are available for elinks-0.17.0_1: 256COLORS=on: 256 color support 88COLORS=on: 88 color support BITTORRENT=on: BitTorrent file sharing support BROTLI=on: Brotli compression support CSS=on: Cascading Style Sheets support (via libcss & libdom) CURL=on: Data transfer support via cURL EXMODE=on: Exmode (CLI) support FASTMEM=on: Fast memory allocation functions FINGER=off: finger(1) user information support FSP=off: FSP protocol support (via fsplib) FTP=on: FTP protocol support GOPHER=off: Gopher protocol support GUILE=off: Guile extension language support HIGHLIGHT=on: HTML highlighting using DOM engine IDN=off: International Domain Names support LOCAL_CGI=off: Local CGI support LUA=on: Lua scripting language support LZMA=on: LZMA compression support MOUSE=on: Mouse support NLS=on: Native Language Support NNTP=off: NNTP (News) support NOROOT=off: Prevention of usage by root SMB=on: SMB network protocol support SPIDERMONKEY=on: ECMAScript support (via SpiderMonkey) TRE=on: TRE regex search support TRUECOLORS=off: True color support XBELMARKS=off: XBEL bookmarks (via expat) ZSTD=off: Zstandard compression support [[1]] FAILED: src/elinks.p/document_libdom_css.c.o cc -Isrc/elinks.p -Isrc -I../src -I. -I.. -I/usr/local/include -I/usr/local/include/nspr -I/usr/local/include/lua53 -I/usr/local/lib/perl5/5.36/mach/CORE -I/usr/local/include/samba4 -I/usr/local/include/js-102 -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch '-DGETTEXT_PACKAGE="elinks"' '-DBUILD_ID=""' -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -fstack-protector-strong -isystem /usr/local/include/mozjs-102 -isystem /usr/local/include -DHAVE_CONFIG_H -fno-strict-aliasing -Wno-address -MD -MQ src/elinks.p/document_libdom_css.c.o -MF src/elinks.p/document_libdom_css.c.o.d -o src/elinks.p/document_libdom_css.c.o -c ../src/document/libdom/css.c ../src/document/libdom/css.c:225:2: error: incompatible function pointer types initializing 'css_error (*)(void *, void *, void *)' (aka 'enum css_error (*)(void *, void *, void *)') with an expression of type 'css_error (void *, const css_hint *, css_hint *)' (aka 'enum css_error (void *, const struct css_hint *, struct css_hint *)') [-Wincompatible-function-pointer-types] 225 | compute_font_size, | ^~~~~~~~~~~~~~~~~ ../src/document/libdom/css.c:226:2: error: incompatible function pointer types initializing 'css_error (*)(void *, void *, void **)' (aka 'enum css_error (*)(void *, void *, void **)') with an expression of type 'css_error (void *, void *, void *)' (aka 'enum css_error (void *, void *, void *)') [-Wincompatible-function-pointer-types] 226 | set_libcss_node_data, | ^~~~~~~~~~~~~~~~~~~~ ../src/document/libdom/css.c:227:2: warning: excess elements in struct initializer [-Wexcess-initializers] 227 | get_libcss_node_data | ^~~~~~~~~~~~~~~~~~~~ ../src/document/libdom/css.c:299:36: error: too few arguments to function call, expected 8, have 7 298 | error = css_select_style(ctx->ctx, n, media, inline_style, | ~~~~~~~~~~~~~~~~ 299 | &selection_handler, ctx, &styles); | ^ /usr/local/include/libcss/select.h:221:11: note: 'css_select_style' declared here 221 | css_error css_select_style(css_select_ctx *ctx, void *node, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 222 | const css_unit_ctx *unit_ctx, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 223 | const css_media *media, const css_stylesheet *inline_style, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 224 | css_select_handler *handler, void *pw, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 225 | css_select_results **result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/document/libdom/css.c:314:5: error: too many arguments to function call, expected 4, have 5 311 | error = css_computed_style_compose(ctx->parent_style, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 312 | styles->styles[CSS_PSEUDO_ELEMENT_NONE], 313 | compute_font_size, ctx, 314 | &composed); | ^~~~~~~~~ /usr/local/include/libcss/computed.h:82:11: note: 'css_computed_style_compose' declared here 82 | css_error css_computed_style_compose( | ^ 83 | const css_computed_style *restrict parent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 84 | const css_computed_style *restrict child, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 85 | const css_unit_ctx *unit_ctx, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 86 | css_computed_style **restrict result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/document/libdom/css.c:346:5: error: too many arguments to function call, expected 4, have 5 342 | error = css_computed_style_compose( | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 343 | styles->styles[CSS_PSEUDO_ELEMENT_NONE], 344 | styles->styles[pseudo_element], 345 | compute_font_size, ctx, 346 | &composed); | ^~~~~~~~~ /usr/local/include/libcss/computed.h:82:11: note: 'css_computed_style_compose' declared here 82 | css_error css_computed_style_compose( | ^ 83 | const css_computed_style *restrict parent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 84 | const css_computed_style *restrict child, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 85 | const css_unit_ctx *unit_ctx, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 86 | css_computed_style **restrict result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/document/libdom/css.c:384:28: error: too many arguments to function call, expected 4, have 5 383 | error = css_computed_style_compose(parent, partial, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 384 | compute_font_size, ctx, &composed); | ^~~~~~~~~ /usr/local/include/libcss/computed.h:82:11: note: 'css_computed_style_compose' declared here 82 | css_error css_computed_style_compose( | ^ 83 | const css_computed_style *restrict parent, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 84 | const css_computed_style *restrict child, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 85 | const css_unit_ctx *unit_ctx, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 86 | css_computed_style **restrict result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 6 errors generated. ninja: build stopped: subcommand failed. -- You are receiving this mail because: You are the assignee for the bug.