• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume


  • Subject: Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
  • From: Dave McCaldon <email@hidden>
  • Date: Mon, 21 Nov 2005 14:01:32 -0500


It turns out that you need to change the definitions of CC and CXX in $PREFIX/build/config_vars.mk to be g++ rather than gcc (where $PREFIX is wherever you installed Apache, e.g. /usr/local/apache).


With that, it all works nicely with the Xcode 2.2 tools.

Thanks!


On Nov 21, 2005, at 1:51 PM, Dave McCaldon wrote:


Ok, I'll try that.

BTW: The libtool in question is a GNU libtool, but it isn't the Apple supplied libtool, it comes with the apache distribution.

Thanks.


On Nov 21, 2005, at 1:42 PM, Eric Albert wrote:

On Nov 21, 2005, at 10:38 AM, Dave McCaldon wrote:

It's a bit of a catch-22.

Hmmm ... the problem is that this is actually an apache module built by apxs, which in turn uses their own libtool (in $PREFIX/ build) to do the actual linking.

Are there any LDOPTS I can pass to make ld be in "C++" mode?

ld doesn't know about either C or C++. More specifically, it doesn't know which files the compiler needs for all of the various options which can be passed. That's why linking with gcc or g++ is recommended (and I think libtool typically does exactly that).


I guess I can edit the libtool script, but then I'm not sure I'll be able to compile C-only modules anymore!

They'll work. You can use g++ to build C code; it'll just link in some unnecessary C++ stuff.


-Eric


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40intersystems.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume (From: Dave McCaldon <email@hidden>)
 >Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume (From: Eric Albert <email@hidden>)
 >Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume (From: Dave McCaldon <email@hidden>)
 >Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume (From: Eric Albert <email@hidden>)
 >Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume (From: Dave McCaldon <email@hidden>)

  • Prev by Date: Re: [2.2] Cant get __attribute__ ((__packed__)) to work
  • Next by Date: Re: [2.2] Cant get __attribute__ ((__packed__)) to work
  • Previous by thread: Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
  • Next by thread: disassembler with c++/c source line
  • Index(es):
    • Date
    • Thread