--- Begin Message ---
On Mon, Dec 27, 2004 at 09:03:09PM +0500, Alexander E. Patrakov wrote:

> Hello,

Hi Alexander,

> util-linux >= 2.12k doesn't build against linux-libc-headers 2.6.9.1, the 
> error (recently discussed on Linux From Scratch lists) is:
> 
> cc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall 
> -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 
> -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" 
> -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2 fsck.cramfs.c -o 
> fsck.cramfs.o
> fsck.cramfs.c:98: error: variable-size type declared outside of any function
> make[1]: *** [fsck.cramfs.o] Error 1
> 
> That's because PAGE_SIZE is not a constant in linux-libc-headers. Moreover, 
> the recommended way of determining it at runtime is calling 
> sysconf(_SC_PAGESIZE). That's what Debian does in their patch for the 
> "cramfs" package, see
> 
> http://http.us.debian.org/debian/pool/main/c/cramfs/cramfs_1.1-6.diff.gz
> 
> I have adapted this Debian patch to util-linux (see the attachment, this also 
> applies to 2.12p), could you please apply it to the official package?

thanks for your report and sorry for my late reply.

I've done a slightly different but similar change in
util-linux 2.13-pre5.

> Alexander E. Patrakov

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


--- End Message ---
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to