LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-20-2008, 07:32 AM   #1
Lonewolf Yorks
LQ Newbie
 
Registered: Mar 2008
Location: North Yorkshire, UK.
Distribution: Mandrake but its been altered.
Posts: 5

Rep: Reputation: 0
Problem MAKEing glibc


Hi I'm trying to follow the LFS course. I'm a Linux newbie. Have searched all over and have found a few similar problems but nothing the same. I can't MAKE glibc-2.5.1 I keep getting an error. Its section 5.6 of the course.

Its Mandrake on a laptop. Any help appreciated, error message as follows.

grrr it won't let me copy and paste but the last few lines are as follows...
Quote:
collect2: ld returned 1 exit status
make[2]: ***[/home/LFS_Source/Glib/glibc-build/nscd/nscd] Error 1
make[2]: Leaving directory `/home/LFS_Source/Glib/glibc-2.5.1/nscd'
make[1]: ***[/nscd/others] Error 2
make[1]: Leaving directory `/home/LFS_Source/Glib/glibc-2.5.1'
make: *** [all] Error 2
lfs:/home/LFS_Source/Glib/glibc-build$
Any extra info needed I'll try and find out.

Cheers Wolfie
 
Old 03-20-2008, 08:30 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
yes - a few lines above "collect2: ld returned 1 exit status" would help
 
Old 03-20-2008, 08:47 AM   #3
Lonewolf Yorks
LQ Newbie
 
Registered: Mar 2008
Location: North Yorkshire, UK.
Distribution: Mandrake but its been altered.
Posts: 5

Original Poster
Rep: Reputation: 0
OK I worked out how to copy and paste! More research LOL. Heres the last page.

