Rick Beebe wrote:
> 
It's so embarrassing when the solution comes minutes after hitting
send--especially when I've been banging my head on this for days. The got
the original makefile came from a sample program and there is, apparently, a
bit of a problem with it. The flag should be 
-call_shared and not -shared.
--Rick Beebe
> I'm trying my hand at writing a multi-threaded program using shared
> libraries. It's actually a plug-in module for another application and it's
> required to be dynamically linked. To test out my plug-in I wrote a small
> wrapper program. When I run that program I get bunches of unresolved symbols
> in the system libraries.
> 
> Simplified, the build process looks like:
> 
> cc -g -pthread -D_REENTRANT -c try.c
> cc -shared -o try try.o
> 
> and the results I get are:
> 
> 30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
> __ldr_data
> 30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
> _end
> 30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
> __Argc
> 30538:./try: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libc.so:
> __Argv
> 30538:./try: /sbin/loader: Error: unresolvable symbol in
> /usr/shlib/libpthread.so: __Argv
> 30538:./try: /sbin/loader: Fatal Error: this executable has unresolvable
> symbols
> 
> I'm not (intentionally) using Argv or Argc anywhere in my code. Can anybody
> help?
> 
> --
>   _______________________________________________________________________
> 
>     Rick Beebe                                           (203) 785-6416
>     Manager, Systems & Network Engineering          FAX: (203) 785-3606
>     ITS-Med Client & Technology Services         Richard.Beebe_at_yale.edu
>     Yale University School of Medicine
>     P.O. Box 208078, New Haven, CT 06520-8078
>   _______________________________________________________________________
-- 
  _______________________________________________________________________
    Rick Beebe                                           (203) 785-6416
    Manager, Systems & Network Engineering          FAX: (203) 785-3606
    ITS-Med Client & Technology Services         Richard.Beebe_at_yale.edu   
    Yale University School of Medicine                                 
    P.O. Box 208078, New Haven, CT 06520-8078
  _______________________________________________________________________
Received on Mon Jan 18 1999 - 21:23:45 NZDT