Bug#1080146: kannel: FTBFS: configure: error: Couldnot find gethostbyname_r nor gethostbyname functions
Santiago Vila
sanvila at debian.org
Fri Aug 30 18:40:08 BST 2024
Package: src:kannel
Version: 1.4.5-17
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary
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
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
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_autoreconf
autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
[... snipped ...]
| something starting with __ and the normal name is an alias. */
| #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
| choke me
| #endif
|
| int
| main (void)
| {
| return gethostbyname_r ();
| ;
| return 0;
| }
configure:17846: result: no
configure:17962: checking for gethostbyname
configure:17962: gcc -o conftest -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS= -D_LARGE_FILES= -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -rdynamic conftest.c -lresolv -lm -lpthread >&5
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/limits.h:26,
from /usr/lib/gcc/x86_64-linux-gnu/14/include/limits.h:210,
from /usr/lib/gcc/x86_64-linux-gnu/14/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/14/include/limits.h:34,
from conftest.c:45:
/usr/include/features.h:398:52: error: operator '&&' has no right operand
398 | #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
| ^~
configure:17962: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define GW_NAME "Kannel"
| #define GW_VERSION "1.4.5"
| #define VERSION "1.4.5"
| #define PACKAGE "Kannel"
| #define VERSION "1.4.5"
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define SIZEOF_SHORT 0
| #define SIZEOF_INT 0
| #define SIZEOF_LONG 0
| #define SIZEOF_LONG_LONG 0
| #define HAVE_LIBM 1
| #define HAVE_LIBRESOLV 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE___FUNCTION__ 1
| #define HAVE___FUNC__ 1
| #define ICONV_CONST
| /* end confdefs.h. */
| /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define gethostbyname innocuous_gethostbyname
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char gethostbyname (void); below. */
|
| #include <limits.h>
| #undef gethostbyname
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char gethostbyname (void);
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_gethostbyname || defined __stub___gethostbyname
| choke me
| #endif
|
| int
| main (void)
| {
| return gethostbyname ();
| ;
| return 0;
| }
configure:17962: result: no
configure:17968: error: Couldnot find gethostbyname_r nor gethostbyname functions
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_c_inline=inline
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-Wdate-time -D_FORTIFY_SOURCE=2'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-z,relro -Wl,-z,now'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_MYSQLCLIENT_CFLAGS_set=
ac_cv_env_MYSQLCLIENT_CFLAGS_value=
ac_cv_env_MYSQLCLIENT_LIBS_set=
ac_cv_env_MYSQLCLIENT_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-linux-gnu
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_backtrace=no
ac_cv_func_gethostbyname=no
ac_cv_func_gethostbyname_r=no
ac_cv_func_getopt=no
ac_cv_func_getopt_long=no
ac_cv_func_gettimeofday=no
ac_cv_func_gmtime_r=no
ac_cv_func_initgroups=no
ac_cv_func_localtime_r=no
ac_cv_func_select=no
ac_cv_func_socket=no
ac_cv_func_srandom=no
ac_cv_func_strdup=no
ac_cv_func_strtoll=no
ac_cv_func_strtoq=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_execinfo_h=no
ac_cv_header_getopt_h=no
ac_cv_header_inttypes_h=yes
ac_cv_header_net_if_h=no
ac_cv_header_netinet_in_h=no
ac_cv_header_pthread_h=no
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_ioctl_h=no
ac_cv_header_sys_poll_h=no
ac_cv_header_sys_socket_h=no
ac_cv_header_sys_sockio_h=no
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_time_h=no
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_ucontext_h=no
ac_cv_header_syslog_h=no
ac_cv_header_unistd_h=yes
ac_cv_header_zlib_h=no
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_lib_bind_inet_ntop=no
ac_cv_lib_iconv_libiconv=no
ac_cv_lib_m_log=yes
ac_cv_lib_nsl_inet_ntoa=no
ac_cv_lib_pthread_pthread_exit=yes
ac_cv_lib_resolv_inet_ntop=yes
ac_cv_lib_socket_accept=no
ac_cv_objext=o
ac_cv_path_CONVERT=/usr/bin/convert
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_EGREP_TRADITIONAL='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_lt_DD=/usr/bin/dd
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_FILECMD=file
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_make_make_set=yes
ac_cv_sizeof_int=0
ac_cv_sizeof_long=0
ac_cv_sizeof_long_long=0
ac_cv_sizeof_short=0
ac_cv_sys_largefile_opts='none needed'
acl_cv_libdirstems=lib,lib,lib64
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
am_cv_CC_dependencies_compiler_type=none
am_cv_func_iconv='no, consider installing GNU libiconv'
am_cv_func_iconv_summary='no, consider installing GNU libiconv'
am_cv_lib_iconv=no
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
gl_cv_elf=yes
gl_cv_host_cpu_c_abi_32bit=no
gl_cv_iconv_nonconst=yes
lt_cv_ar_at_file=@
lt_cv_archive_cmds_need_lc=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_pic='-fPIC -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_shlibpath_overrides_runpath=yes
lt_cv_sys_global_symbol_pipe='/usr/bin/sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | /usr/bin/sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='/usr/bin/sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='/usr/bin/sed -n -e '\''s/^: \(.*\) .*$/ {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/ {"\1", (void *) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/ {"lib\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='/usr/bin/sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_global_symbol_to_import=
lt_cv_sys_max_cmd_len=1572864
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
lt_cv_truncate_bin='/usr/bin/dd bs=4096 count=1'
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/<<PKGBUILDDIR>>/missing'\'' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR='ar'
AUTOCONF='${SHELL} '\''/<<PKGBUILDDIR>>/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/<<PKGBUILDDIR>>/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/<<PKGBUILDDIR>>/missing'\'' automake-1.16'
AWK='gawk'
BUILD_DATE='2024-05-23'
BUILD_STARTSTOPDAEMON_FALSE=''
BUILD_STARTSTOPDAEMON_TRUE=''
CC='gcc'
CCDEPMODE='depmode=none'
CFLAGS='-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS= -D_LARGE_FILES='
CONVERT='/usr/bin/convert'
CPP='gcc -E'
CPPFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2'
CSCOPE='cscope'
CTAGS='ctags'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DOCDRAFTS=''
DOCSTARGET=''
DSYMUTIL=''
DUMPBIN=''
DVIPS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
ETAGS='etags'
EXEEXT=''
EXE_EXT=''
FGREP='/usr/bin/grep -F'
FIG2DEV=''
FILECMD='file'
GREP='/usr/bin/grep'
GSOAP_SHARE=''
GW_VERSION=''
HTML_DSL=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JADE=''
JADETEX=''
LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS='-Wl,-z,relro -Wl,-z,now -rdynamic'
LEX=':'
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBICONV=''
LIBOBJS=' utils/attgetopt.o'
LIBS='-lresolv -lm -lpthread'
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO=''
LN_S='ln -s'
LTLIBICONV=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} '\''/<<PKGBUILDDIR>>/missing'\'' makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='/usr/bin/mkdir -p'
MYSQLCLIENT_CFLAGS=''
MYSQLCLIENT_LIBS=''
MYSQL_CONFIG=''
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OLD_LIBTOOL='ar rc'
OPENSSL=''
OTOOL64=''
OTOOL=''
PACKAGE='Kannel'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PCRE_CONFIG=''
PDFJADETEX=''
PERL='/usr/bin/perl'
PGSQL_CONFIG=''
PKGADD_NAME='Kannel - WAP and SMS gateway'
PKGADD_PKG='KANNELgateway'
PKGADD_VENDOR='www.kannel.org'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB='ranlib'
REDIS_CONFIG=''
SDB_CONFIG=''
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
SIZEOF_INT='0'
SIZEOF_LONG='0'
SIZEOF_LONG_LONG='0'
SIZEOF_SHORT='0'
SOAPCPP=''
SOAP_INCLUDE=''
SQLITE3=''
SQLITE=''
STRIP='strip'
SUFFIX=''
TEX_DSL=''
VERSION='1.4.5'
WSDL2H=''
XML2_CONFIG=''
XML_DCL=''
YACC='bison -y'
YFLAGS=''
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${prefix}/share/doc/kannel'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${prefix}/share/info'
install_sh='${SHELL} /<<PKGBUILDDIR>>/install-sh'
libdir='${prefix}/lib/x86_64-linux-gnu'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='${prefix}/share/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define GW_NAME "Kannel"
#define GW_VERSION "1.4.5"
#define VERSION "1.4.5"
#define PACKAGE "Kannel"
#define VERSION "1.4.5"
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define STDC_HEADERS 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define SIZEOF_SHORT 0
#define SIZEOF_INT 0
#define SIZEOF_LONG 0
#define SIZEOF_LONG_LONG 0
#define HAVE_LIBM 1
#define HAVE_LIBRESOLV 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDLIB_H 1
#define HAVE___FUNCTION__ 1
#define HAVE___FUNC__ 1
#define ICONV_CONST
configure: exit 1
dh_auto_configure: error: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules --enable-warnings --enable-docs --enable-pam --enable-ssl --with-ssl=/usr --with-mysql --with-mysql-dir=/usr --without-sqlite2 --with-sqlite3 --with-pgsql --with-pgsql-dir=/usr --with-redis --with-redis-dir=/usr --with-mssql=/usr returned exit code 1
make[1]: *** [debian/rules:15: override_dh_auto_configure] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: 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/202408/
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.
More information about the Pkg-voip-maintainers
mailing list