Re: >2Gb files
On Wed, Apr 11, 2001 at 08:13:11AM -0300, Mario Olimpio de Menezes wrote:
> Maybe you've received better suggestion, but any way I'll offer
> my $0.02.
> When you recompiled libc, where the compiler looks for the
> kernel's header?
Well the debian glibc packaging is quite cunning in that it looks for a
directory like /usr/src/kernel-header, (installed by a kernel-header package
which can be created at the same time as your kernel-image using make-kpkg)
and uses that, (or stops if there is more than one like that), or if there
is a LINUX_SOURCE variable set uses that. This seems to be used with gcc
after an -isystem flag (for prepending to the system include path I think).
So I was pretty sure it was looking in the right place.
> I mean: it might be the case that gcc is using
> /usr/include/linux (2.2.18) for the kernel's header instead of your
> /usr/src/linux/include/linux (2.4.3)
To make sure this wasn't the case I did a
#dpkg --force-depends -r libc6-dev
so that there was no /usr/include/linux or /usr/include/asm .
I then rebuilt and reinstalled libc6 and libc6-dev debs (no problems).
> So I think that for enable >2GB files you should copy all
> /usr/src/linux/include/linux to /usr/include/linux and then try to
> recompile glibc.
Just incase the libc6-dev package I'd created had done something evil to
the header files I linked include/linux and asm directly to the
corresponding kernel header directories and rebuilt and installed fileutils
(which has dd in it). But still no luck in creating >2GB files.
> Just my $0.02