I get the following error when making util-linux in chapter 5:

  CCLD     setsid
  CCLD     setarch
  CC       sys-utils/prlimit-prlimit.o
sys-utils/prlimit.c:146:12: error: conflicting types for 'prlimit'
 static int prlimit(pid_t p, int resource,
            ^~~~~~~
In file included from /tools/include/sys/resource.h:24:0,
                 from sys-utils/prlimit.c:28:
/tools/include/bits/resource.h:307:12: note: previous declaration of
'prlimit' was here
 extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
            ^~~~~~~
make[2]: *** [Makefile:9602: sys-utils/prlimit-prlimit.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/util-linux-2.29.1'
make[1]: *** [Makefile:11443: all-recursive] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/util-linux-2.29.1'
make: *** [Makefile:4774: all] Error 2

I have followed the book to the letter, except I also built zlib just
before file in chapter 5 (zlib is required but not mentioned in the book).

I guess I'll stop here, maybe try another version of lfs.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to