public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* OSX shared libs: any ideas?
@ 2001-09-15 15:18 Jack Lloyd
  2001-09-15 15:32 ` Paolo Carlini
  2001-09-15 17:47 ` Timothy J. Wood
  0 siblings, 2 replies; 3+ messages in thread
From: Jack Lloyd @ 2001-09-15 15:18 UTC (permalink / raw)
  To: gcc

Hi,

I know that Apple's version of gcc is not official and all that but this
seems a reasonable place to ask, as IIRC some Apple people working on the
devel tools hang out here. This is MacOS X with the May 2001 Apple devel
kit.

Any thoughts on why this is happening:

---
(sakura ~/OpenCL-0.7.5)$ c++ -shared -fPIC -lz <a list of object files> -o libopencl-0.7.5.so
/usr/bin/ld: Undefined symbols:
_main
___builtin_delete
___eprintf
___pure_virtual
___rtti_si
___rtti_user
___throw
_terminate__Fv
___check_eh_spec
___cp_pop_exception
___cp_push_exception
___eh_alloc
___start_cp_handler
___tf9exception
___ti9exception
___vt_9exception
___builtin_vec_delete
___builtin_vec_new
___builtin_new
___dynamic_cast
___lshrdi3
___ashldi3
___rtti_class
___udivdi3
___umoddi3
restFP
saveFP

(sakura ~/OpenCL-0.7.5)$ c++ -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-926, based on gcc version 2.95.2 19991024 (release)
---

1) Linking these objects into an ar lib and linking my app will work fine
2) This hasn't happened to me before on any system, so I don't think it's
pilot error re using PIC or whatever

3) Unrelated: how the #@%@%^ do I set the soname with Apple's ld? Yes, this
has nothing at all to do with gcc, but while I'm here, why not?

Thanks,

Jack


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OSX shared libs: any ideas?
  2001-09-15 15:18 OSX shared libs: any ideas? Jack Lloyd
@ 2001-09-15 15:32 ` Paolo Carlini
  2001-09-15 17:47 ` Timothy J. Wood
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Carlini @ 2001-09-15 15:32 UTC (permalink / raw)
  To: Jack Lloyd; +Cc: gcc

Hi,

> I know that Apple's version of gcc is not official and all that but this
> seems a reasonable place to ask, as IIRC some Apple people working on the
> devel tools hang out here. This is MacOS X with the May 2001 Apple devel
> kit.
>
> Any thoughts on why this is happening:

[snip]

Unfortunately I don't have a quick solution to your problem, but, judging from some recent
postings, perhaps you may find help from the "darwinos-users" list:

    http://lists.apple.com/mailman/listinfo/darwinos-users

Cheers,
Paolo.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: OSX shared libs: any ideas?
  2001-09-15 15:18 OSX shared libs: any ideas? Jack Lloyd
  2001-09-15 15:32 ` Paolo Carlini
@ 2001-09-15 17:47 ` Timothy J. Wood
  1 sibling, 0 replies; 3+ messages in thread
From: Timothy J. Wood @ 2001-09-15 17:47 UTC (permalink / raw)
  To: Jack Lloyd; +Cc: gcc

   The easy way to figure this out would be to create a library project 
in PB and see the command line it issues (by turning on the verbose 
build output preference).

   But, I believe you want like:

cc -dynamiclib *.o -o foo.dylib

   You may need to link some C++ library goo too (or maybe you can use 
-dynamiclib with c++).


-tim



On Saturday, September 15, 2001, at 03:18  PM, Jack Lloyd wrote:

> Hi,
>
> I know that Apple's version of gcc is not official and all that but this
> seems a reasonable place to ask, as IIRC some Apple people working on 
> the
> devel tools hang out here. This is MacOS X with the May 2001 Apple devel
> kit.
>
> Any thoughts on why this is happening:
>
> ---
> (sakura ~/OpenCL-0.7.5)$ c++ -shared -fPIC -lz <a list of object files> 
> -o libopencl-0.7.5.so
> /usr/bin/ld: Undefined symbols:
> _main
> ___builtin_delete
> ___eprintf
> ___pure_virtual
> ___rtti_si
> ___rtti_user
> ___throw
> _terminate__Fv
> ___check_eh_spec
> ___cp_pop_exception
> ___cp_push_exception
> ___eh_alloc
> ___start_cp_handler
> ___tf9exception
> ___ti9exception
> ___vt_9exception
> ___builtin_vec_delete
> ___builtin_vec_new
> ___builtin_new
> ___dynamic_cast
> ___lshrdi3
> ___ashldi3
> ___rtti_class
> ___udivdi3
> ___umoddi3
> restFP
> saveFP
>
> (sakura ~/OpenCL-0.7.5)$ c++ -v
> Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
> Apple Computer, Inc. version gcc-926, based on gcc version 2.95.2 
> 19991024 (release)
> ---
>
> 1) Linking these objects into an ar lib and linking my app will work 
> fine
> 2) This hasn't happened to me before on any system, so I don't think 
> it's
> pilot error re using PIC or whatever
>
> 3) Unrelated: how the #@%@%^ do I set the soname with Apple's ld? Yes, 
> this
> has nothing at all to do with gcc, but while I'm here, why not?
>
> Thanks,
>
> Jack
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-09-15 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-15 15:18 OSX shared libs: any ideas? Jack Lloyd
2001-09-15 15:32 ` Paolo Carlini
2001-09-15 17:47 ` Timothy J. Wood

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).