bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Error when starting


From: Juergen Sauermann
Subject: Re: [Bug-apl] Error when starting
Date: Sun, 15 Jun 2014 20:13:47 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

I have changed ./configure to explicitly check for shm_open() rather than
for librt presence. SVN 328.

/// Jürgen


On 06/15/2014 06:41 PM, Elias Mårtenson wrote:
It's in libc on OSX. In other words, no special library is needed to use it.

Regards,
Elias


On 15 June 2014 22:28, Juergen Sauermann <address@hidden> wrote:
Hi Elias,

in which library is shm_open() contained under OSX?

It is librt.so.1 in linux, but I can change configure.ac for OSX.

/// Jürgen



On 06/14/2014 11:49 PM, Elias Mårtenson wrote:
I found it. The problem is that shm_open is defined to -1:

#ifndef HAVE_LIBRT
# define shm_open(name, oflag, mode) (-1)
# define shm_unlink(name) (-1)
#endif

For some reason HAVE_LIBRT is not defined on OSX, but it does have shm_open(). If I just remove this block, the resulting binary works find on OSX.

Regards,
Elias


On 15 June 2014 00:28, Juergen Sauermann <address@hidden> wrote:
Hi Elias,

as far as I remember, I haven't changed anything around the shared memory.

Please check the permissions and the existence of the parents of /dev/shm/apl-svars:

address@hidden:~/projects/juergen/apl-1.3/src$ ls -l /dev/shm/apl-svars
-rw-rw-rw- 1 eedjsa eedjsa 20396 2014-06-14 12:00 /dev/shm/apl-svars


/// Jürgen



On 06/11/2014 05:57 PM, Elias Mårtenson wrote:
Since recently (the last few days?) I've bee getting this error when starting GNU APL:

shm_open(/apl-svars) failed: No such file or directory
shm_open(/apl-svars) failed: Undefined error: 0

*** Failed to start APnnn: processor -1 will not accept incoming shared variable offers. Expect surprises.

When looking at the code it looks like it's intentional.

Regards,
Elias






reply via email to

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