[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ophcrack: FTBFS because of sysinfo.h



Hello,

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;

Source packlage is available here:
http://mentors.debian.net/debian/pool/main/o/ophcrack/ophcrack_3.3.1-1.dsc

And the full build log file is attached.


Thanks in advance,

Regards, Adam.

dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package ophcrack
dpkg-buildpackage: source version 3.3.1-1
dpkg-buildpackage: source changed by Adam Cécile (Le_Vert) <gandalf@le-vert.net>
dpkg-buildpackage: host architecture kfreebsd-i386
 debian/rules clean
dh_testdir
dh_testroot
dh_clean config.sub config.guess \
		 build-qt4 build-cli build-stamp \
		 configure-qt4 configure-cli configure-stamp \
		 prepare-qt4 prepare-cli prepare-base prepare-stamp} \
		 config.log
rm -rf /root/ophcrack-3.3.1/debian/tmp
dh_clean
 debian/rules build
dh_testdir
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
touch prepare-base
mkdir -p /root/ophcrack-3.3.1/debian/tmp/qt4
cp -a `ls -d /root/ophcrack-3.3.1/* | grep -v '/debian$'` /root/ophcrack-3.3.1/debian/tmp/qt4
touch prepare-qt4
mkdir -p /root/ophcrack-3.3.1/debian/tmp/cli
cp -a `ls -d /root/ophcrack-3.3.1/* | grep -v '/debian$'` /root/ophcrack-3.3.1/debian/tmp/cli
touch prepare-cli
touch prepare-stamp
cd /root/ophcrack-3.3.1/debian/tmp/qt4; \
	./configure --host=i486-kfreebsd-gnu --build=i486-kfreebsd-gnu --prefix=/usr CFLAGS="-Wall -g -O2" LDFLAGS="-Wl,-z,defs" \
		    --enable-gui \
		    --enable-graph
checking build system type... i486-pc-kfreebsd-gnu
checking host system type... i486-pc-kfreebsd-gnu
checking for i486-kfreebsd-gnu-g++... i486-kfreebsd-gnu-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i486-kfreebsd-gnu-g++ accepts -g... yes
checking for i486-kfreebsd-gnu-gcc... i486-kfreebsd-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether i486-kfreebsd-gnu-gcc accepts -g... yes
checking for i486-kfreebsd-gnu-gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for i486-kfreebsd-gnu-ranlib... no
checking for ranlib... ranlib
checking for Mac OS X or WIN32 or Solaris... no
checking how to run the C preprocessor... i486-kfreebsd-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for libpthread... checking for pthread_mutex_init in -lpthread... yes
checking for libssl... OpenSSL found in /usr
checking for sqrt in -lm... yes
checking for ANSI C header files... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking libkern/OSByteOrder.h usability... no
checking libkern/OSByteOrder.h presence... no
checking for libkern/OSByteOrder.h... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uchar_t... no
checking for ulong_t... no
checking for libqt4... checking if graph drawing is enabled... yes
checking for libqwt... Qwt found in /usr
checking whether we want to build ophcrack gui... yes
checking for egrep... (cached) /bin/grep -E
checking for qmake-qt4... /usr/bin/qmake-qt4
checking for qmake... /usr/bin/qmake
checking for Qt4 version of qmake... /usr/bin/qmake-qt4
checking for egrep... (cached) /bin/grep -E
checking for moc-qt4... /usr/bin/moc-qt4
checking for moc... /usr/bin/moc
checking for Qt4 version of moc... /usr/bin/moc-qt4
checking if debugging is enabled... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for floor... yes
checking for gettimeofday... yes
checking for memchr... yes
checking for memset... yes
checking for munmap... yes
checking for regcomp... yes
checking for select... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strndup... yes
checking for strtoul... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/gui/gui.pro
config.status: creating src/gui/ophcrack_win32.rc
config.status: creating src/samdump2/Makefile
config.status: creating config.h
configure: Generating GUI Makefile with qmake
WARNING: Failure to find: ui_ophcrackgui.h
WARNING: Failure to find: ui_tabledialog.h

====================================================
ophcrack has been successfully configured as follow
====================================================

 Install directory: /usr

 GUI: yes
 Graph display: yes
 Debugging: no

====================================================

Now enter 'make' to compile
followed by 'make install' to install

