[SOLVED] Iproute2-4.12.0 make error 'unknown type'
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.
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15
Rep:
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#
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.