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.
When i making coreutils, i receive that definition MB_MAX is worng.
So did other package..
In Util-linux :
CC libmount/src/libmount_la-monitor.lo
libmount/src/monitor.c: In function 'userspace_event_verify':
libmount/src/monitor.c:308:42: error: 'NAME_MAX' undeclared (first use in this function); did you mean 'PATH_MAX'?
char buf[sizeof(struct inotify_event) + NAME_MAX + 1];
^~~~~~~~
PATH_MAX
libmount/src/monitor.c:308:42: note: each undeclared identifier is reported only once for each function it appears in
libmount/src/monitor.c:308:7: warning: unused variable 'buf' [-Wunused-variable]
char buf[sizeof(struct inotify_event) + NAME_MAX + 1];
In Udev :
fileio.c: In function 'read_one_line_file':
fileio.c:60:16: error: 'LINE_MAX' undeclared (first use in this function); did you mean 'LINK_MAX'?
char t[LINE_MAX], *c;
^~~~~~~~
LINK_MAX
fileio.c:60:16: note: each undeclared identifier is reported only once for each function it appears in
fileio.c: In function 'read_full_stream':
fileio.c:97:13: error: 'LINE_MAX' undeclared (first use in this function); did you mean 'LINK_MAX'?
n = LINE_MAX;
^~~~~~~~
LINK_MAX
I think that definition related with limts.h are going wrong..
Well, from my installation here on Gentoo, only NAME_MAX shows up in /usr/include/linux/limits.h. The other two aren't in my limits.h file, so while you can check and make sure that you have the necessary linux-headers package for your distro, I don't think that is your overall problem.
Did you upgrade any part of your toolchain recently?
Well, limits.h is one of the files from the linux-headers package, but as I said above, I am not sure that is your problem. It might be, and you can rebuild the linux-headers package to make sure.
But, if you are having issues building many of the basic packages like coreutils, util-linux and udev, I am starting to wonder about the stability of your toolchain. You may want to boot the system with your LiveCD/DVD again and try rebuilding your toolchain by going over Chapter 5 in the LFS book again.
Just a suggestion...
HTH. Let us know.
Last edited by ShadowCat8; 12-26-2017 at 02:23 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.