LinuxQuestions.org
Visit Jeremy's Blog.
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-2004, 03:46 PM   #1
Edgington
LQ Newbie
 
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6

Rep: Reputation: 0
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
 
Old 12-21-2004, 03:54 PM   #2
drowbot
Member
 
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100

Rep: Reputation: 15
Which version of LFS are you building? And what Chapter are you in? 5 or 6?
 
Old 12-21-2004, 04:58 PM   #3
Edgington
LQ Newbie
 
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 12-21-2004, 07:16 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 12-22-2004, 06:30 AM   #5
Edgington
LQ Newbie
 
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6

Original Poster
Rep: Reputation: 0
Just tried it but I still get the same errors
 
Old 12-22-2004, 12:46 PM   #6
Edgington
LQ Newbie
 
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6

Original Poster
Rep: Reputation: 0
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.
 
Old 12-22-2004, 07:29 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 12-23-2004, 04:25 AM   #8
Edgington
LQ Newbie
 
Registered: Dec 2004
Location: Sassenheim
Distribution: FC 3
Posts: 6

Original Poster
Rep: Reputation: 0
I thought it would be something like that. Thak you it compiled fine this time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error make-ing glibc-2.3.4 Hal Linux - General 7 03-21-2005 02:09 PM
glibc make error: pthread.h DanielIvy Linux - Software 2 12-09-2004 06:40 AM
glibc -2.3.3-lfs5.1 make error ch.6 keyur Linux From Scratch 1 09-23-2004 07:26 AM
make glibc 2.3.2 debian error storma Linux - Software 0 01-01-2004 01:29 AM
Glibc make error jarin scott Linux - Software 3 08-16-2003 10:36 AM


All times are GMT -5. The time now is 02:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration