LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-03-2011, 01:07 AM   #1
er.surendersharma
Member
 
Registered: May 2010
Posts: 47
Blog Entries: 2

Rep: Reputation: 15
Glibc problem


Hi ,

I am trying the LFS . I am using the LFS-6.7 Document.
I am on 5.7-Glibc-2.12.1 .

I have configured successfully the glibc into differnt directory glibc-build .

configure command
../glibc-2.12.1/configure --prefix=/tools \
--host=$LFS_TGT --build=$(../glibc-2.12.1/scripts/config.guess) \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.35.4 --with-headers=/tools/include \
libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes


when I am trying to make or make install .
then its give error . I am not find out the error . what is saying ? .
please help me in this .

make

-Wl,-soname=ld-linux.so.2 -T /mnt/lfs/sources/glibc-build/elf/ld.so.lds
/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


please solve this error .


Thanks
Surender sharma
 
Old 01-03-2011, 04:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Why did you change this: --enable-kernel=2.6.22.5 to this --enable-kernel=2.6.35.4? I don't remember the book telling you to do that...

Another question: Did you solve your startup and gcc problems?

Hope this helps.
 
Old 01-03-2011, 04:42 AM   #3
er.surendersharma
Member
 
Registered: May 2010
Posts: 47

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

Why did you change this: --enable-kernel=2.6.22.5 to this --enable-kernel=2.6.35.4? I don't remember the book telling you to do that...

Another question: Did you solve your startup and gcc problems?

Hope this helps.
Hi Drunna,

yes I have solve before problem ... startup and Gcc problem ..

but in Glibc it is giving error ..
actually I am using the LFS6.7 book . before the Glibc there is 5.6. Linux-2.6.35.4 API Headers this topic .

that's why I have given the linux 2.6.35.4 .

Is it wrong ?

we have write here linux-2.6.22.5 or others...

please help me .

Thanks
surender sharma
 
Old 01-03-2011, 05:05 AM   #4
er.surendersharma
Member
 
Registered: May 2010
Posts: 47

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

Why did you change this: --enable-kernel=2.6.22.5 to this --enable-kernel=2.6.35.4? I don't remember the book telling you to do that...

Another question: Did you solve your startup and gcc problems?

Hope this helps.
Hi drunna,

I have tried again with the changes of --enable-kernel=2.6.22.5 instead of --enable-kernel=2.6.35.4 but its giving same error.I am not where I am making mistake. its like a stack protection problem .
Is there any solution then tell me.

surender sharma
 
Old 01-03-2011, 06:19 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
actually I am using the LFS6.7 book . before the Glibc there is 5.6. Linux-2.6.35.4 API Headers this topic .

that's why I have given the linux 2.6.35.4 .

Is it wrong ?
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.

Quote:
I have tried again with the changes of --enable-kernel=2.6.22.5 instead of --enable-kernel=2.6.35.4 but its giving same error
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.
 
Old 01-03-2011, 11:44 PM   #6
er.surendersharma
Member
 
Registered: May 2010
Posts: 47

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
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
 
Old 01-04-2011, 02:12 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by er.surendersharma View Post
Hi Drunna,
You keep spelling my nick wrong, it is druuna (not drunna or druna)

Quote:
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 ?
I've never came across this error myself and this is the first time i've seen it mention here at LQ. I recently build LFS 6.7 (stable) on 2 different machines and did not have any problems and looking at the posts made here at LQ I do believe others also successfully build LFS 6.7.

Although it could be possible that your setup is the exception to the rule, I'm quite sure that the packages used are not faulty in any way.

After some searching on the net I do believe this has to do with the stack smash protection, which is enabled on some distro's. If that is the case then your host is not up to specs.

You haven't mentioned which distro you are using as host. I would suggest doing an internet search on stack smash protection and your distro and find out if it is enabled and how to (temporarily) disable it.

All this isn't necessary when you would use the LFS liveCD, which was made to be a suitable host for building LFS.

Hope this helps.
 
Old 01-04-2011, 06:17 AM   #8
er.surendersharma
Member
 
Registered: May 2010
Posts: 47

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
You keep spelling my nick wrong, it is druuna (not drunna or druna)


I've never came across this error myself and this is the first time i've seen it mention here at LQ. I recently build LFS 6.7 (stable) on 2 different machines and did not have any problems and looking at the posts made here at LQ I do believe others also successfully build LFS 6.7.

Although it could be possible that your setup is the exception to the rule, I'm quite sure that the packages used are not faulty in any way.

After some searching on the net I do believe this has to do with the stack smash protection, which is enabled on some distro's. If that is the case then your host is not up to specs.

You haven't mentioned which distro you are using as host. I would suggest doing an internet search on stack smash protection and your distro and find out if it is enabled and how to (temporarily) disable it.

