Bug #256
No 64-bit stat in 32-bit build
100%
Description
After having read the following thread "64-bit stat (or not) in 32-bit Fedora binaries" - http://lists.fedoraproject.org/pipermail/devel/2013-February/178821.html - I've examined the 32-bit build of Audacious:
$ nm -uD audacious |grep xstat
U __xstat
Apparently, it didn't build with the large file stat(). For the AC_SYS_LARGEFILE configure check, the build log said:
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
It stored the result in config.h instead of adding it to the compiler command-line. I've tracked down the files that call stat(), and they include config.h after sys/stat.h. Changing the order fixes the build:
$ nm -uD usr/bin/audacious |grep xstat
U __xstat64
$ grep sys/stat * -R|grep ^src
src/libaudcore/vfs.c:#include <sys/stat.h>
src/audacious/main.c:#include <sys/stat.h>
src/audacious/adder.c:#include <sys/stat.h>
src/audacious/pluginenum.c:#include <sys/stat.h>
History
#1 Updated by John Lindgren over 11 years ago
- Status changed from New to Closed
- Target version set to 3.4
- % Done changed from 0 to 100