------------------------------ Message: 5 Date: Mon, 16 Feb 2015 20:56:51 -0600 From: Bruce Dubbs <[email protected]> To: BLFS Support List <[email protected]> Subject: Re: [blfs-support] Starting BLFS Book - Problem With Openssl Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
[email protected] wrote: > Just finished my 64bit-only LFS 7.6 and preparing to begin BLFS chapter 3. > My first step includes establishing a capability for copy/paste and > downloading files to follow BLFS chapter 3 and beyond and there seems to be > two options for achieving this. One is to install openssh/openssl and > access the new BLFS system from a second machine with a desktop, or (2). > Install GPM, Lynx, wget [as described at the end of the LFS 6.6 book] and > use the BLFS terminal window. The first option seemed preferable and since > openssl is common to both approaches I attempted to install openssl-1.0.1i > first. Many users continue to build BLFS packages in chroot as Ken mentioned, but there are some drawbacks in that you are still using the host's kernel and /dev. I personally prefer the openssh method, but build a few packages in chroot: lsb-release (for my scripts), sudo, which, openssl, openssh, and wget are what I consider needed to get started. > After moving the tar file and patch into /sources I used the LFS chroot > environment on the Lubuntu host. Using the instructions in the BLFS book > for installing openssl-1.0.1i the patch seemed to work fine. The ./config > command successfully identified the system as "linux-x86_64". However the > compilation terminated in an error: > > Fatal error: sys/cdefs.h: No such file or directory > > #Include <sys/cdefs.h> > > Recipe for target 'cryptlib.o' failed You have a problem with your build. You should have /usr/include/sys/cdefs.h on your system. It is one of the glibc files installed in LFS Section 6.9. -- Bruce ------------------------------ You are correct. Problem was a missing directory (/usr/include/sys) that caused openssl compilation to fail. Fortunately it wasn't a build problem because the original tree structure is complete. The partition from which I'm booting LFS was built from the tarred structure (minus /sys, /proc & /dev/pts) of the original LFS tree and copied to a new partition. For reasons not yet identified two directories from the original /usr tree didn't get copied. They were /usr/include/sys and /usr/include/proc. Once those directories were rsynced to the new partition (including the /usr/include/sys/cdefs.h) the installation of openssl, openssh, wget and sudo went smoothly. Can now access BLFS from another host having all the desktop tools to continue with the BLFS book. Thanks again, -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
