Package: src:pam-pgsql
Version: 0.7.3.2-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules build
dh build --with autotools_dev
dh: warning: Compatibility levels before 10 are deprecated (level 7 in use)
dh: warning: The autotools-dev sequence is deprecated and replaced by dh in 
debhelper (>= 9.20160115)
dh: warning: This feature will be removed in compat 12.
   dh_update_autotools_config
cp: warning: behavior of -n is non-portable and may change in future; use 
--update=none instead
cp: warning: behavior of -n is non-portable and may change in future; use 
--update=none instead
   dh_autotools-dev_updateconfig
dh_autotools-dev_updateconfig: warning: Compatibility levels before 10 are 
deprecated (level 7 in use)
dh_autotools-dev_updateconfig: warning: dh_autotools-dev_updateconfig is 
deprecated; please see dh_autotools-dev_updateconfig(1) for a replacement
dh_autotools-dev_updateconfig: warning: This feature will be removed in compat 
12.
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
autoreconf -vfi
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/bin/autoconf --force
configure.ac:21: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in 
body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2894: _AC_LINK_IFELSE is expanded from...
./lib/autoconf/general.m4:2911: AC_LINK_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.ac:21: the top level
configure.ac:23: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in 
body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/attributes.m4:38: CC_CHECK_CFLAGS_SILENT is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:135: CC_CHECK_WERROR is expanded from...
m4/attributes.m4:144: CC_CHECK_ATTRIBUTE is expanded from...
m4/attributes.m4:186: CC_ATTRIBUTE_VISIBILITY is expanded from...
configure.ac:23: the top level
configure.ac:23: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in 
body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/attributes.m4:38: CC_CHECK_CFLAGS_SILENT is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
m4/attributes.m4:38: CC_CHECK_CFLAGS_SILENT is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:135: CC_CHECK_WERROR is expanded from...
m4/attributes.m4:144: CC_CHECK_ATTRIBUTE is expanded from...
m4/attributes.m4:186: CC_ATTRIBUTE_VISIBILITY is expanded from...
configure.ac:23: the top level
configure.ac:23: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in 
body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:144: CC_CHECK_ATTRIBUTE is expanded from...
m4/attributes.m4:186: CC_ATTRIBUTE_VISIBILITY is expanded from...
configure.ac:23: the top level
configure.ac:23: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in 
body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/attributes.m4:38: CC_CHECK_CFLAGS_SILENT is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:250: CC_FLAG_VISIBILITY is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
m4/attributes.m4:144: CC_CHECK_ATTRIBUTE is expanded from...
m4/attributes.m4:186: CC_ATTRIBUTE_VISIBILITY is expanded from...
configure.ac:23: the top level
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:14: installing './compile'
configure.ac:10: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
# Build the module
./configure ASFLAGS="" ASFLAGS_FOR_BUILD="" CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" CFLAGS_FOR_BUILD="-g -O2" CPPFLAGS="-Wdate-time 
-D_FORTIFY_SOURCE=2" CPPFLAGS_FOR_BUILD="" CXXFLAGS="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" CXXFLAGS_FOR_BUILD="-g -O2" DFLAGS="-frelease" DFLAGS_FOR_BUILD="-frelease" 
FCFLAGS="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection" FCFLAGS_FOR_BUILD="-g -O2" FFLAGS="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -fcf-protection" FFLAGS_FOR_BUILD="-g 
-O2" LDFLAGS="-Wl,-z,relro" LDFLAGS_FOR_BUILD="" OBJCFLAGS="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" OBJCFLAGS_FOR_BUILD="-g -O2" OBJCXXFLAGS="-g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" OBJCXXFLAGS_FOR_BUILD="-g -O2"  --docdir=/usr/share/doc/libpam-pgsql --libdir=/lib \
 --enable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu 
format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... 
func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for security/pam_modules.h... yes
checking for security/openpam.h... no
checking for security/pam_misc.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking if gcc supports -Wl,--no-undefined flag... yes
checking for gcc way to treat warnings as errors... -Werror
checking if gcc supports __attribute__(( visibility("default") ))... yes
checking if gcc supports -fvisibility=hidden... yes
checking for library containing crypt... -lcrypt
checking for pam_get_user in -lpam... yes
checking where to install the PAM module... $(libdir)/security
checking for openpam_ttyconv... no
checking for misc_conv in -lpam_misc... yes
checking for pg_config... /usr/bin/pg_config
checking for PostgreSQL libraries... yes
checking for gpgrt-config... /usr/bin/gpgrt-config
configure: Use gpgrt-config with /usr/lib/x86_64-linux-gnu as gpg-error-config
configure: Use gpgrt-config as libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.0... yes (1.10.3)
checking LIBGCRYPT API version... okay
checking where to look for the pam_pgsql.conf file... /etc
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 7 
in use)
        make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-am
