[Pkg-xmpp-devel] Bug#1067259: jabberd2: FTBFS: make[3]: *** [Makefile:538: libsx_la-websocket.lo] Error 1

Lucas Nussbaum lucas at debian.org
Wed Mar 20 21:03:33 GMT 2024


Source: jabberd2
Version: 2.7.0-4.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240319 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>/sx'
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-callback.lo `test -f 'callback.c' || echo './'`callback.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-chain.lo `test -f 'chain.c' || echo './'`chain.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-client.lo `test -f 'client.c' || echo './'`client.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-env.lo `test -f 'env.c' || echo './'`env.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-error.lo `test -f 'error.c' || echo './'`error.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-io.lo `test -f 'io.c' || echo './'`io.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-server.lo `test -f 'server.c' || echo './'`server.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-sx.lo `test -f 'sx.c' || echo './'`sx.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-sasl.lo `test -f 'sasl.c' || echo './'`sasl.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-ack.lo `test -f 'ack.c' || echo './'`ack.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-ssl.lo `test -f 'ssl.c' || echo './'`ssl.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-compress.lo `test -f 'compress.c' || echo './'`compress.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -funsigned-char -fdiagnostics-color -c -o libsx_la-websocket.lo `test -f 'websocket.c' || echo './'`websocket.c
> websocket.c: In function ‘_sx_websocket_http_header_field’:
> websocket.c:256:38: warning: passing argument 2 of ‘strunescape’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   256 |                   strunescape(sc->p, spool_print(sc->field)),
>       |                                      ^~~~~~~~~~~~~~~~~~~~~~
> In file included from sx.h:31,
>                  from websocket.c:25:
> ../util/util.h:135:48: note: expected ‘char *’ but argument is of type ‘const char *’
>   135 | JABBERD2_API char *strunescape(pool_t p, char* buf);
>       |                                          ~~~~~~^~~
> websocket.c:257:38: warning: passing argument 2 of ‘strunescape’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   257 |                   strunescape(sc->p, spool_print(sc->value)));
>       |                                      ^~~~~~~~~~~~~~~~~~~~~~
> ../util/util.h:135:48: note: expected ‘char *’ but argument is of type ‘const char *’
>   135 | JABBERD2_API char *strunescape(pool_t p, char* buf);
>       |                                          ~~~~~~^~~
> websocket.c: In function ‘_sx_websocket_rio’:
> websocket.c:344:80: error: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Werror=implicit-function-declaration]
>   344 |                     if(j_strcmp(upgrade, "websocket") || connection == NULL || strcasestr(connection, "Upgrade") == NULL || j_strcmp(proto, "xmpp") || version != 13) {
>       |                                                                                ^~~~~~~~~~
>       |                                                                                strcasecmp
> websocket.c:344:114: warning: comparison between pointer and integer
>   344 |                     if(j_strcmp(upgrade, "websocket") || connection == NULL || strcasestr(connection, "Upgrade") == NULL || j_strcmp(proto, "xmpp") || version != 13) {
>       |                                                                                                                  ^~
> websocket.c:357:21: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   357 |                     sha1_init(&sha1);
>       |                     ^~~~~~~~~
> In file included from ../util/sha1.h:41,
>                  from ../util/util.h:102:
> /usr/include/openssl/sha.h:49:27: note: declared here
>    49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
>       |                           ^~~~~~~~~
> websocket.c:358:21: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   358 |                     sha1_append(&sha1, key, j_strlen(key));
>       |                     ^~~~~~~~~~~
> /usr/include/openssl/sha.h:50:27: note: declared here
>    50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
>       |                           ^~~~~~~~~~~
> websocket.c:359:21: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   359 |                     sha1_append(&sha1, websocket_guid, sizeof(websocket_guid) -1);
>       |                     ^~~~~~~~~~~
> /usr/include/openssl/sha.h:50:27: note: declared here
>    50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
>       |                           ^~~~~~~~~~~
> websocket.c:360:21: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   360 |                     sha1_finish(&sha1, hash);
>       |                     ^~~~~~~~~~~
> /usr/include/openssl/sha.h:51:27: note: declared here
>    51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
>       |                           ^~~~~~~~~~
> ssl.c: In function ‘sx_ssl_get_DHparams’:
> ssl.c:97:1: warning: ‘PEM_read_bio_DHparams’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>    97 | DECLARE_sx_ssl_getparams(DHparams, DH)
>       | ^~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/openssl/ssl.h:36,
>                  from plugins.h:60,
>                  from sx.h:418,
>                  from ssl.c:26:
> /usr/include/openssl/pem.h:472:1: note: declared here
>   472 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
>       | ^~~~~~~~~~~~~~~~~~~
> ssl.c: In function ‘sx_ssl_get_ECPKParameters’:
> ssl.c:98:1: warning: ‘PEM_read_bio_ECPKParameters’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>    98 | DECLARE_sx_ssl_getparams(ECPKParameters, EC_GROUP)
>       | ^~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/openssl/pem.h:464:1: note: declared here
>   464 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, ECPKParameters, EC_GROUP)
>       | ^~~~~~~~~~~~~~~~~~~
> ssl.c: In function ‘sx_ssl_make_dh_params’:
> ssl.c:114:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   114 |     DH *dh = DH_new();
>       |     ^~
> In file included from /usr/include/openssl/dsa.h:31,
>                  from /usr/include/openssl/x509.h:37,
>                  from /usr/include/openssl/ssl.h:31:
> /usr/include/openssl/dh.h:206:27: note: declared here
>   206 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
>       |                           ^~~~~~
> ssl.c:131:9: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   131 |         if (p == NULL || g == NULL || !DH_set0_pqg(dh, p, NULL, g)) {
>       |         ^~
> /usr/include/openssl/dh.h:262:27: note: declared here
>   262 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
>       |                           ^~~~~~~~~~~
> ssl.c:132:13: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   132 |             DH_free(dh);
>       |             ^~~~~~~
> /usr/include/openssl/dh.h:207:28: note: declared here
>   207 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
>       |                            ^~~~~~~
> ssl.c: In function ‘sx_ssl_free_dh_params’:
> ssl.c:145:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   145 |         DH_free(dhparams[i].dh);
>       |         ^~~~~~~
> /usr/include/openssl/dh.h:207:28: note: declared here
>   207 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
>       |                            ^~~~~~~
> ssl.c: In function ‘sx_ssl_server_addcert’:
> ssl.c:1088:5: warning: ‘SSL_CTX_set_tmp_dh_callback’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1088 |     SSL_CTX_set_tmp_dh_callback(ctx, _sx_ssl_tmp_dh_callback);
>       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/openssl/ssl.h:2230:6: note: declared here
>  2230 | void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> ssl.c:1096:9: warning: ‘DH_bits’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1096 |         _sx_debug(ZONE, "custom DH parameters loaded from certificate", DH_bits(dhparams));
>       |         ^~~~~~~~~
> /usr/include/openssl/dh.h:209:27: note: declared here
>   209 | OSSL_DEPRECATEDIN_3_0 int DH_bits(const DH *dh);
>       |                           ^~~~~~~
> ssl.c:1101:5: warning: ‘EC_KEY_new_by_curve_name’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1101 |     if((ecparams = sx_ssl_get_ECPKParameters(pemfile)) && (nid = EC_GROUP_get_curve_name(ecparams)) && (eckey = EC_KEY_new_by_curve_name(nid))) {
>       |     ^~
> In file included from /usr/include/openssl/x509.h:33:
> /usr/include/openssl/ec.h:1001:31: note: declared here
>  1001 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
>       |                               ^~~~~~~~~~~~~~~~~~~~~~~~
> ssl.c:1116:5: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  1116 |     EC_KEY_free(eckey);
>       |     ^~~~~~~~~~~
> /usr/include/openssl/ec.h:1006:28: note: declared here
>  1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
>       |                            ^~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:538: libsx_la-websocket.lo] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/19/jabberd2_2.7.0-4.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240319;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240319&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-xmpp-devel mailing list