Ticket #5 (closed feature request: invalid)

Opened 3 years ago

Last modified 2 years ago

OSX - unwind_resume link error

Reported by: kyngchaos Owned by: anton
Priority: minor Milestone: Version 1.1
Component: pgRouting package Version:
Keywords: Cc:

Description

When compiling pgrouting on OSX 10.4 (Xcode 2.4), there is a missing symbol error for unwind_resume. This is a common problem on OSX with Xcode 2.2+ when linking C++ software with gcc instead of g++ (there was a similar problem in MapServer). Linking -lsdtc++ is not enough, and using g++ is needed.

This one is tricky to handle in Postgres, since the link command is set by the Postgres pgxs. I was able to get around it by adding this line after the include $(PGXS) line in the makefile (mirroring what is set in pgxs.mk for Darwin):

LINK.shared = g++ -bundle -multiply_defined suppress

and removing -lstdc++ from SHLIB_LINK.

I don't know how else to handle this (I tend to do brute-force hacks). The change happened in Xcode 2.2, though the GC version did not change (4.0.1 I think).

Change History

Changed 3 years ago by anton

  • status changed from new to assigned
  • priority changed from major to minor
  • version 1.0.0a deleted
  • milestone set to Version 1.1
  • owner set to anton
  • type changed from bug report to feature request

We never tried to compile it for OSX, because we think that it is not usual server platform. But well, we will try to do it and find a solution until the final release of version 1.1.

Changed 3 years ago by anton

  • status changed from assigned to closed
  • resolution set to invalid

Invalid since new cmake build process.

Note: See TracTickets for help on using tickets.