icholy/ttygif

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

lukehinds opened this issue · 1 comments

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

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