touch configure-qt4
cd /root/ophcrack-3.3.1/debian/tmp/cli; \
	./configure --host=i486-kfreebsd-gnu --build=i486-kfreebsd-gnu --prefix=/usr CFLAGS="-Wall -g -O2" LDFLAGS="-Wl,-z,defs" \
		    --disable-gui \
		    --disable-graph
checking build system type... i486-pc-kfreebsd-gnu
checking host system type... i486-pc-kfreebsd-gnu
checking for i486-kfreebsd-gnu-g++... i486-kfreebsd-gnu-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i486-kfreebsd-gnu-g++ accepts -g... yes
checking for i486-kfreebsd-gnu-gcc... i486-kfreebsd-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether i486-kfreebsd-gnu-gcc accepts -g... yes
checking for i486-kfreebsd-gnu-gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for i486-kfreebsd-gnu-ranlib... no
checking for ranlib... ranlib
checking for Mac OS X or WIN32 or Solaris... no
checking how to run the C preprocessor... i486-kfreebsd-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for libpthread... checking for pthread_mutex_init in -lpthread... yes
checking for libssl... OpenSSL found in /usr
checking for sqrt in -lm... yes
checking for ANSI C header files... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking libkern/OSByteOrder.h usability... no
checking libkern/OSByteOrder.h presence... no
checking for libkern/OSByteOrder.h... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uchar_t... no
checking for ulong_t... no
checking for libqt4... checking if graph drawing is enabled... no
checking whether we want to build ophcrack gui... no
checking if debugging is enabled... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for floor... yes
checking for gettimeofday... yes
checking for memchr... yes
checking for memset... yes
checking for munmap... yes
checking for regcomp... yes
checking for select... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strndup... yes
checking for strtoul... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/gui/gui.pro
config.status: creating src/gui/ophcrack_win32.rc
config.status: creating src/samdump2/Makefile
config.status: creating config.h

====================================================
ophcrack has been successfully configured as follow
====================================================

 Install directory: /usr

 GUI: no
 Graph display: no
 Debugging: no

====================================================

Now enter 'make' to compile
followed by 'make install' to install

touch configure-cli
touch configure-stamp
dh_testdir
/usr/bin/make -C /root/ophcrack-3.3.1/debian/tmp/qt4
make[1]: Entering directory `/root/ophcrack-3.3.1/debian/tmp/qt4'
make[2]: Entering directory `/root/ophcrack-3.3.1/debian/tmp/qt4/src/samdump2'
i486-kfreebsd-gnu-gcc -Wall -g -O2 -Wall -std=gnu9x -pedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I.. -I/usr/include -O2 -DNDEBUG -I./.. -I./../..   -c -o hive.o hive.c
i486-kfreebsd-gnu-gcc -Wall -g -O2 -Wall -std=gnu9x -pedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I.. -I/usr/include -O2 -DNDEBUG -I./.. -I./../..   -c -o bkhive.o bkhive.c
i486-kfreebsd-gnu-gcc -Wall -g -O2 -Wall -std=gnu9x -pedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I.. -I/usr/include -O2 -DNDEBUG -I./.. -I./../..   -c -o samdump2.o samdump2.c
ar r libsamdump2.a hive.o bkhive.o samdump2.o
ar: creating libsamdump2.a
ranlib libsamdump2.a
make[2]: Leaving directory `/root/ophcrack-3.3.1/debian/tmp/qt4/src/samdump2'
make[2]: Entering directory `/root/ophcrack-3.3.1/debian/tmp/qt4/src'
i486-kfreebsd-gnu-gcc -Wall -g -O2 -Wall -std=gnu9x -pedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I.. -I/usr/include -O2 -DNDEBUG -I./samdump2   -c -o list.o list.c
i486-kfreebsd-gnu-gcc -Wall -g -O2 -Wall -std=gnu9x -pedantic -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I.. -I/usr/include -O2 -DNDEBUG -I./samdump2   -c -o misc.o misc.c
misc.c: In function 'find_freeram':
misc.c:144: warning: format '%lu' expects type 'long unsigned int *', but argument 3 has type 'uint64_t *'
misc.c:153: warning: format '%lu' expects type 'long unsigned int *', but argument 3 has type 'uint64_t *'
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'
make[2]: *** [misc.o] Error 1
make[2]: Leaving directory `/root/ophcrack-3.3.1/debian/tmp/qt4/src'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/ophcrack-3.3.1/debian/tmp/qt4'
make: *** [build-qt4] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reply to: