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.
Having trouble making glibc , try to find a solution but can't find one. can anyone help please. Here is the error I get.
Code:
nscd_stat.c:34:30: selinux/selinux.h: No such file or directory
nscd_stat.c:35:26: selinux/avc.h: No such file or directory
nscd_stat.c:81: error: field `cstats' has incomplete type
make[2]: *** [/mylinux/sources/glibc-build/nscd/nscd_stat.o] Error 1
make[1]: *** [nscd/others] Error 2
make: *** [all] Error 2
They used to describe why in the unstable book but they've recently taken the comments out. It used to say
Quote:
CC="gcc -B/usr/bin"
This parameter fixes a possible problem with building GCC at this stage, first noticed in LFS 5.1.1. If our host uses a new version of Binutils than we compiled, the host compiler may try use features not supported by our new linker, causing compilation errors. By passing the -B flag to gcc, we cause the compiler to temporarily use the host's linker, which solves the problem.
Sorry, my mistake, that was a different bug. It's actually a lot more simple. Just add --without-selinux to the configure options of glibc . Hope that helps. Sorry for being a balloon.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.