Description of problem: john does not compile with libc-headers-2.4-4 which ships with FC5 due to erroneous usage of CLK_TCK. Version-Release number of selected component (if applicable): john-1.6-4.src.rpm How reproducible: 100% Steps to Reproduce: 1. rpmbuild --rebuild source rpm or rpmbuild -bb spec.file Actual results: Build fails. bench.c: In function âbenchmark_formatâ: bench.c:106: error: âCLK_TCKâ undeclared (first use in this function) bench.c:106: error: (Each undeclared identifier is reported only once bench.c:106: error: for each function it appears in.) bench.c: In function âbenchmark_cpsâ: bench.c:147: error: âCLK_TCKâ undeclared (first use in this function) make[1]: *** [bench.o] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/john-1.6-orig/src' make: *** [generic.h] Error 1 Expected results: Build should succeed. Additional info: CLK_TCK should be replaced with CLOCKS_PER_SEC. Patch attached.
Created attachment 127566 [details] Patch to fix CLK_TCK usage
In extras-development there is now john-1.7.0.2-2 It uses: #if defined(_SC_CLK_TCK) || !defined(CLK_TCK) clk_tck = sysconf(_SC_CLK_TCK); #else clk_tck = CLK_TCK; #endif } does this work for you or is this still wrong?
I will assume the bug is fixed when you do not respond soon.
assumed to be fixed, please reopen when you have additional info and the bug is still present.