We have just discovered what we think is a bug between the generic C compiler
provided with HP-UX 9.01 and AFS 3.3 which we have recently installed. Given
the sample test program below (tst.c), perform the following actions.
tst.c
============================
main()
{
printf("%s\n", STR);
return 0;
}
============================
1 $ cc -DSTR='"Hello"' -c tst.c && cc -o tst tst.o
2 $ ./tst
Hello
3 $ cc -DSTR='"Hello World"' -c tst.c && cc -o tst tst.o
4 $ ./tst
Hello
5 $ rm ./tst
6 $ cc -o tst tst.o
7 $ ./tst
Hello World
8 $
This problem occurs when the current working directory is in AFS. If you
duplicate the actions above in a non-AFS directory (e.g., /tmp), the program
output will be as expected.
We are currently debugging the problem with Transarc. The current workaround
is to remove the executable prior to linking.
We had some people spending most of the morning trying to debug programs that
did not have errors so I send this with the idea that it might save others
time that might otherwise be wasted.
- jss
--------------------------------------------------------------------------
Jon S. Stumpf [EMAIL PROTECTED] Merrill Lynch
World Financial Center
(212) 449-0498 Phone North Tower
(212) 449-0912 Fax New York, N.Y. 10281-1315
--------------------------------------------------------------------------