Package: sparse
Version: 0.4.1-1
Severity: important
cgcc/sparse fail to find gcc headers, thus rendering this type of check
unusable:
tmp $ cgcc -c test.c
/usr/include/stdio.h:34:12: error: unable to open 'stddef.h'
tmp $ cat test.c
#include <stdio.h>
int main(void) {
printf("Hello, World\n");
return 0;
}
I was able to w/around this problem by adding near the top of cgcc the
following lines:
my $include = `$cc -print-file-name=include`;
chomp($include);
$check .= ' -isystem ' . $include;
-- System Information:
Debian Release: lenny/sid
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'unstable'), (500,
'testing')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.27-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages sparse depends on:
ii libc6 2.7-15 GNU C Library: Shared libraries
sparse recommends no packages.
sparse suggests no packages.
-- debconf-show failed
--
With best wishes
Dmitry
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]