Bug#1104835: edbrowse: FTBFS: jseng-quick.c:1493:34: error: implicit declaration of function âJS_VALUE_GET_OBJâ
Santiago Vila
sanvila at debian.org
Wed May 7 09:53:29 BST 2025
Package: src:edbrowse
Version: 3.8.10-1
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean
make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make -C src clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
rm -f *.o edbrowse \
startwindow.c ebrc.c msg-strings.c
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
make -j2 "INSTALL=install --strip-program=true"
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make -C src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o main.o main.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o buffers.o buffers.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o sendmail.o sendmail.c
In file included from eb.h:28,
from sendmail.c:6:
In function ânewSendmailHandleâ,
inlined from âsendMailSMTPâ at sendmail.c:982:11,
inlined from âsendMailâ at sendmail.c:1299:21:
sendmail.c:922:9: warning: call to â_curl_easy_setopt_err_debug_cbâ declared with attribute warning: curl_easy_setopt expects a curl_debug_callback argument for this option [-Wattribute-warning]
922 | curl_easy_setopt(handle, CURLOPT_DEBUGFUNCTION, ebcurl_debug_handler);
| ^~~~~~~~~~~~~~~~
In function âsendMailSMTPâ,
inlined from âsendMailâ at sendmail.c:1299:21:
sendmail.c:987:9: warning: call to â_curl_easy_setopt_err_read_cbâ declared with attribute warning: curl_easy_setopt expects a curl_read_callback argument for this option [-Wattribute-warning]
987 | curl_easy_setopt(handle, CURLOPT_READFUNCTION, smtp_upload_callback);
| ^~~~~~~~~~~~~~~~
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o fetchmail.o fetchmail.c
fetchmail.c: In function âformatMailâ:
fetchmail.c:3572:51: warning: â attachmentsâ directive writing 12 bytes into a region of size between 10 and 19 [-Wformat-overflow=]
3572 | sprintf(atbuf, "%d attachments",
| ^~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
from eb.h:24,
from fetchmail.c:7:
In function âsprintfâ,
inlined from âheaderShowâ at fetchmail.c:3572:5,
inlined from âformatMailâ at fetchmail.c:3633:30:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: â__builtin___sprintf_chkâ output between 14 and 23 bytes into a destination of size 20
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
In file included from eb.h:28:
In function âcount_messagesâ,
inlined from âfetchMailâ at fetchmail.c:2195:8:
fetchmail.c:2018:25: warning: call to â_curl_easy_setopt_err_stringâ declared with attribute warning: curl_easy_setopt expects a string ('char *' or char[]) argument for this option [-Wattribute-warning]
2018 | curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, 0);
| ^~~~~~~~~~~~~~~~
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o html.o html.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o html-tags.o html-tags.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o format.o format.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o stringfile.o stringfile.c
In file included from /usr/include/string.h:548,
from eb.h:20,
from stringfile.c:3:
In function âmemcpyâ,
inlined from âCifyâ at stringfile.c:319:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: â__builtin_memcpyâ specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
stringfile.c: In function âlsattr.part.0â:
stringfile.c:1273:33: warning: â__builtin_strncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation]
1273 | strncpy(s, pwbuf->pw_name, l);
| ^
stringfile.c:1270:37: note: length computed here
1270 | l = strlen(pwbuf->pw_name);
| ^~~~~~~~~~~~~~~~~~~~~~
stringfile.c:1284:33: warning: â__builtin_strncpyâ specified bound depends on the length of the source argument [-Wstringop-truncation]
1284 | strncpy(s, grpbuf->gr_name, l);
| ^
stringfile.c:1281:37: note: length computed here
1281 | l = strlen(grpbuf->gr_name);
| ^~~~~~~~~~~~~~~~~~~~~~~
stringfile.c: In function âgetFileNameâ:
stringfile.c:1453:25: warning: â__builtin___strncpy_chkâ specified bound depends on the length of the source argument [-Wstringop-truncation]
1453 | strncpy(buf, defname, l);
| ^
stringfile.c:1450:29: note: length computed here
1450 | l = strlen(defname);
| ^~~~~~~~~~~~~~~
stringfile.c: In function âmakeAbsPathâ:
stringfile.c:1546:35: warning: â%sâ directive writing up to 1022 bytes into a region of size between 201 and 1223 [-Wformat-overflow=]
1546 | sprintf(path, "%s/%s", b, f);
| ^~
In file included from /usr/include/stdio.h:970,
from eb.h:24:
In function âsprintfâ,
inlined from âmakeAbsPathâ at stringfile.c:1546:3:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: â__builtin___sprintf_chkâ output between 2 and 2046 bytes into a destination of size 1224
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
stringfile.c: In function âenvFileDownâ:
stringfile.c:2418:28: warning: â%sâ directive writing up to 254 bytes into a region of size between 1 and 255 [-Wformat-overflow=]
2418 | sprintf(line2, "%s/%s", downDir, line);
| ^~
In function âsprintfâ,
inlined from âenvFileDownâ at stringfile.c:2418:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: â__builtin___sprintf_chkâ output between 2 and 510 bytes into a destination of size 256
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
cd .. ; perl ./tools/buildebrcstring.pl
cd .. ; perl ./tools/buildmsgstrings.pl
Content src/qrg_pt_br written to src/ebrc.c
Content src/qrg_fr written to src/ebrc.c
Content src/qrg_es written to src/ebrc.c
Content src/qrg_en written to src/ebrc.c
Content lang/ebrc-de written to src/ebrc.c
Content lang/ebrc-en written to src/ebrc.c
Content lang/ebrc-es written to src/ebrc.c
Content lang/ebrc-fr written to src/ebrc.c
Content lang/ebrc-pl written to src/ebrc.c
Content lang/ebrc-pt_br written to src/ebrc.c
Content lang/ebrc-ru written to src/ebrc.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o http.o http.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o isup.o isup.c
http.c: In function âeb_curl_callbackâ:
http.c:356:25: warning: âCURLINFO_CONTENT_LENGTH_DOWNLOADâ is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations]
356 | curl_easy_getinfo(g->h,
| ^~~~~~~~~~~~~~~~~
In file included from eb.h:28,
from http.c:3:
/usr/include/x86_64-linux-gnu/curl/curl.h:2932:3: note: declared here
2932 | CURLINFO_CONTENT_LENGTH_DOWNLOAD
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http.c: In function âhttp_curl_initâ:
http.c:2455:9: warning: âCURLOPT_PROGRESSFUNCTIONâ is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations]
2455 | curl_easy_setopt(h, CURLOPT_PROGRESSFUNCTION, curl_progress);
| ^~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/curl/curl.h:1337:3: note: declared here
1337 | CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56,
| ^~~~~~~~~~~~~~~~~
In function âhttpDefaultâ,
inlined from âparseURL.constpropâ at isup.c:423:13:
isup.c:325:9: warning: âlastdotâ may be used uninitialized [-Wmaybe-uninitialized]
325 | ++lastdot;
| ^~~~~~~~~
isup.c: In function âparseURL.constpropâ:
isup.c:281:25: note: âlastdotâ was declared here
281 | const char *s, *lastdot, *end;
| ^~~~~~~
isup.c: In function âaddWebAuthorizationâ:
isup.c:2668:28: warning: âdlâ may be used uninitialized [-Wmaybe-uninitialized]
2668 | (proxy || (dl == (int)strlen(a->directory)
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2669 | && !memcmp(a->directory, dir, dl)))) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
isup.c:2643:19: note: âdlâ was declared here
2643 | int port, dl;
| ^~
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o css.o css.c
perl ../tools/buildsourcestring.pl shared.js startwindow.js endwindow.js startwindow.c
Content shared.js written to startwindow.c
Content startwindow.js written to startwindow.c
Content endwindow.js written to startwindow.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o dbops.o dbops.c
dbops.c: In function âstringDateâ:
dbops.c:505:17: warning: â__builtin_strncpyâ output may be truncated copying 4 bytes from a string of length 7 [-Wstringop-truncation]
505 | strncpy(buf, buf + 4, 4);
| ^
css.c: In function âqsaMatchâ:
css.c:2383:28: warning: ârcâ may be used uninitialized [-Wmaybe-uninitialized]
2383 | if (rc)
| ^
css.c:2096:14: note: ârcâ was declared here
2096 | bool rc;
| ^~
css.c:2326:47: warning: âcoefâ may be used uninitialized [-Wmaybe-uninitialized]
2326 | if (n_present && coef == 0)
| ~~~~~^~~~
css.c:2272:29: note: âcoefâ was declared here
2272 | int coef, constant, d;
| ^~~~
In function âbestListAtomicâ,
inlined from âqsa1â at css.c:2647:9,
inlined from âqsa2.israâ at css.c:2753:8:
css.c:3466:39: warning: âbest_hâ may be used uninitialized [-Wmaybe-uninitialized]
3466 | return (best_n ? best_h->body : doclist);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
css.c: In function âqsa2.israâ:
css.c:3432:30: note: âbest_hâ was declared here
3432 | struct hashhead *h, *best_h;
| ^~~~~~
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o dbodbc.o dbodbc.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -DEDBROWSE_ON_LINUX -g -ggdb -Wextra -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/p11-kit-1 -I/usr/include/quickjs -c -o jseng-quick.o jseng-quick.c
In file included from /usr/include/quickjs/quickjs-libc.h:30,
from jseng-quick.c:18:
/usr/include/quickjs/quickjs.h: In function âJS_NewCFunctionMagicâ:
/usr/include/quickjs/quickjs.h:1033:34: warning: cast between incompatible function types from âJSValue (*)(JSContext *, JSValue, int, JSValue *, int)â to âJSValue (*)(JSContext *, JSValue, int, JSValue *)â [-Wcast-function-type]
1033 | return JS_NewCFunction2(ctx, (JSCFunction *)func, name, length, cproto, magic);
| ^
jseng-quick.c: In function âtagFromObjectâ:
jseng-quick.c:1493:34: error: implicit declaration of function âJS_VALUE_GET_OBJâ; did you mean âJS_VALUE_GET_PTRâ? [-Wimplicit-function-declaration]
1493 | if (t->jslink && JS_VALUE_GET_OBJ(*((JSValue*)t->jv)) == JS_VALUE_GET_OBJ(v) && !t->dead)
| ^~~~~~~~~~~~~~~~
| JS_VALUE_GET_PTR
jseng-quick.c: In function âsetup_window_2â:
jseng-quick.c:3831:9: warning: ignoring return value of âasprintfâ declared with attribute âwarn_unused_resultâ [-Wunused-result]
3831 | asprintf(&wpc, "Wp`Set@%s", cf->fileName);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jseng-quick.c: In function âset_basehrefâ:
jseng-quick.c:4492:17: warning: ignoring return value of âasprintfâ declared with attribute âwarn_unused_resultâ [-Wunused-result]
4492 | asprintf(&wpc, "Wp`Set@%s", h);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [<builtin>: jseng-quick.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [makefile:5: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:16: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202505/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:edbrowse, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Pkg-a11y-devel
mailing list