php and LFS

Jakub Bogusz qboosh at pld-linux.org
Wed May 14 15:47:04 CEST 2014


On Wed, May 14, 2014 at 02:43:23PM +0300, Elan Ruusamäe wrote:
> seems our 32bit php is built without largefile support.
> 
> ??? php53 -r 
> 'var_dump(stat("/usr/share/pear/PEAR/Installer/Role/Common.php"));'
> PHP Warning: stat(): stat failed for 
> /usr/share/pear/PEAR/Installer/Role/Common.php in Command line code on 
> line 1
> bool(false)
> 
> ??? php55 -r 
> 'var_dump(stat("/usr/share/pear/PEAR/Installer/Role/Common.php"));'
> PHP Warning: stat(): stat failed for 
> /usr/share/pear/PEAR/Installer/Role/Common.php in Command line code on 
> line 1
> bool(false)
> 
> ??? ls -ldi /usr/share/pear/PEAR/Installer/Role/Common.php
> 4306713209 -rw-r--r-- 1 root root 6299 Aug 26 2012 
> /usr/share/pear/PEAR/Installer/Role/Common.php
> 
> but, i do see -D_GNU_SOURCE -D_LARGEFILE64_SOURCE in build logs... ideas?

_LARGEFILE64_SOURCE enables 64-bit file API, but with separate names.
To get them available under base names, _FILE_OFFSET_BITS=64 must be
used.


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list