Quote:
rm -f /home/LFS_Source/Glib/glibc-build/nis/libnss_compat.so.2.new
/bin/sh ../scripts/rellns-sh /home/LFS_Source/Glib/glibc-build/nis/libnss_compat.so /home/LFS_Source/
mv -f /home/LFS_Source/Glib/glibc-build/nis/libnss_compat.so.2.new /home/LFS_Source/Glib/glibc-build/
make[2]: Leaving directory `/home/LFS_Source/Glib/glibc-2.5.1/nis'
make subdir=nscd -C nscd ..=../ others
make[2]: Entering directory `/home/LFS_Source/Glib/glibc-2.5.1/nscd'
gcc -B/tools/bin/ -nostdlib -nostartfiles -o /home/LFS_Source/Glib/glibc-build/nscd/nscd -Wl,-dynami -Wl,-z,relro /home/LFS_Source/Glib/glibc-build/csu/crt1.o /home/LFS_Source/Glib/glibc-build/csu/crt /home/LFS_Source/Glib/glibc-build/nscd/nscd.o /home/LFS_Source/Glib/glibc-build/nscd/connections.o / me/LFS_Source/Glib/glibc-build/nscd/getpwnam_r.o /home/LFS_Source/Glib/glibc-build/nscd/getpwuid_r.o ome/LFS_Source/Glib/glibc-build/nscd/getgrnam_r.o /home/LFS_Source/Glib/glibc-build/nscd/getgrgid_r.o home/LFS_Source/Glib/glibc-build/nscd/gethstbyad_r.o /home/LFS_Source/Glib/glibc-build/nscd/gethstbyn g.o /home/LFS_Source/Glib/glibc-build/nscd/nscd_conf.o /home/LFS_Source/Glib/glibc-build/nscd/nscd_st /home/LFS_Source/Glib/glibc-build/nscd/mem.o /home/LFS_Source/Glib/glibc-build/nscd/nscd_setup_thread /home/LFS_Source/Glib/glibc-build/nscd/xstrdup.o /home/LFS_Source/Glib/glibc-build/nscd/aicache.o /ho ome/LFS_Source/Glib/glibc-build/nscd/gai.o /home/LFS_Source/Glib/glibc-build/rt/librt.so /home/LFS_So ome/LFS_Source/Glib/glibc-build/nptl/libpthread.so /home/LFS_Source/Glib/glibc-build/nis/libnsl.so - me/LFS_Source/Glib/glibc-build/math:/home/LFS_Source/Glib/glibc-build/elf:/home/LFS_Source/Glib/glibc home/LFS_Source/Glib/glibc-build/nis:/home/LFS_Source/Glib/glibc-build/rt:/home/LFS_Source/Glib/glibc t:/home/LFS_Source/Glib/glibc-build/nptl /home/LFS_Source/Glib/glibc-build/libc.so.6 /home/LFS_Source eded -lgcc_s -Wl,--no-as-needed `gcc -B/tools/bin/ --print-file-name=crtend.o` /home/LFS_Source/Glib
/home/LFS_Source/Glib/glibc-build/nscd/nscd.o: In function `nscd_open_socket':
/home/LFS_Source/Glib/glibc-2.5.1/nscd/nscd.c:414: undefined reference to `__stack_chk_guard'
/home/LFS_Source/Glib/glibc-2.5.1/nscd/nscd.c:432: undefined reference to `__stack_chk_guard'
/home/LFS_Source/Glib/glibc-build/nscd/connections.o: In function `restart':
/home/LFS_Source/Glib/glibc-2.5.1/nscd/connections.c:1129: undefined reference to `__stack_chk_guard'
/home/LFS_Source/Glib/glibc-2.5.1/nscd/connections.c:1257: undefined reference to `__stack_chk_guard'
/home/LFS_Source/Glib/glibc-build/nscd/connections.o: In function `nscd_run':
/home/LFS_Source/Glib/glibc-2.5.1/nscd/connections.c:1289: undefined reference to `__stack_chk_guard'
/home/LFS_Source/Glib/glibc-build/nscd/connections.o:/home/LFS_Source/Glib/glibc-2.5.1/nscd/connectio guard' follow
collect2: ld returned 1 exit status
make[2]: *** [/home/LFS_Source/Glib/glibc-build/nscd/nscd] Error 1
make[2]: Leaving directory `/home/LFS_Source/Glib/glibc-2.5.1/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/home/LFS_Source/Glib/glibc-2.5.1'
make: *** [all] Error 2
lfs:/home/LFS_Source/Glib/glibc-build$

Last edited by Lonewolf Yorks; 03-20-2008 at 08:48 AM. Reason: Typo
 
Old 04-03-2008, 07:55 AM   #4
Lonewolf Yorks
LQ Newbie
 
Registered: Mar 2008
Location: North Yorkshire, UK.
Distribution: Mandrake but its been altered.
Posts: 5

Original Poster
Rep: Reputation: 0
OK it appears to have been due to that fact that the laptop upon which I am creating this LFS has quite old software and didn't have the fstack capability.

So once the makefile was disabled from looking for it, it made fine.

Once you run Glibc second time, you need to reverse the disablement cos the new build WILL have the fstack.

Wolfie.
 
Old 11-12-2008, 05:07 PM   #5
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
Quote:
Originally Posted by Lonewolf Yorks View Post
OK it appears to have been due to that fact that the laptop upon which I am creating this LFS has quite old software and didn't have the fstack capability.

So once the makefile was disabled from looking for it, it made fine.

Once you run Glibc second time, you need to reverse the disablement cos the new build WILL have the fstack.

Wolfie.

I have run into the exact same problem. Would you mind sharing what exact changes to which Makefiles you used. I'm not as familiar with makefile format as I should be, tried a few things on my own but it still bombs. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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
Makeing a Partition cthomas Linux - Hardware 4 02-02-2007 11:19 PM
WAG511 problem makeing madwifi knitelius Linux - Wireless Networking 1 03-23-2005 03:24 AM
makeing my own linux einstien Linux - General 5 02-22-2005 09:23 AM
makeing a music server awc2005 Linux - Networking 3 03-04-2004 09:32 PM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration