[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#618033: texlive-bin-2009: Missing -D_FILE_OFFSET_BITS=64 leads to files not opening (x86 /32bit)



On 13.03.11 Hilmar Preuße (hille42@web.de) wrote:
> On 13.03.11 Pierre SCHNIZER <p.schnizer@gsi.de> (p.schnizer@gsi.de) wrote:

Hi,

> > The error occurs in the kpathsea library
> > (texk/kpathsea/readable.c), where the stat fails with the errno
> > set to EOVERFLOW.  It fails because the offset is to large. 
> > After I added manually -D_FILE_OFFSET_BITS=64 (following the stat
> > 2 man page), kpathsea/pdflatex finds the file and compiles it
> > happily.  I added "a patch", which illustrates my hack to find
> > and circumvent the problem.
> > 
> For the records: regarding LFS support there is
> http://www.suse.de/~aj/linux_lfs.html
> 
> In a nutshell for using LFS you can choose either of the following:
> 
I just testd the following in debian/rules to get LFS support:

LFS_GCC := $(shell getconf LFS_CFLAGS)
LFS_LD := $(shell getconf LFS_LDFLAGS)

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
GCC_44_ARCHES := armel
RELAX_ARCHES := alpha

ifneq (,$(filter $(DEB_BUILD_ARCH),$(GCC_44_ARCHES)))
    export CC=gcc-4.4 $(LFS_GCC)
    export CXX=g++-4.4 $(LFS_GCC)
else
    export CC=gcc $(LFS_GCC)
    export CXX=g++ $(LFS_GCC)
endif

ifneq (,$(filter $(DEB_BUILD_ARCH),$(RELAX_ARCHES)))
    export LDFLAGS=-Wl,--no-relax $(LFS_LD)
else
    export LDFLAGS=$(LFS_LD)
endif

The build on i386 still runs. Even if we upload that to Debian we
should upload to experimental.

H.
-- 
sigmentation fault



Reply to: