Ticket #2093 (closed bug: fixed)
getSymbolicLinkStatus (and possibly other functions) broken on systems with large file system support
|Reported by:||JeremyShaw||Owned by:|
|Type of failure:||Difficulty:||Unknown|
|Test Case:||Blocked By:|
This thread contains more details:
Basically, it appears that the unix module is built without the large filesystem support enabled, so it calls the 32-bit version of lstat. But hsc2hs includes header files that enable large file system support, so the offsets are for the stat64 struct. This means many fields in FileStatus? are filled with garbage.
I have attached a patch which adds the AC_SYS_LARGEFILE macro to configure.ac. This is the same macro which enables large file support in ghc. There could still be a problem however. For example, if you built ghc on a system without large file support, and but the unix module on a system with large file support -- then they would be out of sync. This patch seems better than the current situation however.