LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Chapter 6 Glibc error in configure (https://www.linuxquestions.org/questions/linux-from-scratch-13/chapter-6-glibc-error-in-configure-32405/)

MasterC 10-10-2002 12:52 AM

Chapter 6 Glibc error in configure
 
Code:

running configure fragment for ../glibc-2.2.5/sysdeps/unix/sysv/linux
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on.  Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.
I have no name!:/usr/src/sources/glibc-build#

I am guessing that it's actually referring to me installing the kernel wrong, but I followed the directions exactly in both. Just to make sure again, I highlighted and pasted them, same error message.

Any ideas?

Thanks

lfslinux 10-10-2002 11:10 AM

you need to unpack the linuxthreads package inside the glibc-2.2.5 directory

seems you forgot to do it, or unpacked it in the wrong location.

MasterC 10-10-2002 07:11 PM

Thank you very much, I must have clicked through the page too fast ;)

Thanks Gerard.

Bert 10-27-2002 11:47 AM

Gah!
This one had me foxed for a while too. I started fiddling with the compile switches before I noticed it couldn't see linuxthreads. *Note to self - must look here sooner*:rolleyes:.

Cheers.
Bert

robert999 07-16-2003 06:41 AM

i had the same problem as masterc so i unpacked linux threads in the glibc directory
when i run the configure script
i now get

configuring in linuxthreads
running /bin/sh ../../glibc-2.3.1/linuxthreads/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/bin --cache-file=.././config.cache --srcdir=../../glibc-2.3.1/linuxthreads

i assume its done this part of compiling is done correctly now so i type make and get

make[1]: *** [/usr/src/glibc-build/sysd-dirs] Error 127
make[1]: Leaving directory `/usr/src/glibc-2.3.1'
make: *** [all] Error 2

im following the lfs book and dont no what to do to get glibc to complie correctly
can anyone help

MasterC 07-16-2003 06:43 AM

Welcome to LQ :)

Can you post up more of the error message, like maybe the last 10 lines or so?

Cool

robert999 07-17-2003 01:17 PM

make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all
make[1]: Entering directory `/usr/src/glibc-2.3.1'
'BEGIN { subdirs = ""; inhibit = "" }; \
/^#/ { next }; \
/^[^-]/ { subdirs = subdirs " " $0 }; \
/^-/ { inhibit = inhibit " " substr($0, 2) }; \
END { printf "sysdep-subdirs =%s\n", subdirs; \
printf "sysdep-inhibit-subdirs =%s\n", inhibit; \
print "sysd-dirs-done = t" }' \
/dev/null linuxthreads/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs > /usr/src/glibc-build/sysd-dirs-tmp
/bin/sh: BEGIN { subdirs = ""; inhibit = "" }; /^#/ { next }; /^[^-]/ { subdirs = subdirs " " $0 }; /^-/ { inhibit = inhibit " " substr($0, 2) }; END { printf "sysdep-subdirs =%s\n", subdirs; printf "sysdep-inhibit-subdirs =%s\n", inhibit; print "sysd-dirs-done = t" }: No such file or directory
make[1]: *** [/usr/src/glibc-build/sysd-dirs] Error 127
make[1]: Leaving directory `/usr/src/glibc-2.3.1'
make: *** [all] Error 2

this is what it says when i try to make it
ive got a feeling that it might be to do with my version of gcc
as when i was staticaly compiling gcc earler in the chapter i used version 3.3


All times are GMT -5. The time now is 09:06 AM.