Skip to content

Instantly share code, notes, and snippets.

@alankis
Created Aug 19, 2015
Embed
What would you like to do?
/home/alan/.rvm/rubies/ruby-2.2.2/bin/ruby mkrf_conf
Checking for library ruby ... yes
Checking for header ruby/ruby.h ... yes
Checking for header ruby/io.h ... yes
Checking for library crypto ... yes
Checking for library ssl ... yes
Checking for library pq ... yes
Checking for header postgres.h ... no
Checking for header libpq-fe.h ... yes
Checking for header catalog/pg_type.h ... no
Checking for function rb_errinfo ... yes
Checking for function rb_io_stdio_file ... yes
Checking for function rb_locale_encoding ... yes
/home/alan/.rvm/rubies/ruby-2.2.2/bin/ruby -rubygems /home/alan/.rvm/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake RUBYARCHDIR=/home/alan/.rvm/gems/ruby-2.2.2/extensions/x86_64-linux/2.2.0/pgsql-1.3 RUBYLIBDIR=/home/alan/.rvm/gems/ruby-2.2.2/extensions/x86_64-linux/2.2.0/pgsql-1.3
cc -DHAVE_HEADER_RUBY_RUBY_H -DHAVE_HEADER_RUBY_IO_H -DHAVE_HEADER_LIBPQ_FE_H -DHAVE_FUNC_RB_ERRINFO -DHAVE_FUNC_RB_IO_STDIO_FILE -DHAVE_FUNC_RB_LOCALE_ENCODING -I/usr/local/include -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0 -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -O2 -fPIC -o module.o -c module.c
cc -DHAVE_HEADER_RUBY_RUBY_H -DHAVE_HEADER_RUBY_IO_H -DHAVE_HEADER_LIBPQ_FE_H -DHAVE_FUNC_RB_ERRINFO -DHAVE_FUNC_RB_IO_STDIO_FILE -DHAVE_FUNC_RB_LOCALE_ENCODING -I/usr/local/include -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0 -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -O2 -fPIC -o conn.o -c conn.c
conn.c: In function ‘pgconn_set_client_encoding’:
conn.c:457:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘VALUE’ [-Wformat=]
rb_raise( rb_ePgError, "Invalid encoding name %s", str);
^
cc -DHAVE_HEADER_RUBY_RUBY_H -DHAVE_HEADER_RUBY_IO_H -DHAVE_HEADER_LIBPQ_FE_H -DHAVE_FUNC_RB_ERRINFO -DHAVE_FUNC_RB_IO_STDIO_FILE -DHAVE_FUNC_RB_LOCALE_ENCODING -I/usr/local/include -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0 -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -O2 -fPIC -o conn_quote.o -c conn_quote.c
In file included from module.h:12:0,
from conn.h:8,
from conn_quote.h:8,
from conn_quote.c:6:
conn_quote.c: In function ‘pgconn_escape_bytea’:
/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/ruby.h:1086:30: warning: passing argument 4 of ‘PQescapeByteaConn’ from incompatible pointer type [enabled by default]
#define RSTRING(obj) (R_CAST(RString)(obj))
^
/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/ruby.h:1081:30: note: in definition of macro ‘R_CAST’
#define R_CAST(st) (struct st*)
^
/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/ruby.h:864:6: note: in expansion of macro ‘RSTRING’
RSTRING(str)->as.heap.len)
^
conn_quote.c:131:50: note: in expansion of macro ‘RSTRING_LEN’
(unsigned char *) RSTRING_PTR( str), RSTRING_LEN( str), &l);
^
In file included from module.h:25:0,
from conn.h:8,
from conn_quote.h:8,
from conn_quote.c:6:
/usr/include/postgresql/libpq-fe.h:503:23: note: expected ‘size_t *’ but argument is of type ‘int *’
extern unsigned char *PQescapeByteaConn(PGconn *conn,
^
cc -DHAVE_HEADER_RUBY_RUBY_H -DHAVE_HEADER_RUBY_IO_H -DHAVE_HEADER_LIBPQ_FE_H -DHAVE_FUNC_RB_ERRINFO -DHAVE_FUNC_RB_IO_STDIO_FILE -DHAVE_FUNC_RB_LOCALE_ENCODING -I/usr/local/include -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0 -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -O2 -fPIC -o conn_exec.o -c conn_exec.c
conn_exec.c: In function ‘pg_raise_connexec’:
conn_exec.c:72:5: warning: format not a string literal and no format arguments [-Wformat-security]
rb_raise( rb_ePgConnExec, PQerrorMessage( c->conn));
^
cc -DHAVE_HEADER_RUBY_RUBY_H -DHAVE_HEADER_RUBY_IO_H -DHAVE_HEADER_LIBPQ_FE_H -DHAVE_FUNC_RB_ERRINFO -DHAVE_FUNC_RB_IO_STDIO_FILE -DHAVE_FUNC_RB_LOCALE_ENCODING -I/usr/local/include -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0 -I/home/alan/.rvm/rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/usr/include/postgresql -I/usr/include/postgresql/9.3/server -O2 -fPIC -o result.o -c result.c
result.c: In function ‘pg_fetchresult’:
result.c:542:10: error: ‘NUMERICOID’ undeclared (first use in this function)
case NUMERICOID:
^
result.c:542:10: note: each undeclared identifier is reported only once for each function it appears in
result.c:547:43: error: ‘VARHDRSZ’ undeclared (first use in this function)
if (typmod == -1 || (typmod - VARHDRSZ) & 0xffff)
^
result.c:551:10: error: ‘INT8OID’ undeclared (first use in this function)
case INT8OID:
^
result.c:552:10: error: ‘INT4OID’ undeclared (first use in this function)
case INT4OID:
^
result.c:553:10: error: ‘INT2OID’ undeclared (first use in this function)
case INT2OID:
^
result.c:554:10: error: ‘OIDOID’ undeclared (first use in this function)
case OIDOID:
^
result.c:556:10: error: ‘FLOAT8OID’ undeclared (first use in this function)
case FLOAT8OID:
^
result.c:557:10: error: ‘FLOAT4OID’ undeclared (first use in this function)
case FLOAT4OID:
^
result.c:559:10: error: ‘BOOLOID’ undeclared (first use in this function)
case BOOLOID:
^
result.c:562:10: error: ‘BYTEAOID’ undeclared (first use in this function)
case BYTEAOID:
^
result.c:571:10: error: ‘DATEOID’ undeclared (first use in this function)
case DATEOID:
^
result.c:573:10: error: ‘TIMEOID’ undeclared (first use in this function)
case TIMEOID:
^
result.c:574:10: error: ‘TIMETZOID’ undeclared (first use in this function)
case TIMETZOID:
^
result.c:576:10: error: ‘TIMESTAMPOID’ undeclared (first use in this function)
case TIMESTAMPOID:
^
result.c:577:10: error: ‘TIMESTAMPTZOID’ undeclared (first use in this function)
case TIMESTAMPTZOID:
^
result.c:579:10: error: ‘CASHOID’ undeclared (first use in this function)
case CASHOID:
^
rake aborted!
Autorake::Builder::Error: Autorake::Compiler failed.
/home/alan/.rvm/gems/ruby-2.2.2/gems/autorake-2.4.3/lib/autorake/compile.rb:46:in `build'
/home/alan/.rvm/gems/ruby-2.2.2/gems/autorake-2.4.3/lib/autorake/compile.rb:68:in `build'
/home/alan/.rvm/gems/ruby-2.2.2/gems/autorake-2.4.3/lib/autorake/compile.rb:16:in `block in cc'
/home/alan/.rvm/gems/ruby-2.2.2/gems/autorake-2.4.3/lib/autorake/compile.rb:28:in `command'
/home/alan/.rvm/gems/ruby-2.2.2/gems/autorake-2.4.3/lib/autorake/compile.rb:16:in `cc'
/home/alan/.rvm/gems/ruby-2.2.2/gems/pgsql-1.3/lib/Rakefile:11:in `block in <top (required)>'
Tasks: TOP => default => pgsql.so => result.o
(See full trace by running task with --trace)
rake failed, exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment