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 05-27-2008, 10:30 AM   #1
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
2.5.1 glibc configure error


hi,

I am currently at chapter 2.5.1 trying to configure glibc.

I get this error:

checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.

I use Ubuntu Hardy(8.04)

thanks in advance,
dracayr
 
Old 05-27-2008, 11:16 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
glibc is built twice, which section are you having problems with? Also, read section 1.5. Section 1.5 gives you some pointers on how to get help if you need it while building your system.
 
Old 05-27-2008, 01:02 PM   #3
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
hi,

I encountered the error at the first build.
I'm using version 6.3 of the book.



EDIT: ok, I looked in the config.log file:

configure:5491: checking for .preinit_array/.init_array/.fini_array support
configure:5504: gcc -B/tools/bin/ -g -O2 -o conftest conftest.c
-static -nostartfiles -nostdlib 1>&5
/tools/bin/ld: unrecognized option '--hash-style=both'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:5507: $? = 1
configure:5520: result: no
configure:5523: error: Need linker with .init_array/.fini_array support.

ld is version 2.17

EDIT2: I worked my way around it by setting CC="gcc -B/usr/bin". Even so, If you know how to fix that error, please post, since it's still there in my /tools/bin

dracayr

Last edited by dracayr; 05-27-2008 at 04:10 PM.
 
  


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
error in configure glibc-2.3.4 isilinux Linux - Software 11 07-07-2010 12:04 PM
glibc pass1--configure error keyur Linux From Scratch 5 01-30-2009 05:05 AM
Glibc ./configure ERROR saml Linux From Scratch 1 06-30-2005 03:26 PM
glibc error with ./configure speel Linux - Distributions 1 08-07-2004 07:57 PM
Chapter 6 Glibc error in configure MasterC Linux From Scratch 6 07-17-2003 01:17 PM

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

All times are GMT -5. The time now is 02:44 PM.

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