chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Strange segfaults when linking with pthreads


From: Peter Bex
Subject: Re: [Chicken-users] Strange segfaults when linking with pthreads
Date: Fri, 4 Mar 2011 20:15:54 +0100
User-agent: Mutt/1.4.2.3i

On Fri, Mar 04, 2011 at 01:25:00PM +0100, Felix wrote:
> >> --- a/Makefile.bsd
> >> +++ b/Makefile.bsd
> >> @@ -57,7 +57,7 @@ LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
> >>  LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -shared 
> >> -Wl,-R"$(RUNTIME_LINKER_PATH)" -Wl,-L.
> >>  LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R"$(RUNTIME_LINKER_PATH)"
> >>  LIBCHICKEN_SO_LINKER_OPTIONS = 
> >> -Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so$(SONAME_VERSION)
> >> -LIBRARIES = -lm
> >> +LIBRARIES = -lm -lpthread
> >>  NEEDS_RELINKING = yes
> >>  USES_SONAME = yes
> 
> I don't think this is a problem. An chicken application like csi first
> resolves libchicken.so, and all subsequently loaded .so's will refer
> to symbols already resolved. Anyway, give it a try. 

This fixes the problems with pthreads.  Please add to experimental.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

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