All this isn't necessary when you would use the LFS liveCD, which was made to be a suitable host for building LFS.

Hope this helps.
Drunna ,

Dear , from last four days , I am searching this error on the net but nobody has mention the solution of this error . everyboody is asking solution . then I just found that you are very experienced with the LFS that's why I was asking to you .ok no problem I will try anywhere.
but this error is in actual . and its different error . every linux lover should know the solution of this error.

ok ,I am not trying with LFS LIVECD .Is there any difference b/w the LFS LIVECD and running ubuntu 9.10 o/s .Actually I am trying with my running Ubuntu LIVECD 9.10 o/s .

I have created the different ext3 partition . after that I am trying from running system . if you are quite sure that there is less chances of error from LFS LIVE CD . then I will try the LFS LIVECD.

drunna , confirm me this thing and try stack smash protection bcoz its a nice error. many learner are facing this error.


thanks,
Surender Sharma
 
Old 01-04-2011, 06:23 AM   #9
er.surendersharma
Member
 
Registered: May 2010
Posts: 47

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
You keep spelling my nick wrong, it is druuna (not drunna or druna)


I've never came across this error myself and this is the first time i've seen it mention here at LQ. I recently build LFS 6.7 (stable) on 2 different machines and did not have any problems and looking at the posts made here at LQ I do believe others also successfully build LFS 6.7.

Although it could be possible that your setup is the exception to the rule, I'm quite sure that the packages used are not faulty in any way.

After some searching on the net I do believe this has to do with the stack smash protection, which is enabled on some distro's. If that is the case then your host is not up to specs.

You haven't mentioned which distro you are using as host. I would suggest doing an internet search on stack smash protection and your distro and find out if it is enabled and how to (temporarily) disable it.

All this isn't necessary when you would use the LFS liveCD, which was made to be a suitable host for building LFS.

Hope this helps.
sorry for your nick name spelling . you are from netherland . Actually ,I am from India. In the past time there was a great king in INDIA . His name was also Drunna . we call to him in Hindi Language Drunna. Ok no probelm .I will call to you drunna . I din read at uppper side that's why I am again sending blog to you..

thanks
Surender sharma
 
0 members found this post helpful.
Old 01-04-2011, 06:33 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I'm called druuna!! This is the second time I'm telling you this!! (edit: You finally read the complete post and noticed....)

Quote:
I am searching this error on the net but nobody has mention the solution of this error . everyboody is asking solution . then I just found that you are very experienced with the LFS that's why I was asking to you .ok no problem I will try anywhere. but this error is in actual . and its different error . every linux lover should know the solution of this error.
I'm not sure what you are trying to tell me.

Quote:
ok ,I am not trying with LFS LIVECD .Is there any difference b/w the LFS LIVECD and running ubuntu 9.10 o/s .Actually I am trying with my running Ubuntu LIVECD 9.10 o/s .
Yes there is: The LFS liveCD is made suitable to build LFS, Ubuntu is not. But I've told you this already, twice.

I'm starting to believe that your host is not made suitable (Revisit this chapter: vii. Host System Requirements) and the problems you are having are caused by this.

Hope this helps.

Last edited by druuna; 01-04-2011 at 06:34 AM.
 
Old 01-06-2011, 12:56 AM   #11
er.surendersharma
Member
 
Registered: May 2010
Posts: 47

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

I'm called druuna!! This is the second time I'm telling you this!! (edit: You finally read the complete post and noticed....)

I'm not sure what you are trying to tell me.

Yes there is: The LFS liveCD is made suitable to build LFS, Ubuntu is not. But I've told you this already, twice.

I'm starting to believe that your host is not made suitable (Revisit this chapter: vii. Host System Requirements) and the problems you are having are caused by this.

Hope this helps.
Hi drunna,


I am new into the android o/s . I have directly downloaded the Android kernel source code .
Actually , I am not using the git and repo for downloading the kernel source .
I am trying the isoimage building for generic_x86.
when I give the make command .

surender@surender-desktop:~/Documents/android_kernel/common$ make iso_img TARGET_PRODUCT=generic_x86


But it gives the error : I am not getting why it is giving the error.

make: *** No rule to make target `iso_img'. Stop.


Can you tell me solution of this problem Please ..

thanks
Surender Sharma
 
0 members found this post helpful.
Old 01-06-2011, 01:47 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Sigh..... Still not able to spell my nick correctly.

And why are you cross-posting? This doesn't have anything to do with this thread. Keep your questions separated and in the correct place.

I'm done here.
 
  


Reply



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
Program aborted on CentOS with glibc-2.5 and not on Fedora with glibc 2.9 Thiyagarajan R Linux - General 1 06-16-2009 11:58 AM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration