lkml.org 
[lkml]   [2006]   [Jan]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 18 Jan 2006 19:12:47 +0100
FromJean Delvare <>
SubjectRe: Linux 2.6.16-rc1
Hi Jan, Sam,

> Anyway, SUSE 10.0/i386:
> 
> 14:20 takeshi:~ > l /dev/null
> crw-rw-rw-  1 root root 1, 3 Sep  9 18:40 /dev/null
> 14:20 takeshi:~ > echo 'main(){}' | gcc -xc -c - -o /dev/null
> 14:21 takeshi:~ > echo $?
> 0
> 14:21 takeshi:~ > l /dev/null
> crw-rw-rw-  1 root root 1, 3 Sep  9 18:40 /dev/null
> 
> 
> 14:22 takeshi:/home/jengelh # echo 'main(){}' | gcc -xc -c - -o /dev/null
> 14:22 takeshi:/home/jengelh # echo $?
> 0
> 14:22 takeshi:/home/jengelh # l /dev/null
> crw-rw-rw-  1 root root 1, 3 Sep  9 18:40 /dev/null
> 
> So what is (not) happening?

This ain't exactly the same command Sam had me test earlier today. This
one breaks my /dev/null:

  echo "main() {}" | gcc -xc - -o /dev/null
But this one doesn't:

  echo 'main() {}' | gcc -xc -c - -o /dev/null
I.e., the additional -c seems to make a difference (at least in my
case.) Sam, maybe that's an easier and more efficient fix than
resorting to a temporary file?

Thanks,
-- 
Jean Delvare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-01-18 19:14    [from the cache]
©2003-2008