Hi, Thanks for the report. I prepared a patch (attached) but I have no way to test it. Could somebody with access to a kfreebsd box test it to make sure there are no other issues ?
Thanks, Bertrand
Description: fix FTBS on kfreebsd by checking properly the existence of malloc_np.h Author: Bertrand Marc <beberk...@gmail.com> --- a/configure.ac +++ b/configure.ac @@ -635,7 +635,7 @@ # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) -AC_CHECK_HEADERS([malloc.h malloc/malloc.h langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h netinet/in_systm.h netinet/ip.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h ucred.h sys/ucred.h endian.h sys/endian.h execinfo.h]) +AC_CHECK_HEADERS([malloc.h malloc/malloc.h malloc_np.h langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h netinet/in_systm.h netinet/ip.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h ucred.h sys/ucred.h endian.h sys/endian.h execinfo.h]) SAVE_LDFLAGS=$LDFLAGS SAVE_CPPFLAGS=$CPPFLAGS --- a/src/util/common_allocation.c +++ b/src/util/common_allocation.c @@ -197,7 +197,7 @@ #if WINDOWS #define M_SIZE(p) _msize (p) #endif -#ifdef FREEBSD +#if HAVE_MALLOC_NP_H #include <malloc_np.h> #endif #if HAVE_MALLOC_USABLE_SIZE
signature.asc
Description: OpenPGP digital signature