Sam Ravnborg wrote:
> Could you please confirm that the above command is the one that trashes
> /dev/null, then I will try to cook up something better.
scripts/kconfig/lxdialog/check-lxdialog.sh with debug
=====================================================
ldflags()
{
echo "ldflags 1" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
echo "main() {}" | $cc -lncursesw -xc - -o /dev/null 2> /dev/null
if [ $? -eq 0 ]; then
echo "ldflags 2" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
echo '-lncursesw'
exit
fi
echo "ldflags 3" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
echo "main() {}" | $cc -lncurses -xc - -o /dev/null 2> /dev/null
if [ $? -eq 0 ]; then
echo "ldflags 4" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
echo '-lncurses'
exit
fi
echo "ldflags 5" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
echo "main() {}" | $cc -lcurses -xc - -o /dev/null 2> /dev/null
if [ $? -eq 0 ]; then
echo "ldflags 6" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
echo '-lcurses'
exit
fi
echo "ldflags 7" >>/tmp/xxx 2>&1
ls -l /dev/null >>/tmp/xxx 2>&1
exit 1
}
content of /tmp/xxx
===================
ldflags 1
crw-rw-rw- 1 root root 1, 3 Jan 18 22:20 /dev/null
ldflags 3
ls: /dev/null: No such file or directory
ldflags 4
-rwxr-xr-x 1 root root 11650 Jan 18 22:20 /dev/null
--
Eyal Lebedinsky ([email protected]) <http://samba.org/eyal/>
attach .zip as .dat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]