Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As the title suggests I cannot compile ntp. The configure script gives me "configure: error: you must have sys_param.h on your system". Is this supposed to be "sys/param.h" or is it something different? The config.log also shows another error because runetype.h is not present either. I've poked around my other builds (i686 and x86_64) and neither has either of these files.
sys/param.h is a kernel header file - different, I expect from sys_param.h. runetype.h is one I never heard of.
What stage are we failing at? the thing to do when it fails is to hit up arrow & return, and post everything the console throws up (Including your command). Ideally it would check for the packages it requires (pkgconfig stuff) instead of weirdo headers or libs, but the bottom line is you're missing some dependency or the package is borked.
It was just checking through what usually looked like C functions and spit that out seemingly randomly. I could barely find anything for runetype.h but it looked like it is only found on BSD anyway. So I guess 'configure' wasn't convinced I was using Linux.
It took quite a lot of attempts but this package begrudgingly built but only when I moved some headers from /usr/include/sys to /usr/include AND specified --build --host and --target. Apparently this package does not like this triplet. Some packages seem not to build on arm (and the ones that do often assume you are cross-compiling) and I fear this is one of them. Debian has armv5 and armv7 packages for ntp and their patches don't show anything like this, so I guess they probably cross-compile.
In my experience, BLFS is fairly good at compiling, and lists what it needs. Is it an Arm BLFS Book?
IIRC CLFS only does LFS. YMMV from there. I would try and get compiling on the arm itself asap.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.