Note the use of __xstat64/fopen64 for the working code instead of __xstat/fopen for the non-working code. At this point I believed it had something to do with the use of 64bit offsets (USE_FILE_OFFSET64) but simply adding this define to the compiler commandline didn't fix the issue.
I'm not familiar with USE_FILE_OFFSET64, I thought the correct incantation was this:
gcc -D_FILE_OFFSET_BITS=64 Have you tried this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]