make[2]: Entering directory '/<<PKGBUILDDIR>>'
  CC       src/pam_pgsql_la-pam_pgsql.lo
  CC       src/pam_pgsql_la-pam_pgsql_options.lo
src/pam_pgsql_options.c:298:13: warning: ‘free_mod_options’ defined but not 
used [-Wunused-function]
  298 | static void free_mod_options(modopt_t *options) {
      |             ^~~~~~~~~~~~~~~~
src/pam_pgsql_options.c: In function ‘mod_options’:
src/pam_pgsql_options.c:276:50: warning: ‘%s’ directive argument is null 
[-Wformat-overflow=]
  276 |             sprintf(modopt->query_acct, "select (%s = 'y' OR %s = '1'), false, (%s IS NULL OR 
%s = '') from %s where %s = %%u", modopt->column_newpwd, modopt->column_newpwd, 
modopt->column_pwd, modopt->column_pwd, modopt->table, modopt->column_user);
      |                                                  ^~
  CC       src/pam_pgsql_la-backend_pgsql.lo
src/backend_pgsql.c: In function ‘password_encrypt’:
src/backend_pgsql.c:282:44: error: implicit declaration of function ‘crypt’ 
[-Werror=implicit-function-declaration]
  282 |                                 s = strdup(crypt(pass, 
crypt_makesalt(options->pw_type)));
      |                                            ^~~~~
src/backend_pgsql.c:282:44: warning: passing argument 1 of ‘strdup’ makes 
pointer from integer without a cast [-Wint-conversion]
  282 |                                 s = strdup(crypt(pass, 
crypt_makesalt(options->pw_type)));
      |                                            
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            int
In file included from src/backend_pgsql.c:15:
/usr/include/string.h:187:34: note: expected ‘const char *’ but argument is of 
type ‘int’
  187 | extern char *strdup (const char *__s)
      |                      ~~~~~~~~~~~~^~~
src/backend_pgsql.c:284:44: warning: passing argument 1 of ‘strdup’ makes 
pointer from integer without a cast [-Wint-conversion]
  284 |                                 s = strdup(crypt(pass, salt));
      |                                            ^~~~~~~~~~~~~~~~~
      |                                            |
      |                                            int
/usr/include/string.h:187:34: note: expected ‘const char *’ but argument is of 
type ‘int’
  187 | extern char *strdup (const char *__s)
      |                      ~~~~~~~~~~~~^~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:50:10: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   50 |          strncat(str, options->db, strlen(options->db));
      |          ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:50:10: note: length computed here
   50 |          strncat(str, options->db, strlen(options->db));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:55:17: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   55 |                 strncat(str, options->host, strlen(options->host));
      |                 ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:55:17: note: length computed here
   55 |                 strncat(str, options->host, strlen(options->host));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:59:17: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   59 |                 strncat(str, options->port, strlen(options->port));
      |                 ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:59:17: note: length computed here
   59 |                 strncat(str, options->port, strlen(options->port));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:63:17: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   63 |                 strncat(str, options->timeout, 
strlen(options->timeout));
      |                 ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:63:17: note: length computed here
   63 |                 strncat(str, options->timeout, 
strlen(options->timeout));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:67:17: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   67 |                 strncat(str, options->user, strlen(options->user));
      |                 ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:67:17: note: length computed here
   67 |                 strncat(str, options->user, strlen(options->user));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:71:17: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   71 |                 strncat(str, options->passwd, strlen(options->passwd));
      |                 ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:71:17: note: length computed here
   71 |                 strncat(str, options->passwd, strlen(options->passwd));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘db_connect’:
src/backend_pgsql.c:75:17: warning: ‘__builtin___strncat_chk’ specified bound 
depends on the length of the source argument [-Wstringop-overflow=]
   75 |                 strncat(str, options->sslmode, 
strlen(options->sslmode));
      |                 ^
In function ‘build_conninfo’,
    inlined from ‘db_connect’ at src/backend_pgsql.c:87:22:
src/backend_pgsql.c:75:17: note: length computed here
   75 |                 strncat(str, options->sslmode, 
strlen(options->sslmode));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/backend_pgsql.c: In function ‘password_encrypt’:
src/backend_pgsql.c:306:25: warning: ‘__builtin_strncpy’ output truncated 
before terminating nul copying 3 bytes from a string of the same length 
[-Wstringop-truncation]
  306 |                         strncpy(s, "md5", 3);
      |                         ^
cc1: some warnings being treated as errors
make[2]: *** [Makefile:599: src/pam_pgsql_la-backend_pgsql.lo] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:412: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:25: build] Error 255
dpkg-buildpackage: error: debian/rules build 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/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to