Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STREAMS (stropts.h) is now obselete in libc 2.30 &> #101

Open
lukehinds opened this issue Jan 1, 2020 · 1 comment
Open

STREAMS (stropts.h) is now obselete in libc 2.30 &> #101

lukehinds opened this issue Jan 1, 2020 · 1 comment

Comments

@lukehinds
Copy link

lukehinds commented Jan 1, 2020

On arch linux:

ttyrec.c:60:10: fatal error: stropts.h: No such file or directory
   60 | #include <stropts.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: ttyrec.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
Error making: ttyrec

OK, I figured it out:

libc has removed STREAMS as of release 2.30 and it's now obsolete. Arch being rolling means its on a later version of libc. Over time other distros will be updating libc, so you will need to find an alternative to using stropts.h

  • The obsolete and never-implemented XSI STREAMS header files <stropts.h>
    and <sys/stropts.h> have been removed.

https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html

@lukehinds lukehinds changed the title Failing on arch linux from strops.h dependency Failing on arch linux from stropts.h dependency Jan 1, 2020
@lukehinds lukehinds changed the title Failing on arch linux from stropts.h dependency STREAMS (stropts.h) is now obselete in libc Jan 1, 2020
@lukehinds lukehinds changed the title STREAMS (stropts.h) is now obselete in libc STREAMS (stropts.h) is now obselete in libc 2.30 &> Jan 1, 2020
@ghost
Copy link

ghost commented Jul 6, 2021

So, how to solve this problem? I had the same problem!

@icholy icholy pinned this issue Jul 6, 2021
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

No branches or pull requests

1 participant