Bug#1114195: mailfront: FTBFS: /usr/include/bglibs/sysdeps.h:91:12: error: conflicting types for 'select'; have 'int(void)'
Package: src:mailfront
Version: 2.12-3
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build.
Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202509/
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:mailfront, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean
make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f `cat TARGETS`
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
echo '/usr/sbin' >conf-bin
echo '/usr/include/bglibs' >conf-bgincs
echo '/usr/lib' >conf-bglibs
echo 'cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection' >conf-cc
echo 'cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -shared' >conf-ccso
echo 'cc' >conf-ld
echo '/usr/include' >conf-include
echo '/usr/lib/mailfront' >conf-modules
echo '/var/lib/qmail' >conf-qmail
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
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>>'
( echo '#!/bin/sh'; \
echo 'lib="$1"; shift';\
echo 'rm -f "$lib"';\
echo 'ar cr "$lib" ${1+"$@"}';\
echo 'ranlib "$lib"';\
) >makelib
( echo '#!/bin/sh'; \
echo 'source=$1; shift'; \
echo 'base=`echo "$source" | sed -e s:\\\\.c$::`'; \
echo exec `head -n 1 conf-cc` -I. '-o ${base}.o -c $source ${1+"$@"}'; \
) >compile
chmod 755 makelib
( echo '#!/bin/sh'; \
echo 'source=$1; shift'; \
echo 'base=`echo "$source" | sed -e s:\\\\.c$::`'; \
echo exec `head -n 1 conf-ccso` -DSHARED -I. -L. '-o ${base}.so $source ${1+"$@"}'; \
) >makeso
chmod 755 compile
head -n 1 conf-qmail | \
sed -e 's/"/\\"/g' \
-e 's/^/const char conf_qmail[] = "/' \
-e 's/$/";/' >conf_qmail.c
chmod 755 makeso
./compile mailfront.c
( echo '#!/bin/sh';\
echo 'main="$1"; shift';\
echo exec `head -n 1 conf-ld` -L. '-o "$main" "$main.o" ${1+"$@"}'; \
) >load
chmod 755 load
./compile builtins.c
In file included from /usr/include/bglibs/msg.h:4,
from mailfront.c:6:
/usr/include/bglibs/sysdeps.h:91:12: error: conflicting types for â??selectâ??; have â??int(void)â??
91 | extern int select();
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /usr/include/stdlib.h:514,
from mailfront.c:1:
/usr/include/x86_64-linux-gnu/sys/select.h:102:12: note: previous declaration of â??selectâ?? with type â??int(int, fd_set * restrict, fd_set * restrict, fd_set * restrict, struct timeval * restrict)â??
102 | extern int select (int __nfds, fd_set *__restrict __readfds,
| ^~~~~~
In file included from /usr/include/bglibs/obuf.h:5,
from /usr/include/bglibs/iobuf.h:6,
from mailfront.h:5,
from mailfront-internal.h:4,
from builtins.c:2:
/usr/include/bglibs/sysdeps.h:91:12: error: conflicting types for â??selectâ??; have â??int(void)â??
91 | extern int select();
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
from /usr/include/stdlib.h:514,
from builtins.c:1:
/usr/include/x86_64-linux-gnu/sys/select.h:102:12: note: previous declaration of â??selectâ?? with type â??int(int, fd_set * restrict, fd_set * restrict, fd_set * restrict, struct timeval * restrict)â??
102 | extern int select (int __nfds, fd_set *__restrict __readfds,
| ^~~~~~
make[2]: *** [Makefile:26: builtins.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:95: mailfront.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned exit code 2
make[1]: *** [debian/rules:20: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Reply to: