LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2002, 07:19 PM   #1
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
glibc 2.3 (gcc 3.2) :: no luck


Hi all,

I recently upgraded my binutils & gcc. I then compiled and installed glibc 2.3 with prefix=/usr/local/glibc2.3. I wrote this :
Code:
#include <unistd.h>
#include <stdio.h>

int main() { printf "abc\n"; return 0; }
called it t.c and did #gcc -o t t.c . The output is as follows :

/usr/local/lib/libc.so.6: undefined reference to `_dl_lazy@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_2.1.1
'
/usr/local/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_clktck@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_2.0
'
/usr/local/lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_platformlen@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol_sk
ip@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol@GL
IBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_initial_searchlist@GLIBC_2
.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_symbol@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_loaded@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_origin_path@GLIBC_2.1.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_check_map_versions@GLIBC_2
.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_map_object@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_main_searchlist@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_debug_mask@GLIBC_2.2.3'
/usr/local/lib/libc.so.6: undefined reference to `_dl_load_lock@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_profile@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_debug_state@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_init_all_dirs@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_unload_cache@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_2.2.3'
/usr/local/lib/libc.so.6: undefined reference to `_dl_init@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_all_dirs@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_map_object_deps@GLIBC_2.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_nloaded@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_profile_map@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_profile_output@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_pagesize@GLIBC_2.2'
/usr/local/lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIBC_2
.0'
/usr/local/lib/libc.so.6: undefined reference to `_dl_fpu_control@GLIBC_2.1'
/usr/local/lib/libc.so.6: undefined reference to `_dl_global_scope_alloc@GLIBC_2
.1'
collect2: ld returned 1 exit status


now,
ls -l /usr/local/lib/ld-linux.so.2
reports
lrwxrwxrwx 1 root root 9 Dec 22 21:57 /usr/local/lib/ld-linux.so.2 -> ld-2.3.so*
and
ls -l /usr/local/lib/libc.so.6
reports
lrwxrwxrwx 1 root root 11 Dec 22 21:57 /usr/local/lib/libc.so.6 -> libc-2.3.so*

it looks like they're going to the correct version, what have I done wrong? thanks in advance
 
Old 12-29-2002, 10:55 PM   #2
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
okay ... as an update to the last post, please consider the following :

lackluster@lackluster:/lib$ /sbin/ldconfig /usr/local/lib
lackluster@lackluster:/lib$ cd
lackluster@lackluster:~$ gcc -o t t.c
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld: /usr/local/lib/libc.so.6: version `GLIBC_2.3' not found (required by /usr/local/lib/libdl.so.2)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld: /usr/local/lib/libc.so.6: version `GLIBC_PRIVATE' not found (required by /usr/local/lib/libdl.so.2)
collect2: ld returned 1 exit status

ah hah! a different error! thanks random occurance! but now what is this talking about? I HAVE GLIB2.3 INSTALLED IN /usr/local/lib!!

any thoughts?
 
Old 12-29-2002, 10:58 PM   #3
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
oh crap. that was a bad idea. now most of my comands are returning that error, not just gcc. ls is even doing it .....
 
Old 12-30-2002, 05:24 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
did you add /usr/local/lib to /etc/ld.so.conf and run ldconfig?
 
Old 12-30-2002, 06:41 PM   #5
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
I didn't need to. It's the first entry. Btw, by running ldconfig without any params I was able to get back to the same problem I originally had.
 
  


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
Problems with gcc 3.2.1 and glibc 2.3.1 m0llbuz_ Linux - General 3 12-31-2010 03:43 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
gcc glibc compatibility shanenin Linux - Software 2 05-17-2004 10:56 PM
gcc 3.4.0 and glibc ralam Linux From Scratch 8 05-06-2004 01:19 PM
gcc / glibc problem matt_w_lambert Linux - Software 2 10-26-2003 01:37 AM


All times are GMT -5. The time now is 10:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration