I sent a message similar to this earlier this week. This message deals
with the actual compilation, as opposed to configuration. Here is a
breakdown of the commands I issued.
* ../glibc-2.3.4/configure --prefix=/tools --disable-profile \
--enable-add-ons --enable-kernel=2.6.0 \
--with-binutils=/tools/bin --without-gd \
--with-headers=/tools/include --without-selinux
( \ indicates a broken line)
* make
Earlier the latter gave me issues because I failed to hyphenate
--enable-add-ons (I wrote --enable-addons instead). Now the make
command is acting screwy. Here is a dump from standard error from main
(The problem appears to be with atfork.{c,h}
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/mnt/lfs/sources/glibc-build/libc_pic.os(.text+0xafc56): In function
`*__GI___register_atfork':
../nptl/sysdeps/unix/sysv/linux/register-atfork.c:100: undefined
reference to `__fork_handlers'
/mnt/lfs/sources/glibc-build/libc_pic.os(.text+0xafd1b): In function
`__unregister_atfork':
../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:37: undefined
reference to `__fork_handlers'
/mnt/lfs/sources/glibc-build/libc_pic.os(.text+0xafd65):../nptl/sysdeps/unix/sysv/linux/unregister-atfork.c:64:
undefined reference to `__fork_handlers'
/mnt/lfs/sources/glibc-build/libc_pic.os(.text+0xafe7b): In function
`__libc_pthread_init':
../nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c:43: undefined
reference to `__fork_generation_pointer'
/mnt/lfs/sources/glibc-build/libc_pic.os(__libc_freeres_fn+0x951): In
function `free_mem':
../nptl/sysdeps/unix/sysv/linux/register-atfork.c:118: undefined
reference to `__fork_handlers'
collect2: ld returned 1 exit status
make[1]: *** [/mnt/lfs/sources/glibc-build/libc.so] Error 1
make: *** [all] Error 2
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page