Re: [Hampshire] [Geeky] Semaphores and shared libraries...

Top Page

Reply to this message
Author: Stuart Matheson
Date:  
To: lug, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] [Geeky] Semaphores and shared libraries...
Did you try looking for _sem_wait() instead? If you type

nm /usr/lib/libpthread.so | grep sem_wait you should see it prefixed
with an underscore.

Let me know how you go.

Stu.

On 08/01/2008, at 11:02 PM, Vic wrote:

>> What language are you using?
>
> Forth. And as I'm the one porting the compiler, there's no help to
> be had
> from upstream...
>
>> Are you getting a compilation or linking error?
>
> Neither; I want to load up a shared library to get at the functions
> with
> dlopen() and dlsym(), but I can't find the symbols in any libraries.
>
> Looking at what gcc produces, it *looks* like I've got to rewrite
> most of
> the semaphore stuff using futex(). And that puts constraints on the
> kernels I can support (although I don't think that's a big deal).
>
> But I'm hoping someone will come along with a much easier method :-)
>
> Vic.
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------