LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-19-2017, 03:53 PM   #1
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Rep: Reputation: Disabled
Angry Iproute2-4.12.0 make error 'unknown type'


Hello,

I'm at Chp 6.58, Iproute. Here's what I've done and the error out I get. I have started it from scratch and even re-downloaded it and tried. I'm at a loss of what is going on.

--------------------
root:/sources# cd iproute2-4.12.0
root:/sources/iproute2-4.12.0# sed -i /ARPD/d Makefile
root:/sources/iproute2-4.12.0# sed -i 's/arpd.8//' man/man8/Makefile
root:/sources/iproute2-4.12.0# rm -v doc/arpd.sgml
removed 'doc/arpd.sgml'
root:/sources/iproute2-4.12.0# sed -i 's/m_ipt.o//' tc/Makefile
root:/sources/iproute2-4.12.0# make
sh configure /usr/include
TC schedulers
ATM no

libc has setns: yes
SELinux support: no
ELF support: no
libmnl support: no
Berkeley DB: no

docs: latex: no
WARNING: no docs can be built from LaTeX files
sgml2html: no
WARNING: no HTML docs can be built from SGML


lib
make[1]: Entering directory '/sources/iproute2-4.12.0/lib'
CC libgenl.o
In file included from ../include/linux/kernel.h:4:0,
from ../include/linux/netlink.h:4,
from ../include/linux/genetlink.h:5,
from libgenl.c:9:
../include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t'
__kernel_long_t uptime; /* Seconds since boot */
^~~~~~~~~~~~~~~
../include/linux/sysinfo.h:9:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t loads[3]; /* 1, 5, and 15 minute load averages */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:10:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t totalram; /* Total usable main memory size */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:11:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t freeram; /* Available memory size */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:12:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t sharedram; /* Amount of shared memory */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:13:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t bufferram; /* Memory used by buffers */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:14:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t totalswap; /* Total swap space size */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:15:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t freeswap; /* swap space still available */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:18:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t totalhigh; /* Total high memory size */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:19:2: error: unknown type name '__kernel_ulong_t'
__kernel_ulong_t freehigh; /* Available high memory size */
^~~~~~~~~~~~~~~~
../include/linux/sysinfo.h:21:22: error: '__kernel_ulong_t' undeclared here (not in a function); did you mean '__kernel_loff_t'?
char _f[20-2*sizeof(__kernel_ulong_t)-sizeof(__u32)]; /* Padding: libc5 uses this.. */
^~~~~~~~~~~~~~~~
__kernel_loff_t
make[1]: *** [../Config:29: libgenl.o] Error 1
make[1]: Leaving directory '/sources/iproute2-4.12.0/lib'
make: *** [Makefile:65: all] Error 2
root:/sources/iproute2-4.12.0#

------------------------------

What's wrong??? Thanks for the help!!!
 
Old 09-20-2017, 02:52 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It looks like it's puking on the kernel headers. Go after the first line that says 'error', in your case
Code:
../include/linux/sysinfo.h:8:2: error: unknown type name '__kernel_long_t'
__kernel_long_t uptime; /* Seconds since boot */
6:58? I'll bet you know stuff now you didn't know before. Copied & pasted the commands, I hope? Typos can be a killer. Often, an earlier blooper takes some time to show. Is there anything you have suspicions about?
 
1 members found this post helpful.
Old 09-20-2017, 03:06 PM   #3
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Original Poster
Rep: Reputation: Disabled
business_kid,

Thanks for the clue. I had searched the tar out of it. In the sysinfo.h file the (define stdint.h) was missing.
 
Old 09-21-2017, 03:22 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Glad you're going. The 1st error is usually it. The rest is a tailspin, but you've already been 'shot down' by that stage.
 
  


Reply

Tags
error, iproute2, kernel



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
OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) sachinmm Programming 2 05-05-2016 11:57 PM
[SOLVED] Fixing Unknown VM Type Error cmnorton Linux - Software 1 08-08-2011 12:30 AM
Makefile Error: Unknown file type ankit4u1 Linux - Newbie 1 10-12-2007 01:47 PM
mount: unknown filesystem type 'devfs' error kushalkoolwal Debian 22 03-14-2006 04:14 AM
GCC Make error on Solarias 2.8: libc.a unknown file type vinaybms Solaris / OpenSolaris 1 06-20-2005 01:56 AM

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

All times are GMT -5. The time now is 05:35 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