LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-26-2005, 10:39 AM   #1
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,397

Rep: Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114
Eh? A 'gcc' dependency in 'gawk'?


When compiling gawk source, the 'configure' step fails to create a test-program seemingly because an external-symbol can't be found... one that seems to be related to an earlier version of 'gcc' than what I have.

Aww... waitaminit... the cc symlink...

Yes, no, maybe?
 
Old 07-26-2005, 12:25 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Do "cc --version" to find out what gcc version it's using to compile. Also, you might want to paste the test program that's failing and what external symbol it can't find.
 
Old 07-27-2005, 10:54 AM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,397

Original Poster
Rep: Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114
Yeah, it's not the symlink.

The "cc --version" is 3.4.4. As is "gcc."

A snippet of config.log reads:
Code:
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
...
configure:2251: checking for C compiler default output file name
configure:2254: gcc    conftest.c  >&5
/tools/lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/tools/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
collect2: ld returned 1 exit status
configure:2257: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU Awk"
| #define PACKAGE_TARNAME "gawk"
| #define PACKAGE_VERSION "3.1.4"
| #define PACKAGE_STRING "GNU Awk 3.1.4"
| #define PACKAGE_BUGREPORT "bug-gawk@gnu.org"
| #define PACKAGE "gawk"
| #define VERSION "3.1.4"
| /* end confdefs.h.  */
(followed by a null C-program)
And here are some symlinks...
Code:
bash-2.05b$ locate libc.so.6
/lib/i686/libc.so.6
/lib/libc.so.6
/mnt/hd4/lfs/tools/lib/libc.so.6
/mnt/hd4/lfs/glibc-build/libc.so.6
bash-2.05b$ ls -l /lib/libc.so.6
lrwxrwxrwx  ... /lib/libc.so.6 -> libc-2.2.93.so  {edited "..." for clarity}
bash-2.05b$ ls -l /mnt/hd4/lfs/glibc-build/libc.so.6
lrwxrwxrwx ... /mnt/hd4/lfs/glibc-build/libc.so.6 -> libc.so
bash-2.05b$ ls -l /mnt/hd4/lfs/tools/lib/libc.so.6
lrwxrwxrwx ... /mnt/hd4/lfs/tools/lib/libc.so.6 -> libc-2.3.5.so
{The /tools/lib as seen by user "lfs" is this last one...}
Hmm... So it would seem from the output (last line...) that we are referencing libc-2.3.5.so, by means of the symlink, and we are properly referring to the libc of the lfs user, not the host, as expected. Which is rather curious because you would expect a symbol like `___tls_get_addr@GLIBC_2.3' ... unless the root cause of the problem is really "__tls_get_addr" instead of the glibc version. But this is an attempt to compile a dummy program. It isn't trying to do anything.

Very puzzling.
 
Old 07-27-2005, 08:55 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,397

Original Poster
Rep: Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114
Hmm... ick.

Walking backward to check the preceding stages of the install, I now see that the sanity-check in step 5.8 is failing with the same error. So this has nothing specifically to do with gawk after all.

Code:
cc dummy.c
/tools/lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/tools/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
collect2: ld returned 1 exit status
Hmm.. hmm.. hmm..

Last edited by sundialsvcs; 07-27-2005 at 08:56 PM.
 
  


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
where is curl and gawk ???????? bozart ROCK 11 10-23-2005 10:41 PM
gawk question luxpops Programming 1 09-12-2004 04:46 AM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM
FS=? in gawk realos Programming 2 05-28-2003 07:30 PM
gcc error while compiling gawk iceman47 Linux From Scratch 2 03-04-2003 12:12 PM


All times are GMT -5. The time now is 03:56 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