AIX 4.3.3 ML5 : sem_init fails with ENOSYS (errno 109)

AIX 4.3.3 ML5 : sem_init fails with ENOSYS (errno 109)

Post by Jonathan Jud » Sat, 13 Jan 2001 23:44:11



Hi,

I'm having trouble with a port to AIX, where I want to use
sem_init to make me a semaphore.

The source code is C++.

I call sem_init using

        sem_t m_sem;
        ::sem_init(&m_sem,0,1);

I always get -1 returned and  Errno is set to 109.

Errno 109 is ENOSYS : in errno.h this is desribed as ...

"...
#define ENOSYS          109     /* Function not implemented  POSIX */
..."

The semaphore.h header file (although the definitions are a little
different from
what I expected - but they are there) says ...

" ...
/* THIS FILE is for conformance to IEEE POSIX 1003.1c.
 * It describes required symbols for the Realtime option
 * which is NOT SUPPORTED.
 */
... "

Wait, wait ...  Whaddaya mean not implemeted ... ???

Can someone enlighten me please ?

Thanks in advance for any help or suggestions.

Jonathan

 
 
 

AIX 4.3.3 ML5 : sem_init fails with ENOSYS (errno 109)

Post by Nicholas Drone » Sun, 14 Jan 2001 00:16:34


What you see is correct.  POSIX semaphores
aren't implemented on AIX.  I don't know
why.  

Time for some #defines, I guess.  Or to
squawk to IBM. :)

Regards,

Nick Dronen


> Hi,
> I'm having trouble with a port to AIX, where I want to use
> sem_init to make me a semaphore.
> The source code is C++.
> I call sem_init using
>        sem_t m_sem;
>        ::sem_init(&m_sem,0,1);
> I always get -1 returned and  Errno is set to 109.
> Errno 109 is ENOSYS : in errno.h this is desribed as ...
> "...
> #define ENOSYS          109     /* Function not implemented  POSIX */
> ..."
> The semaphore.h header file (although the definitions are a little
> different from
> what I expected - but they are there) says ...
> " ...
> /* THIS FILE is for conformance to IEEE POSIX 1003.1c.
> * It describes required symbols for the Realtime option
> * which is NOT SUPPORTED.
> */
> ... "
> Wait, wait ...  Whaddaya mean not implemeted ... ???
> Can someone enlighten me please ?
> Thanks in advance for any help or suggestions.
> Jonathan


 
 
 

1. AIX: dlopen fails with errno=8(ENOEXEC)

Hello,

I'm trying to load a shared object (AIX 4.2), built with this makefile:

shared:
         xlC_r -c shared.C
         ld -bnoentry -bexpall -bimport:symbols.imp -G -o shared.so
shared.o -lc

When I try to use dlopen to load that object, dlopen fails with the
ENOEXEC error. Man page on ld says that -G flag is supposed to yield a
shared object. When I replace the -G flag with -bM:SRE, dlopen works.
Why can't I use -G ? Do I have to build the calling program (the one
who calls dlopen) with some special options ?

I would appreciate any help on this subject. Thank you,

Martin

Sent via Deja.com http://www.deja.com/
Before you buy.

2. ldapsearch

3. Badness in softirq.c 109, possible fix

4. Multiple CPU

5. Alpha 2.1.109?

6. RH6.0 and tape backup

7. 2.5.66-bk5 spinlock warnings/errors - Specifically ide-io:109 spinlock notice

8. Can't compile jpeg/png for GIMP

9. troubles installing linux 109

10. linux 109 doesn't install right.

11. 2.1.109: TR Broken?

12. No errpt via smit (1800-109, 1800-107)

13. Cannot compile kernel 2.1.109