-
Notifications
You must be signed in to change notification settings - Fork 49
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
ext/ttyrec.c fails to compile. #32
Comments
make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 |
What platform are you on? On Thursday, January 29, 2015, deepbluesea [email protected] wrote:
|
on OS-X 10.11.6 running zsh: Building native extensions. This could take a while... but since it skips the ttyrec.c on first run you get: showterm recording. (Exit shell when done.) |
Similar issue on ubuntu 16.10
|
similar error on Korora release 25 (Gurgle)
/usr/bin/ruby -r ./siteconf20170116-4522-1jl34ho.rb extconf.rb current directory: /usr/local/share/gems/gems/showterm-0.5.0/ext current directory: /usr/local/share/gems/gems/showterm-0.5.0/ext make failed, exit code 2 Gem files will remain installed in /usr/local/share/gems/gems/showterm-0.5.0 for inspection. |
Same error on Archlinux. I think gcc -v is the only relevant detail about my system. Basically, gcc 7.2.0 on i686:
The build log:
|
Same as @nponeccop. |
is this project abandoned, same-same like @nponeccop |
I've been using it, but only on mac osx recently — does anyone have an updated copy of ttyrec.c it's probably just a case of updating the dependency. |
I am having the same issue on OpenSUSE Tumbleweed (rolling release) installing $ gem install --user showterm
Building native extensions. This could take a while...
ERROR: Error installing showterm:
ERROR: Failed to build gem native extension.
current directory: /home/chris/.gem/ruby/2.5.0/gems/showterm-0.5.0/ext
/usr/bin/ruby.ruby2.5 -r ./siteconf20180225-16216-1vfwg7t.rb extconf.rb
current directory: /home/chris/.gem/ruby/2.5.0/gems/showterm-0.5.0/ext
make "DESTDIR=" clean
rm -f *.o ttyrec ttyplay ttytime ttyrecord *~
current directory: /home/chris/.gem/ruby/2.5.0/gems/showterm-0.5.0/ext
make "DESTDIR="
gcc -O2 -c -o ttyrec.o ttyrec.c
gcc -O2 -c -o io.o io.c
gcc -O2 -c -o ttyplay.o ttyplay.c
gcc -O2 -c -o ttytime.o ttytime.c
ttytime.c: In function ‘main’:
ttytime.c:64:5: warning: implicit declaration of function ‘set_progname’ [-Wimplicit-function-declaration]
set_progname(argv[0]);
^~~~~~~~~~~~
ttyrec.c: In function ‘finish’:
ttyrec.c:209:13: error: storage size of ‘status’ isn’t known
union wait status;
^~~~~~
make: *** [<builtin>: ttyrec.o] Error 1
make: *** Waiting for unfinished jobs....
ttyplay.c: In function ‘main’:
ttyplay.c:271:5: warning: implicit declaration of function ‘set_progname’; did you mean ‘sethostname’? [-Wimplicit-function-declaration]
set_progname(argv[0]);
^~~~~~~~~~~~
sethostname
make failed, exit code 2
Gem files will remain installed in /home/chris/.gem/ruby/2.5.0/gems/showterm-0.5.0 for inspection.
Results logged to /home/chris/.gem/ruby/2.5.0/extensions/x86_64-linux/2.5.0/showterm-0.5.0/gem_make.out And my $ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.7.3
- RUBY VERSION: 2.5.0 (2017-12-25 patchlevel 0) [x86_64-linux-gnu]
- INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/2.5.0
- USER INSTALLATION DIRECTORY: /home/chris/.gem/ruby/2.5.0
- RUBY EXECUTABLE: /usr/bin/ruby.ruby2.5
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /home/chris/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib64/ruby/gems/2.5.0
- /home/chris/.gem/ruby/2.5.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => true
- :bulk_threshold => 1000
- :benchmark => false
- :install => "--format-executable --no-user-install"
- "install" => "--format-executable --no-user-install"
- :format_executable => true
- :update => "--format-executable --no-user-install"
- "update" => "--format-executable --no-user-install"
- :sources => ["https://rubygems.org"]
- REMOTE SOURCES:
- https://rubygems.org
- SHELL PATH:
- /home/chris/Software/nvm/versions/node/v8.9.3/bin
- /home/chris/.go/bin
- /home/chris/Software/Salome/appli_V8_2_0
- /opt/mssql-tools/bin
- /usr/local/cuda/bin
- /home/chris/Software/hdf5/install/bin
- /home/chris/Software/dakota/install/bin
- /home/chris/Software/dakota/install/test
- /home/chris/.cabal/bin
- /home/chris/.gem/ruby/2.5.0/bin
- /home/chris/.cargo/bin
- /usr/sbin
- /sbin
- /home/chris/bin
- /home/chris/.local/bin
- /home/chris/.local/bin
- /home/chris/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/lib/mit/sbin |
Output:
Platform: FreeBSD 10.0 amd64; YARV 2.1.2; GCC 4.7.3.
The text was updated successfully, but these errors were encountered: