bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libsigsegv] incompatible with libgc on Mac OS X?


From: William Lovas
Subject: [bug-libsigsegv] incompatible with libgc on Mac OS X?
Date: Tue, 30 Aug 2011 19:39:32 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Hey libsigsegv developers,

While trying to integrate libsigsegv's stack overflow handling into a
custom introductory programming language at CMU, i ran into an issue:
it looks like libsigsegv cannot be linked alongside the Boehm-Demers-
Weiser conservative garbage collector for C, at least on Mac OS X, as
both packages define a function catch_exception_raise.  On my MacBook
i get the following:

    ld: duplicate symbol _catch_exception_raise in
    /Users/wlovas/work/intro/15-122/c0/lib/libgc.a(os_dep.o) and
    /Users/wlovas/work/intro/15-122/c0/lib/libsigsegv.a(handler.o)

My cursory exploration of the problem suggests that this is some kind
of deficiency in the Mach exception handling mechanisms.  Can any of
you suggest a workaround?

I haven't tried building on Linux yet because i don't want to break the
build on OS X.

Thanks for any advice!

William



reply via email to

[Prev in Thread] Current Thread [Next in Thread]