[Pkg-xmpp-devel] Bug#917758: jabberd2: FTBFS: mysql-related errors

Lucas Nussbaum lucas at debian.org
Sat Dec 29 22:51:19 GMT 2018


Source: jabberd2
Version: 2.6.1-3
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20181229 ftbfs-buster

Hi,

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

Relevant part (hopefully):
> make[3]: Entering directory '/<<PKGBUILDDIR>>/storage'
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLIBRARY_DIR=\"/usr/lib/x86_64-linux-gnu/jabberd2\" -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o libstorage_la-storage.lo `test -f 'storage.c' || echo './'`storage.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DLIBRARY_DIR=\"/usr/lib/x86_64-linux-gnu/jabberd2\" -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o libstorage_la-object.lo `test -f 'object.c' || echo './'`object.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o authreg_anon.lo authreg_anon.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o authreg_db.lo authreg_db.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o storage_db.lo storage_db.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o storage_fs.lo storage_fs.c
> storage_fs.c: In function '_st_fs_put':
> storage_fs.c:173:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>                              fprintf(f, "%s %d %d\n", key, ot, ((int)val != 0) ? 1 : 0);
>                                                                 ^
> storage_fs.c:177:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>                              fprintf(f, "%s %d %d\n", key, ot, (int) val);
>                                                                ^
> storage_fs.c: In function '_st_fs_delete':
> storage_fs.c:383:34: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
>          snprintf(file, 1024, "%s/%s", path, dirent->d_name);
>                                   ^~
> In file included from /usr/include/stdio.h:873,
>                  from ../util/util.h:27,
>                  from storage.h:38,
>                  from storage_fs.c:36:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 2 and 1280 bytes into a destination of size 1024
>    return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         __bos (__s), __fmt, __va_arg_pack ());
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o authreg_ldap.lo authreg_ldap.c
> storage_fs.c: In function '_st_fs_get':
> storage_fs.c:239:34: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
>          snprintf(file, 1024, "%s/%s", path, dirent->d_name);
>                                   ^~
> In file included from /usr/include/stdio.h:873,
>                  from ../util/util.h:27,
>                  from storage.h:38,
>                  from storage_fs.c:36:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 2 and 1280 bytes into a destination of size 1024
>    return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         __bos (__s), __fmt, __va_arg_pack ());
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o authreg_ldapfull.lo authreg_ldapfull.c
> authreg_ldapfull.c: In function '_ldapfull_chk_crypt':
> authreg_ldapfull.c:463:17: warning: implicit declaration of function 'crypt'; did you mean 'creat'? [-Wimplicit-function-declaration]
>      encrypted = crypt(passwd, salt);
>                  ^~~~~
>                  creat
> authreg_ldapfull.c:463:15: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>      encrypted = crypt(passwd, salt);
>                ^
> authreg_ldapfull.c: In function '_ldapfull_set_crypt':
> authreg_ldapfull.c:487:15: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>      encrypted = crypt(passwd, salt);
>                ^
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o storage_ldapvcard.lo storage_ldapvcard.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/mariadb -I/usr/include/mariadb/mysql -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o authreg_mysql_la-authreg_mysql.lo `test -f 'authreg_mysql.c' || echo './'`authreg_mysql.c
> /bin/bash ../libtool --quiet  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/mariadb -I/usr/include/mariadb/mysql -Wdate-time -D_FORTIFY_SOURCE=2 -I../c2s -I.. -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -funsigned-char -fdiagnostics-color -c -o storage_mysql_la-storage_mysql.lo `test -f 'storage_mysql.c' || echo './'`storage_mysql.c
> authreg_mysql.c: In function '_ar_mysql_set_password':
> authreg_mysql.c:243:26: warning: implicit declaration of function 'crypt'; did you mean 'bcrypt'? [-Wimplicit-function-declaration]
>          strcpy(password, crypt(password, salt));
>                           ^~~~~
>                           bcrypt
> authreg_mysql.c:243:26: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]
>          strcpy(password, crypt(password, salt));
>                           ^~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/features.h:424,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdlib.h:25,
>                  from /usr/include/expat.h:45,
>                  from ../c2s/c2s.h:25,
>                  from authreg_mysql.c:24:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:88:1: note: expected 'const char * restrict' but argument is of type 'int'
>  __NTH (strcpy (char *__restrict __dest, const char *__restrict __src))
>  ^~~~~
> authreg_mysql.c: In function '_ar_mysql_check_password':
> authreg_mysql.c:296:28: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
>                  crypted_pw = crypt(password,db_pw_value);
>                             ^
> authreg_mysql.c: In function 'ar_init':
> authreg_mysql.c:631:9: error: 'MYSQL' {aka 'struct st_mysql'} has no member named 'reconnect'
>      conn->reconnect = 1;
>          ^~
> storage_mysql.c: In function 'st_init':
> storage_mysql.c:616:9: error: 'MYSQL' {aka 'struct st_mysql'} has no member named 'reconnect'
>      conn->reconnect = 1;
>          ^~
> make[3]: *** [Makefile:827: authreg_mysql_la-authreg_mysql.lo] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2018/12/29/jabberd2_2.6.1-3_unstable.log

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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-xmpp-devel mailing list