Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2024 02:14:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281215] www/elinks: fails to build with CSS option on
Message-ID:  <bug-281215-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281215

            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 bu=
ild
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 bac=
k 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
=3D=3D=3D> The following configuration options are available for elinks-0.1=
7.0_1:
     256COLORS=3Don: 256 color support
     88COLORS=3Don: 88 color support
     BITTORRENT=3Don: BitTorrent file sharing support
     BROTLI=3Don: Brotli compression support
     CSS=3Don: Cascading Style Sheets support (via libcss & libdom)
     CURL=3Don: Data transfer support via cURL
     EXMODE=3Don: Exmode (CLI) support
     FASTMEM=3Don: Fast memory allocation functions
     FINGER=3Doff: finger(1) user information support
     FSP=3Doff: FSP protocol support (via fsplib)
     FTP=3Don: FTP protocol support
     GOPHER=3Doff: Gopher protocol support
     GUILE=3Doff: Guile extension language support
     HIGHLIGHT=3Don: HTML highlighting using DOM engine
     IDN=3Doff: International Domain Names support
     LOCAL_CGI=3Doff: Local CGI support
     LUA=3Don: Lua scripting language support
     LZMA=3Don: LZMA compression support
     MOUSE=3Don: Mouse support
     NLS=3Don: Native Language Support
     NNTP=3Doff: NNTP (News) support
     NOROOT=3Doff: Prevention of usage by root
     SMB=3Don: SMB network protocol support
     SPIDERMONKEY=3Don: ECMAScript support (via SpiderMonkey)
     TRE=3Don: TRE regex search support
     TRUECOLORS=3Doff: True color support
     XBELMARKS=3Doff: XBEL bookmarks (via expat)
     ZSTD=3Doff: 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=3Dnever -D_FILE_OFFSET_BITS=
=3D64
-Wall -Winvalid-pch '-DGETTEXT_PACKAGE=3D"elinks"' '-DBUILD_ID=3D""' -O2 -p=
ipe
-fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -DHAS_FPSETMA=
SK
-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 ty=
pes
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 ty=
pes
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 c=
all,
expected 8, have 7
  298 |         error =3D 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,
      |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  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 c=
all,
expected 4, have 5
  311 |                 error =3D css_computed_style_compose(ctx->parent_st=
yle,
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~
  312 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
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_compo=
se'
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 c=
all,
expected 4, have 5
  342 |                 error =3D css_computed_style_compose(
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~
  343 |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
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_compo=
se'
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 =3D css_computed_style_compose(parent, partial,
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~
  384 |                         compute_font_size, ctx, &composed);
      |                                                 ^~~~~~~~~
/usr/local/include/libcss/computed.h:82:11: note: 'css_computed_style_compo=
se'
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281215-7788>