LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 04-08-2019, 07:29 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Rep: Reputation: 89
Cannot compile ntp; claims missing headers


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.

This system is BLFS 7.9, armel. Thanks.
 
Old 04-09-2019, 06:21 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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.
 
Old 04-09-2019, 09:09 AM   #3
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 302

Original Poster
Rep: Reputation: 89
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.
 
Old 04-11-2019, 05:15 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linus on Android headers: claims "seem totally bogus" LXer Syndicated Linux News 0 03-22-2011 10:50 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
rpm -q claims "installed" but rpm -ivh claims "already installed" topgunjones Linux - Software 3 01-29-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration