Skip to content

Conversation

@galmyk
Copy link

@galmyk galmyk commented Apr 3, 2025

The SIGUNUSED define was removed from glibc version 2.26 in August 2017. So Termistor cannot be built on GNU/Linux distributions that use glibc>=2.26, such as Fedora>=27 and Ubuntu>=17.10.

From the signal(7) man page:

       SIGUNUSED      -        Core    Synonymous with SIGSYS

After changing SIGUNSED to SIGSYS, there are other problems raise while building the code:

  • grantpt, unlockpt and ptsname functions, need _XOPEN_SOURCE >= 500 feature test macro.
  • posix_openpt function needs _XOPEN_SOURCE >= 600 feature test macro.
  • pipe2 function needs _GNU_SOURCE feature test macro.

Since _GNU_SOURCE implies nearly all feature test macros, adding _GNU_SOURCE is sufficient.

The SIGUNUSED define was removed from glibc version 2.26 in August
2017. So Termistor cannot be built on GNU/Linux distributions that
use glibc>=2.26, such as Fedora 27 and Ubuntu 17.10.

From the [signal(7) man
page](https://man7.org/linux/man-pages/man7/signal.7.html):

```
       SIGUNUSED      -        Core    Synonymous with SIGSYS
```

After changing `SIGUNSED` to `SIGSYS`, there are other problems
raise while building the code:

* `grantpt`, `unlockpt` and ptsname functions,
  needs `_XOPEN_SOURCE >= 500` feature test macro.
* `posix_openpt` function
  needs `_XOPEN_SOURCE >= 600` feature test macro.
* `pipe2` function
  needs `_GNU_SOURCE` feature test macro.

Since `_GNU_SOURCE` implies nearly all feature test macros,
adding `_GNU_SOURCE` is sufficient.

Signed-off-by: Ghorban M. Tavakoly <gmt3141@gmail.com>
@galmyk
Copy link
Author

galmyk commented Apr 4, 2025

Anyway, apparently this repo hasn't been updated in several years. I didn't realize this when I submitted this patch and the other one I submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant