-
Notifications
You must be signed in to change notification settings - Fork 254
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
Error: Out of pty's #87
Comments
Did you build ttyrec yourself? |
Thanks for the prompt response. No, I used
|
Not too sure what's happening, but here's some stuff to try: Build wget http://0xcc.net/ttyrec/ttyrec-1.0.8.tar.gz
tar -xf ttyrec-1.0.8.tar.gz
cd ttyrec-1.0.8
# Add -DSVR4 to line 2 of the Makefile
# CFLAGS = -O2 -DSVR4
make
./ttyrec myrecoding
If that doesn't work, post the output to the following. # strace
strace ttyrec myrecording
# open pty's
ls /dev/pts
# max ptys
cat /proc/sys/kernel/pty/max |
I just hit this as well, installed via brew |
Same and via brew. Using Hyper terminal though. |
I don't have a mac to debug this on. The problem is here somewhere https://github.com/mjording/ttyrec/blob/c4fd0f2bc69dba852526df3610f98d867ba5ab24/ttyrec.c#L404-L435 |
Since Just for reference, here's the build output without the > make
gcc -O2 -c -o ttyrec.o ttyrec.c
ttyrec.c:363:9: warning: implicit declaration of function 'kill' is invalid in C99
[-Wimplicit-function-declaration]
(void) kill(0, SIGTERM);
^
1 warning generated.
gcc -O2 -c -o io.o io.c
io.c:161:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
gcc -O2 -o ttyrec ttyrec.o io.o
gcc -O2 -c -o ttyplay.o ttyplay.c
ttyplay.c:271:5: warning: implicit declaration of function 'set_progname' is invalid in C99
[-Wimplicit-function-declaration]
set_progname(argv[0]);
^
1 warning generated.
gcc -O2 -o ttyplay ttyplay.o io.o
gcc -O2 -c -o ttytime.o ttytime.c
ttytime.c:64:5: warning: implicit declaration of function 'set_progname' is invalid in C99
[-Wimplicit-function-declaration]
set_progname(argv[0]);
^
1 warning generated.
gcc -O2 -o ttytime ttytime.o io.o After changing the build flags and attempting to build, I got the following error: > make
gcc -O2 -DSVR4 -c -o ttyrec.o ttyrec.c
ttyrec.c:60:10: fatal error: 'stropts.h' file not found
#include <stropts.h>
^~~~~~~~~~~
1 error generated.
make: *** [ttyrec.o] Error 1 You can see here that Additionally, |
Ugh ... hopefully someone will better osx knowledge stumbles onto this. |
If I have some time, I'll see if I can investigate myself. |
Me too get this issue on Mac. |
Same issue here. Installed via Macports. |
iTerm 2 Build 3.1.5.beta.2
macOS High Sierra 10.13.1 (17B48)
Any suggestions?
The text was updated successfully, but these errors were encountered: