Bug#421085: FTBFS: scanlogd.c:181: error: 'CLK_TCK' undeclared

2008-08-30 Thread Solar Designer
Debian fixed this bug incorrectly.  CLOCKS_PER_SEC is not a correct
substitute for CLK_TCK.  Please see:

http://www.openwall.com/lists/xvendor/2006/04/17/1

To make matters worse, the glibc documentation is buggy:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=2636

For scanlogd, the correct fix is to update to 2.2.6 - which, by the way,
was already out by the time Debian wrongly fixed the bug.

I find it likely that many other Debian packages have introduced similar
bugs, though (blindly replacing CLK_TCK with CLOCKS_PER_SEC).

Alexander



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#421085: FTBFS: scanlogd.c:181: error: 'CLK_TCK' undeclared

2007-04-26 Thread Jérémy Bobbio
Package: scanlogd
Version: 2.2.5-2
Severity: serious
Justification: no longer builds from source

Hi!

scanlogd currently fails to build from source in sid [1]:

--- 8 ---
gcc -c -Wall -O2 -fomit-frame-pointer scanlogd.c
scanlogd.c: In function 'safe_log':
scanlogd.c:181: error: 'CLK_TCK' undeclared (first use in this function)
scanlogd.c:181: error: (Each undeclared identifier is reported only once
scanlogd.c:181: error: for each function it appears in.)
scanlogd.c: In function 'process_packet':
scanlogd.c:239: error: 'CLK_TCK' undeclared (first use in this function)
make[1]: *** [scanlogd.o] Error 1
--- 8 ---

CLK_TCK is an obsolete name for CLOCKS_PER_SEC and was removed in
glibc 2.4.
See: http://www.gnu.org/software/libc/manual/html_node/CPU-Time.html

[1] http://people.debian.org/~lucas/logs/2007/04/rebuild.sid.i386.20070416/scanlogd_2.2.5-2_sid32.buildlog

Cheers,
-- 
Jérémy Bobbio.''`. 
[EMAIL PROTECTED]: :Ⓐ  :  # apt-get install anarchism
`. `'` 
  `-   


signature.asc
Description: Digital signature