LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-21-2017, 06:41 PM   #1
opddr
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Rep: Reputation: Disabled
I suffed from error related with limts.h(may be)


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..

Please help me

Last edited by opddr; 12-21-2017 at 07:35 PM.
 
Old 12-21-2017, 08:02 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Greetings,

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?
 
Old 12-21-2017, 11:02 PM   #3
opddr
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
How can i fix it? i tried to add "#define MB_MAX" on limits.h file directly and saved, but it's not working.

I wonder what package is straightforward answer. I don't think that simply modifying limits.h can solve the problem.

What package can solve the problem? Which package have relation with limits.h? e.g. recompiling glibc or ncurses



Sorry for my poor english

Last edited by opddr; 12-22-2017 at 10:08 AM.
 
Old 12-26-2017, 02:21 PM   #4
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Greetings again,

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.
 
  


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
Lex Related Error in C Lakshmeesh Programming 3 06-10-2016 10:43 AM
OS I/O error related messages ps1x0 Linux - Hardware 5 03-28-2014 06:10 AM
Getting gpg related error. mr.trilok Linux - Newbie 1 03-04-2014 01:30 PM
[SOLVED] Syntax Error -- related Perl rohit0825 Linux - Newbie 12 01-25-2010 07:40 AM
GCC error related with <crypt.h> linuxlover1 Programming 3 08-20-2006 06:12 AM

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

All times are GMT -5. The time now is 08:41 AM.

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