Hey all -
I'm going through my first HLFS build (against book SVN-20051221) and
running into a problem early in the process of building the main system.
(Building the tool chain had no reported problems.)
Specifically, in chapter 6.11, after untarrring glibc-2.3.6 and
glibc-libidn-2.3.6, I apply the first two patches (arc4random and ssp)
with no problem, but then something goes awry with fstack_protector.
Here's the shell log:
root:/sources# tar -xf glibc-2.3.6.tar
root:/sources# tar -xf glibc-libidn-2.3.6.tar
root:/sources# cd glibc-2.3.6
root:/sources/glibc-2.3.6# patch -Np1 -i ../glibc-2.3.6-arc4random-1.patch
patching file manual/arc4random.3
patching file stdlib/Makefile
patching file stdlib/arc4random.c
patching file stdlib/arc4randomII.c
patching file stdlib/stdlib.h
patching file sysdeps/posix/tempname.c
root:/sources/glibc-2.3.6#
root:/sources/glibc-2.3.6# patch -Np1 -i ../glibc-2.3.6-ssp-1.patch
patching file sysdeps/generic/libc-start.c
patching file sysdeps/unix/sysv/linux/Dist
patching file sysdeps/unix/sysv/linux/Makefile
patching file sysdeps/unix/sysv/linux/Versions
patching file sysdeps/unix/sysv/linux/stack_protector.c
root:/sources/glibc-2.3.6# patch -Np1 -i
../glibc-2.3.6-fstack_protector-1.patchpatching file catgets/Makefile
patching file crypt/Makefile
patching file debug/Makefile
patching file elf/Makefile
patching file elf/rtld.c
patching file iconv/Makefile
patching file intl/Makefile
can't find file to patch at input line 290
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur glibc-2.3.6.orig/libidn/Makefile glibc-2.3.6/libidn/Makefile
|--- glibc-2.3.6.orig/libidn/Makefile 2004-03-12 20:44:43.000000000 +0000
|+++ glibc-2.3.6/libidn/Makefile 2005-11-13 18:03:08.000000000 +0000
--------------------------
File to patch:
And patch pauses for input...
I'm a little deviant, in that the prereqs say that you need to build on
an LFS or HLFS system, and my host is Fedora Core 4. But this doesn't
smell like a problem there, to me at least - I'm using patch compiled in
the toolchain, in the chroot, against virgin sources. Other than that,
script input has been pretty much cut'n'pasted into the shell to
eliminate typos, so I think it's a stock build.
One note that may be worthwhile: At least one of the patches downloaded
earlier was corrupt (the file was truncated prematurely). That problem
went away by redownloading the file. I pulled down a fresh copy of this
patch, and diff shows no changes, so presumably that is not the problem
here.
Thanks in advance,
-jps
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page