From: Hans-Bernhard B. <HBB...@t-...> - 2013-06-23 22:42:58
|
On 20.06.2013 01:17, Tom...@l-... wrote: > I’ve been using cscope for many years now, and love it. > > I recently ran into a problem with using cscope on a cifs-mounted > filesystem (a Windows share). lstat() did not fail, but returned a > completely false stat structure. > > It turns out that on my Ubuntu system I need to compile cscope with the > following CFLAGS: > > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > There are no large files involved, but the inode is bigger than 32 bits, > which causes all sorts of problems. > > I’d fix it myself, but have no idea where this information would go… The canonical approach would be to put AC_SYS_LARGEFILE into configure.in. Full large file support would require some thorough rework of the file position handling, though, which might easily break more than it fixes. |