LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Chapter 6 glibc-2.3.1 install (https://www.linuxquestions.org/questions/linux-from-scratch-13/chapter-6-glibc-2-3-1-install-85637/)

gabebster 08-25-2003 05:15 PM

Chapter 6 glibc-2.3.1 install
 
When I run this:

I have no name!:/glibc-2.3# ./configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/bin

I get the normal msgfmt error but at the end it gives me this error:

checking installed Linux kernel header files... (cached) 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!:/glibc-2.3#

I have 2.4.21 for my kernel

When I try to execute the login to get ride of the "I have no name" it doesn't work.

I am wondering if I installed the kernel wrong. I got confussed when the book said we "copy the kernel headers and don't symlink them" was i actually suppost to manually copy the files cause it was not very clear. Sorry if this is a n00bish question.

gabebster

Dark_Helmet 08-25-2003 06:00 PM

Ok, about the headers, if you followed what the book had highlighted as command for installing the kernel headers, then you're ok. The part at the end about "Why we copy the kernel headers" is just an explanation for the commands above.

You have another problem though. You did not decompress the glibc-linuxthreads archive properly. The very first sentence under "Glibc installation" states:

Quote:

Before starting to install Glibc, you must cd into the glibc-2.3.1 directory and unpack Glibc-linuxthreads in that directory, not in /usr/src as you would normally do.
It can be hard to miss, especially if you get in the habit of just executing the highlighted commands.

gabebster 08-25-2003 08:18 PM

Ok I got it to configure ok with no errors but when i go to do the make I get a ton of errors.

make -C csu subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/csu'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/csu'
make -C iconv subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/iconv'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/iconv'
make -C iconvdata subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/iconvdata'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/iconvdata'
make -C locale subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/locale'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/locale'
make -C localedata subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/localedata'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/localedata'
make -C assert subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/assert'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/assert'
make -C ctype subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/ctype'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/ctype'
make -C intl subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/intl'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/intl'
make -C catgets subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/catgets'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/catgets'
make -C math subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/math'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/math'
make -C setjmp subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/setjmp'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/setjmp'
make -C signal subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/signal'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/signal'
make -C stdlib subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/stdlib'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/stdlib'
make -C stdio-common subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/stdio-common'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/stdio-common'
make -C libio subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/libio'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/libio'
make -C dlfcn subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/dlfcn'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/dlfcn'
make -C malloc subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/malloc'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/malloc'
make -C string subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/string'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/string'
make -C wcsmbs subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/wcsmbs'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/wcsmbs'
make -C timezone subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/timezone'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/timezone'
make -C time subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/time'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/time'
make -C dirent subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/dirent'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/dirent'
make -C grp subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/grp'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/grp'
make -C pwd subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/pwd'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/pwd'
make -C posix subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/posix'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/posix'
make -C io subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/io'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/io'
make -C termios subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/termios'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/termios'
make -C resource subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/resource'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/resource'
make -C misc subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/misc'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/misc'
make -C socket subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/socket'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/socket'
make -C sysvipc subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/sysvipc'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/sysvipc'
make -C gmon subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/gmon'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/gmon'
make -C gnulib subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/gnulib'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/gnulib'
make -C wctype subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/wctype'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/wctype'
make -C manual subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/manual'
make[1]: `subdir_lib' is up to date.
make[1]: Leaving directory `/glibc-build/glibc-2.3/manual'
make -C shadow subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/shadow'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/shadow'
make -C po subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/po'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/po'
make -C argp subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/argp'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/argp'
make -C crypt subdir_lib
make[1]: Entering directory `/glibc-build/glibc-2.3/crypt'
make[1]: Nothing to be done for `subdir_lib'.
make[1]: Leaving directory `/glibc-build/glibc-2.3/crypt'
make -C linuxthreads subdir_lib

I don't know what to do here.

gabebster

Dark_Helmet 08-25-2003 08:43 PM

Technically, none of those are errors. What make is trying to say is that everything is up-to-date. That's what the "nothing to be done for" messages are about.

Here's my suggestion though, remove your current glibc directory, and start over. Re-extract the glibc stuff, and then re-extract the glibc-linuxthreads like the book says. Then do the configure and make steps again. I'm suggesting this regardless of whether make ended in errors or not: glibc is important enough to your system to make absolutely sure it was compiled the right way.

gabebster 08-27-2003 02:17 PM

I will try this when I get home. Thanks for the input.

gabebster

gabebster 08-28-2003 08:01 AM

Ok I can get the configure and the make done with out any errors but when I go to do the make it will kick out some errors and the make install looks fine. When I go to do the login it doesn't log in. It still says "I have no name!" Is there anything else that I can do?

gabebster:confused:

Dark_Helmet 08-28-2003 08:30 AM

Can you post the error messages you get? Also, make sure that /etc/passwd has the root account entry. If not, that might explain why the "I have no name" still appears.

titovanton 08-31-2003 02:20 PM

Hi!
I do all like you write i LFS book, but after configuring a glibc 2.3.1 in chapter 6 when I run make I get errors:
I have no name!:/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all
make[1]: Entering directory `/glibc-2.3.1'
sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new
/bin/sh: line 1: sysdeps/i386/elf/configure.in: Permission denied
make[1]: *** [sysdeps/i386/elf/configure] Error 126
make[1]: Leaving directory `/glibc-2.3.1'
make: *** [all] Error 2

I change permissions of file sysdeps/i386/elf/configure.in to 777 and get errors again:
I have no name!:/glibc-build# make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all
make[1]: Entering directory `/glibc-2.3.1'
sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new
sysdeps/i386/elf/configure.in: line 1: GLIBC_PROVIDES: command not found
sysdeps/i386/elf/configure.in: line 7: syntax error near unexpected token `for'
sysdeps/i386/elf/configure.in: line 7: `AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl'
make[1]: *** [sysdeps/i386/elf/configure] Error 2
make[1]: Leaving directory `/glibc-2.3.1'
make: *** [all] Error 2

Can you help me?
(this I posted also in "Chapter 6, Glibc: configure fails while testing CPP")

Dark_Helmet 09-03-2003 05:52 PM

First, you should not ever have to change permissions of any file. So, that leads me to ask, when you ran make, were you logged in as the same user that untar'ed the glibc archive?

Second, what you describe sounds like it might also be a problem with configuration. Did the configure script run cleanly (no errors) when you ran it?

My default suggestion is this:
Remove the entire glibc source tree and your glibc-build directory. Untar the glibc source code again, and double-check the commands before pressing enter; make sure they are exactly like what is printed in the book. If possible, copy-and-paste the command from your web browser onto the command-line. If you run into problems again, then post the contents of your configure.log file, and the results of make the command.

titovanton 09-07-2003 08:57 AM

I remove glibc-2.3.1 && glibc-build and untar it again.
To configure it I run this command:

I have no name!:/usr/src/glibc-build$ ../glibc-2.3.1/configure --prefix=/usr --disable-profile --enable-add-ons=yes --libexecdir=/usr/bin --without-cvs --without-tls

and make with this command:

I have no name!:/usr/src/glibc-build$ make -r CFLAGS="-O2 -pipe -march=i686 -mcpu=pentium3" PARALLELMFLAGS=-s

I use this commands because they are work (with configure command from LFS book I have some problems (cpp preprocessor)). But make stop with such error:

gcc -nostdlib -nostartfiles -r -o /usr/src/glibc-build/libc_pic.os \
-Wl,-d -Wl,--whole-archive /usr/src/glibc-build/libc_pic.a
gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/usr/src/glibc-build/csu/ -Wl,--version-script=/usr/src/glibc-build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -u __register_frame -L/usr/src/glibc-build -L/usr/src/glibc-build/math -L/usr/src/glibc-build/elf -L/usr/src/glibc-build/dlfcn -L/usr/src/glibc-build/nss -L/usr/src/glibc-build/nis -L/usr/src/glibc-build/rt -L/usr/src/glibc-build/resolv -L/usr/src/glibc-build/crypt -L/usr/src/glibc-build/linuxthreads -Wl,-rpath-link=/usr/src/glibc-build:/usr/src/glibc-build/math:/usr/src/glibc-build/elf:/usr/src/glibc-build/dlfcn:/usr/src/glibc-build/nss:/usr/src/glibc-build/nis:/usr/src/glibc-build/rt:/usr/src/glibc-build/resolv:/usr/src/glibc-build/crypt:/usr/src/glibc-build/linuxthreads -o /usr/src/glibc-build/libc.so.new /usr/src/glibc-build/csu/abi-note.o -Wl,--verbose -lgcc 2>&1 | sed -e '/^=========/,/^=========/!d;/^=========/d' -e 's/^.*\.hash[ ]*:.*$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' -e 's/^.*\*(\.dynbss).*$/& __start___libc_freeres_ptrs = .; *(__libc_freeres_ptrs) __stop___libc_freeres_ptrs = .;/' > /usr/src/glibc-build/libc.so.lds
rm -f /usr/src/glibc-build/libc.so.new
gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/usr/src/glibc-build/csu/ -Wl,--version-script=/usr/src/glibc-build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -u __register_frame -L/usr/src/glibc-build -L/usr/src/glibc-build/math -L/usr/src/glibc-build/elf -L/usr/src/glibc-build/dlfcn -L/usr/src/glibc-build/nss -L/usr/src/glibc-build/nis -L/usr/src/glibc-build/rt -L/usr/src/glibc-build/resolv -L/usr/src/glibc-build/crypt -L/usr/src/glibc-build/linuxthreads -Wl,-rpath-link=/usr/src/glibc-build:/usr/src/glibc-build/math:/usr/src/glibc-build/elf:/usr/src/glibc-build/dlfcn:/usr/src/glibc-build/nss:/usr/src/glibc-build/nis:/usr/src/glibc-build/rt:/usr/src/glibc-build/resolv:/usr/src/glibc-build/crypt:/usr/src/glibc-build/linuxthreads -o /usr/src/glibc-build/libc.so -T /usr/src/glibc-build/libc.so.lds /usr/src/glibc-build/csu/abi-note.o /usr/src/glibc-build/elf/soinit.os /usr/src/glibc-build/libc_pic.os /usr/src/glibc-build/elf/sofini.os /usr/src/glibc-build/elf/interp.os /usr/src/glibc-build/elf/ld.so -lgcc
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld:/usr/src/glibc-build/libc.so.lds:108: parse error
collect2: ld returned 1 exit status
make[1]: *** [/usr/src/glibc-build/libc.so] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.3.1'
make: *** [all] Error 2

Can you help me with this?

Dark_Helmet 09-07-2003 09:55 AM

I'm afraid you're a little out of my league with all those configure and compilation options. I'm not familiar with them, and that means I can't offer any meaningful advice... sorry. For what it's worth, I wish you luck.

titovanton 09-08-2003 03:59 AM

I am sorry - let's I tell you all from start.
When I unpack glibc-2.3.1 tar & download all patches I copy them to my glibc-2.3.1
Then I run a first patch:
patch -Np1 -i ../glibc-2.3.1-root-perl.patch
and the second:
patch -Np1 -i ../glibc-2.3.1-libnss.patch
After this I make a ld.so.conf file:
touch /etc/ld.so.conf
To compile glibc I make a separate directory and go here::
mkdir ../glibc-build &&
cd ../glibc-build
Also I make a /usr/include/assert.h (problem when configure):
touch /usr/include/assert.h
Then I run a configure:
../glibc-2.3.1/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/bin

This is its output 8-):

checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking sysdep dirs... sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux/i386 linuxthreads/s
ysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sys
v linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386/i686 linuxthreads/sysdeps/i386 sysdeps/unix
/sysv/linux/i386/i686 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/un
ix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386/i686 sysdeps/unix/sysv/i386
sysdeps/unix/sysv sysdeps/unix/i386/i686 sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i38
6/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 linuxthreads/sysdeps/i386/i486 sysdeps/i386/fpu sy
sdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt
-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /static/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 3.2.2, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.80, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... no
checking for makeinfo... makeinfo
checking version of makeinfo... 4.3, ok
checking for sed... sed
checking version of sed... 4.0.3, ok
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E -traditional-cpp
checking whether /static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/as
is GNU as... yes
checking whether /static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld
is GNU ld... yes
checking for /static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/as...
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/as
checking version of /static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin
/as... 2.13.90.0.18, ok
checking for /static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld...
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin/ld
checking version of /static/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../../i686-pc-linux-gnu/bin
/ld... 2.13.90.0.18, ok
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/sh
checking for gawk... gawk
checking for perl... /static/bin/perl
Can't locate Config.pm in @INC (@INC contains: /linux/static/lib/perl5/5.8.0/i686-linux /linux/st
atic/lib/perl5/5.8.0 /linux/static/lib/perl5/site_perl/5.8.0/i686-linux /linux/static/lib/perl5/s
ite_perl/5.8.0 /linux/static/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.
checking for install-info... /static/bin/install-info
checking for old Debian install-info... no
checking for bison... no
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... no
checking for assembler .type directive prefix... @
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -Bgroup option... yes
checking for -z combreloc... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for DWARF2 unwind info support... yes
checking for __builtin_expect... yes
checking for __builtin_memset... no
checking for local label subtraction... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for long double... no
checking size of long double... 0
running configure fragment for ../glibc-2.3.1/sysdeps/i386/elf
running configure fragment for ../glibc-2.3.1/sysdeps/pthread
running configure fragment for ../glibc-2.3.1/sysdeps/unix/sysv/linux
checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
checking for symlinks in /usr/include... ok
running configure fragment for ../glibc-2.3.1/sysdeps/unix/common
running configure fragment for ../glibc-2.3.1/sysdeps/unix
running configure fragment for ../glibc-2.3.1/sysdeps/generic
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating glibcbug
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
configure: configuring in linuxthreads
configure: running /bin/sh '../../glibc-2.3.1/linuxthreads/configure' --prefix=/usr '--prefix=/u sr' '--disable-profile' '--enable-add-ons' '--libexecdir=/usr/bin' --cache-file=/dev/null --srcdi r=../../glibc-2.3.1/linuxthreads

Then I create configparms file:
echo "cross-compiling = no" > configparms
And sure want to make it all:
make
but make output is:
I have no name!:/usr/src/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.1 objdir=`pwd` all
make[1]: Entering directory `/usr/src/glibc-2.3.1'
sysdeps/i386/elf/configure.in > sysdeps/i386/elf/configure.new
/bin/sh: line 1: sysdeps/i386/elf/configure.in: Permission denied
make[1]: *** [sysdeps/i386/elf/configure] Error 126
make[1]: Leaving directory `/usr/src/glibc-2.3.1'
make: *** [all] Error 2

Can you advice me something with this error?

Rico16135 09-24-2003 02:12 PM

getting a permission denied at that point is rather odd considering you should only have one user for your lfs files. did you turn your computer off and restart? perhaps you have to reenter the enviornment: reset the LFS variable, and then ruh the chroot command... refer to book. Entering the chroot enviornment. they also suggest to go ahead and mount proc Don't forget you must be root to run the chroot command.

gabebster 09-24-2003 02:52 PM

About a month ago I started this post and I got stuck with the glibc-2.3.1 install and for some odd reason I was putting gentoo on my winxp partion and it decided to mess everything up (don't ask) and so I had re-install everything.
Well I have finally gotten everything the way I like it and I started making my LFS again and I get the same "i have no name" problem and I think I have /etc/passwd for root. But the last I tired to keep going and tired to install the kernel and it didn't work so before I move on I want to get this thing fixed.

thanks
gabebster

Rico16135 09-24-2003 10:38 PM

well from what i've gather the i have no name is suppose to be there since the glibc installatin hasn't been completed. so don't fret about that. that fix is soon after the glibc installation. now the permissions denied error is something to worry about.

first off if you turn off or reboot your computer or even close the shell prompt you will need to setup the enviornment again.

export LFS=/mnt/lfs

cat > ~/.bash_profile << "EOF"
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
CC="gcc -s"
export LFS LC_ALL CC
EOF
source ~/.bash_profile

after that rerun the chroot command

chroot $LFS /static/bin/env -i \
HOME=/root TERM=$TERM PS1=' \u: \w \$ ' \
PATH=/bin: /usr/bin: /sbin: /usr/sbin: /static/bin \
/static/bin/bash --login

if that doesn't fix your problem then somehow someway your directories got new permissions. In which case su to root and run: chown lfs /nameofdirectory(should go ahead and do your static and your source directory and then your bin if your really having ploblems. all your lfs directories should be owned by lfs unless directed different in the book in which case it will tell you.


All times are GMT -5. The time now is 08:56 PM.