public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: cdinesh <dinesh.chuhan@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: gcc  compatibility
Date: Fri, 23 May 2008 10:01:00 -0000	[thread overview]
Message-ID: <17420841.post@talk.nabble.com> (raw)
In-Reply-To: <48351E4C.7010104@cs.uni-frankfurt.de>



 Hi Sven

 I have tried with  set LD_DEBUG  on system A .
 The binary is looking  for libc and ld-linux librarys and 
 while loading them on system A  ld  has some problem.
 as of your reference ld checking  hashing type also  (.hash or .gnuhash)

now Iam planning to copy system B libraries ( mainly glibc-2.5) to system A 
at some location 
(i.e /usr/local/lib-2.5 ) and while building binary on system B  and give 
-L /usr/local/lib-2.5 

Is there any other processor ??

regards
dinesh



Sven Eschenberg wrote:
> 
> Hi Dinesh,
> 
> Well it is fairly normal to run into problems when trying to run a 
> progam with old libs, if it was linked to newer ones.
> 
> If there is a command line switch, it's rather related to ld (the 
> linker) whose switches of course can be passed to gcc.
> 
> To find out which switch might help and why exactly the old glibc's 
> dynamic linker doesn't like the executeable from system B, you can try 
> the following:
> 
> set LD_DEBUG to all (export LD_DEBUG="all")
> 
> Then run your program, and see if the linker spits out something where 
> exactly the problem occurs (maybe you are lucky)
> 
> One issue could be the .hash versus .gnu.hash section ... I don't know 
> when this was changed. But as long as we do not know what the linker was 
> trying to do, when it crashed, it will be hard to see, if the problem 
> can be fixed by a commandline switch.
> 
> Regards
> 
> -Sven
> 
> P.S.: To answer your previous gate.so question - It is a virtual shared 
> object which maps the kernel's syscall interface into the proces' memory 
> map ... I doubt this causes the linker to go nuts ...
> 
>>  Thank you Sven for quick response
>>   
>>   
>>>>  As you can see your program is linked against the NTPL version of
>>>> glibc 
>>>> on System A (running glibc 2.3) ... LinuxThreads support was dropped in 
>>>> 2.4 AFAIK. Obviously the version compiled on System B is linked against 
>>>> version 2.5 of glibc.
>>>>       
>> Correct both have different thread  versions
>>
>>   
>>>> You could check the outputs of your two glibc version to check for 
>>>> differences ... (Just run them), the output should somewhat look like
>>>>       
>> this:
>> yaa , correct  but  is there any compile option  in gcc that can ignore
>> glibc versions or ABI changes ??
>>
>>  Is there any problem in "linux-gate.so.1" ??
>>
>> thank you 
>> dinesh
>>  
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/gcc--compatibility-tp17396275p17420841.html
Sent from the gcc - Help mailing list archive at Nabble.com.

  reply	other threads:[~2008-05-23  8:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22  3:38 cdinesh
2008-05-22  5:09 ` Sven Eschenberg
2008-05-22  7:18   ` cdinesh
2008-05-22  8:17     ` Sven Eschenberg
2008-05-23 10:01       ` cdinesh [this message]
2008-05-23 15:18         ` Kai Ruottu
2008-05-27  9:09 ` Harald Krammer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17420841.post@talk.nabble.com \
    --to=dinesh.chuhan@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).