zenhob/hcl — Issue #36: Installation failing with "use ruby/io.h"
Author: adamyonk
Created: 2011-10-10 20:44:02+00:00
State: open

Building native extensions. This could take a while...
ERROR: Error installing hcl:
ERROR: Failed to build gem native extension.

/Users/adamyonk/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb
checking for termios.h... yes
checking for unistd.h... yes
creating Makefile

make
gcc-4.2 -I. -I/Users/adamyonk/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.0.1 -I/Users/adamyonk/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/adamyonk/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_TERMIOS_H -DHAVE_UNISTD_H -I'/Users/adamyonk/.rbenv/versions/1.9.2-p290/include' -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -pipe -o termios.o -c termios.c
In file included from termios.c:10:
/Users/adamyonk/.rbenv/versions/1.9.2-p290/include/ruby-1.9.1/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
termios.c: In function ‘Termios_to_termios’:
termios.c:182: error: ‘struct RArray’ has no member named ‘ptr’
termios.c:183: error: ‘struct RArray’ has no member named ‘ptr’
termios.c: In function ‘termios_tcgetattr’:
termios.c:200: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:200: error: (Each undeclared identifier is reported only once
termios.c:200: error: for each function it appears in.)
termios.c:200: error: ‘fptr’ undeclared (first use in this function)
termios.c: In function ‘termios_tcsetattr’:
termios.c:224: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:224: error: ‘fptr’ undeclared (first use in this function)
termios.c:231: warning: initialization discards qualifiers from pointer target type
termios.c: In function ‘termios_tcsendbreak’:
termios.c:265: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:265: error: ‘fptr’ undeclared (first use in this function)
termios.c: In function ‘termios_tcdrain’:
termios.c:290: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:290: error: ‘fptr’ undeclared (first use in this function)
termios.c: In function ‘termios_tcflush’:
termios.c:313: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:313: error: ‘fptr’ undeclared (first use in this function)
termios.c: In function ‘termios_tcflow’:
termios.c:343: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:343: error: ‘fptr’ undeclared (first use in this function)
termios.c: In function ‘termios_tcgetpgrp’:
termios.c:374: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:374: error: ‘fptr’ undeclared (first use in this function)
termios.c: In function ‘termios_tcsetpgrp’:
termios.c:398: error: ‘OpenFile’ undeclared (first use in this function)
termios.c:398: error: ‘fptr’ undeclared (first use in this function)
make: *** [termios.o] Error 1