Bug#1080146: kannel: FTBFS: configure: error: Couldnot find gethostbyname_r nor gethostbyname functions

Santiago Vila sanvila at debian.org
Sun Sep 1 02:18:26 BST 2024


tags 1080146 + patch
thanks

> /usr/include/features.h:398:52: error: operator '&&' has no right operand
>    398 | #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64

This happens because _FILE_OFFSET_BITS is defined but empty.

Seems a bug in configure.in to me, in which case the following
patch might help, but I'm not sure it's correct.

If there is a better patch, please tell dkg at Bug #1080110,
where gmime has a very similar problem.

Thanks.
-------------- next part --------------
--- a/configure.in
+++ b/configure.in
@@ -206,7 +206,7 @@ AC_C_INLINE
 dnl Check for how to do large files
 
 AC_SYS_LARGEFILE(CFLAGS)
-if test "${ac_cv_sys_file_offset_bits}" != no ; then
+if test "${ac_cv_sys_file_offset_bits}" != no && test -n "$ac_cv_sys_file_offset_bits" ; then
     CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits}"
 fi
 if test "${ac_cv_sys_large_files}" != no ; then


More information about the Pkg-voip-maintainers mailing list