Subject: Re: Shared library troubles
To: None <andyf@vei.net>
From: Ken Nakata <ksn@tkf.att.ne.jp>
List: port-mac68k
Date: 07/06/1999 10:55:18
On Mon, 05 Jul 1999 18:48:04 -0400, Andy Finnell <andyf@vei.net> wrote:
> I'm having a hard time getting the pthread shared library to work
> correctly.  Everything works fine in the compile & link phase, but when
> I run the program, I run into trouble.
> 
> Here's what ld.so gives me:
> 
> /usr/libexec/ld.so: symbol ___sF at 0x403d1ec in
> /usr/local/pthreads/lib/libpthread.so.1.60 changed size: expected 264,
> actual 192
> 
> After this the program segfaults.  At first I thought it was my code, so
> I moved the function it was segfaulting in, into the function that calls
> it.  The above error still shows up.  If I statically link the program
> everything goes fine.
> 
> Any ideas of why ld.so is giving me the above warning/error?  What
> should I be looking for?  Thanks,

Are libpthread.a and libpthread.so.1.60 built from the same source?
lib*.a is used when you compile the offending program whereas
lib*.so.* is loaded by ld.so when you run that program.  Are you sure
you don't still have an old libpthread.a around somewhere cc might
look into for library files?

Ken