[Cartoweb-dev] [Bug 1720] New: pgdijkstra - unwind_resume link error

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Mon May 21 23:51:11 EDT 2007


           Summary: pgdijkstra - unwind_resume link error
           Product: CartoWeb
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
        AssignedTo: cartoweb-dev at lists.maptools.org
        ReportedBy: kyngchaos at kyngchaos.com

When compiling pgdijkstra 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 pgdijkstra makefile (mirroring 
what is set in pgxs.mk for Darwin):

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

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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the Cartoweb-dev mailing list