Could you please have a look and help me to figure out how to fix ophcrack
for my next upload ?
It currently FTBFS on both kfreebsd-i386 and kfreebsd-amd64 architecture.s It
looks like being quite trivial to fix :)
Compiler error:
misc.c:164: error: storage size of 'info' isn't known
misc.c:165: warning: implicit declaration of function 'sysinfo'
misc.c:164: warning: unused variable 'info'
Part of the misc.c:
#if HAVE_SYS_SYSINFO_H
struct sysinfo info;
sysinfo(&info);
freeram = (uint64_t)info.freeram;
cacheram = 0;
#elif HAVE_SYS_SYSCTL_H
int mib[2] = {CTL_HW, HW_USERMEM}, mem;
size_t len;
It is not sufficient to have file <sys/sysinfo>
available. The check whether the "struct sysinfo" is available is needed.
Into configure.in add
AC_CHECK_TYPES([struct sysinfo],[], [], [[#include <sys/sysinfo.h>]])
and later in misc.c use
#if HAVE_STRUCT_SYSINFO
Petr
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/[email protected]