I think I found a bug in lfs-dev 20070514

Chris Staub chris at beaker67.com
Sat May 26 10:35:02 PDT 2007

Lauri Kasanen wrote:
> Hi
> I'm building my second LFS sys, now from the dev 14.5.2007 book 'cause Xfce 4.4 needs at least glibc 2.4.
> Anyway in Chapter 5, glibc "make install" stops with an error:
> install (don't remember the arguments) include/scsi/sg.h /tools/include/scsi/sg.h
> overwrite failed : operation not permitted
> Make [ error 2 ]
> I checked that, Linux kernel headers already installed that file, but with perms root:root rw-r--r--. I solved this problem by chowning to user lfs /tools/include/scsi and after that "make install" back to root.
> I have not deviated at all (yet) so this is a bug in the book.
> What would be the preferred solution? This or changing perms?
> Anyway I think this will occur again in Chapter 6, but I'm not there yet.
> Don't remember to add a fix for this!
> Lauri

This is not a bug - a anything in /tools is not owned by the lfs user to 
begin with, it is because you have deviated from the book. You must have 
installed the linux headers as root. The "preferred solution" is to do 
as the book says and use the lfs user throughout all of chapter 5.

More information about the lfs-dev mailing list