Bug 13282 – __libc_current_sigrtmax is not accessible from module linux
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2014-08-11T10:33:00Z
Last change time
2016-10-20T09:13:57Z
Assigned to
nobody
Creator
NCrashed
Comments
Comment #0 by NCrashed — 2014-08-11T10:33:08Z
Can't use core.sys.posix.signal.SIGRTMIN and core.sys.posix.signal.SIGRTMAX due error:
```
../../source/daemonize/linux.d(44): Error: function core.sys.posix.signal.__libc_current_sigrtmax is not accessible from module linux
../../source/daemonize/linux.d(44): Error: function core.sys.posix.signal.__libc_current_sigrtmin is not accessible from module linux
```
They are aliases to private functions:
```
private extern (C) nothrow @nogc
{
int __libc_current_sigrtmin();
int __libc_current_sigrtmax();
}
alias __libc_current_sigrtmin SIGRTMIN;
alias __libc_current_sigrtmax SIGRTMAX;
```
Workaround: export the functions in your code
```
extern (C) nothrow @nogc
{
int __libc_current_sigrtmin();
int __libc_current_sigrtmax();
}
```
Checked on dmd 2.065 and 2.066.0-rc2