Quote:
Originally Posted by druuna
Hi,
Yes, that is wrong.
I already told you in one of your previous threads that you need to follow the book, nothing needs to be added or changed. If you have to add/edit commands to make it work: Something is wrong and you need to go back to figure out what mistakes where made.
Did you remove the gcc dir and the gcc-build dir first and then unpack the gcc tar-ball again before you retried with the correct option.
If that does not solve your problem you need to retrace your steps to find out what went wrong. This could have happened in the glibc chapter, but could also have happened in one of the previous chapters.
Hope this helps.
|
Hi Drunna,
I have done again and repeated my all steps. I again build the GCC dir according to LFS6.7 book . this time I din change any thing into any command . Gcc build was successfully . After that I try with the Glibc-2.12.1 but again , it is giving same error.
Actually , When I do
make then it do the check modules process.
the make is not able to find the refernce of `
__stack_chk_fail_local'into the
/etf/rtld.c source code of Glibc
/mnt/lfs/sources/glibc-2.12.1/elf/rtld.c:2842: .
only this system call __stack_chk_fail_local' is not finding into the rtld.c and /elf/dl-load.c . All compilation is going on well . why it is ?
What I am thinking that its error mistake of source code into glibc-2.12.1 . this function is into the different file code . and it's calling path is given wrong .
like /mnt/lfs/sources/glibc-2.12.1/elf/rtld.c:2842: undefined reference to `__stack_chk_fail_local'
undefined means that it not finding that it is not defined into the particular file rtld.c .
please check this problem bcoz you are very senior person . I have tried many times again & agian What did you tell me according to do LFS6.7 book . All things are going well with GCC and each & every package configuration . but only this is giving error .
Did you Face this error anytime ?
/mnt/lfs/sources/glibc-build/elf/librtld.os: In function `print_statistics':
/mnt/lfs/sources/glibc-2.12.1/elf/rtld.c:2842: undefined reference to `__stack_chk_fail_local'
/mnt/lfs/sources/glibc-build/elf/librtld.os: In function `process_dl_debug':
/mnt/lfs/sources/glibc-2.12.1/elf/rtld.c:2478: undefined reference to `__stack_chk_fail_local'
/mnt/lfs/sources/glibc-build/elf/librtld.os: In function `process_envvars':
/mnt/lfs/sources/glibc-2.12.1/elf/rtld.c:2737: undefined reference to `__stack_chk_fail_local'
/mnt/lfs/sources/glibc-build/elf/librtld.os: In function `dl_main':
/mnt/lfs/sources/glibc-2.12.1/elf/rtld.c:2358: undefined reference to `__stack_chk_fail_local'
/mnt/lfs/sources/glibc-build/elf/librtld.os: In function `print_search_path':
/mnt/lfs/sources/glibc-2.12.1/elf/dl-load.c:1558: undefined reference to `__stack_chk_fail_local'
/mnt/lfs/sources/glibc-build/elf/librtld.os:/mnt/lfs/sources/glibc-2.12.1/elf/dl-load.c:1808: more undefined references to `__stack_chk_fail_local' follow
/usr/bin/ld: /mnt/lfs/sources/glibc-build/elf/ld.so: hidden symbol `__stack_chk_fail_local' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/elf/ld.so] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.12.1/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.12.1'
make: *** [install] Error 2
thanks
Surender Shrma