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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-21-2004, 03:46 PM
|
#1
|
LQ Newbie
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6
Rep:
|
Glibc make error
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
|
|
|
12-21-2004, 03:54 PM
|
#2
|
Member
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100
Rep:
|
Which version of LFS are you building? And what Chapter are you in? 5 or 6?
|
|
|
12-21-2004, 04:58 PM
|
#3
|
LQ Newbie
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6
Original Poster
Rep:
|
I'm in chapter 5 of version 6.0. The first make command gives this error.
Edit: Oh and i'm using fedora core 3
Last edited by Edgington; 12-21-2004 at 05:11 PM.
|
|
|
12-21-2004, 07:16 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
When you build gcc for the first time in chapter 5 you need to pass gcc the switch CC="gcc -B/usr/bin" like this
Code:
CC="gcc -B/usr/bin" ../gcc-3.4.1/configure \
--prefix=/tools --libexecdir=/tools/lib \
--with-local-prefix=/tools --disable-nls \
--enable-shared --enable-languages=c
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.
|
|
|
|
12-22-2004, 06:30 AM
|
#5
|
LQ Newbie
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6
Original Poster
Rep:
|
Just tried it but I still get the same errors
|
|
|
12-22-2004, 12:46 PM
|
#6
|
LQ Newbie
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6
Original Poster
Rep:
|
There is a selinux.h in the nscd directory in the source dir of glibc, but not in a selinux dir. I can't find a avc.h file.
|
|
|
12-22-2004, 07:29 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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.
|
|
|
12-23-2004, 04:25 AM
|
#8
|
LQ Newbie
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6
Original Poster
Rep:
|
I thought it would be something like that. Thak you it compiled fine this time.
|
|
|
All times are GMT -5. The time now is 06:15 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.
|
Latest Threads
LQ News
|
|