find_executable: checking for pg_config... -------------------- yes -------------------- find_header: checking for libpq-fe.h... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return 0; 6: } /* end */ "gcc -E -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- find_header: checking for libpq/libpq-fs.h... -------------------- yes "gcc -E -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- find_header: checking for pg_config_manual.h... -------------------- yes "gcc -E -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- have_library: checking for PQconnectdb() in -lpq... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: 5: /*top*/ 6: extern int t(void); 7: int main(int argc, char **argv) 8: { 9: if (argc > 1000000) { 10: printf("%p", &t); 11: } 12: 13: return 0; 14: } 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; return 0; } /* end */ -------------------- have_func: checking for PQconnectionUsedPassword()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQconnectionUsedPassword’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectionUsedPassword; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectionUsedPassword; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQconnectionUsedPassword(); return 0; } /* end */ -------------------- have_func: checking for PQisthreadsafe()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQisthreadsafe’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQisthreadsafe; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQisthreadsafe; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQisthreadsafe(); return 0; } /* end */ -------------------- have_func: checking for PQprepare()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQprepare’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQprepare; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQprepare; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQprepare(); return 0; } /* end */ -------------------- have_func: checking for PQexecParams()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQexecParams’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQexecParams; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQexecParams; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQexecParams(); return 0; } /* end */ -------------------- have_func: checking for PQescapeString()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQescapeString’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeString; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeString; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQescapeString(); return 0; } /* end */ -------------------- have_func: checking for PQescapeStringConn()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQescapeStringConn’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeStringConn; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeStringConn; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQescapeStringConn(); return 0; } /* end */ -------------------- have_func: checking for PQescapeLiteral()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQescapeLiteral’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeLiteral; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeLiteral; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQescapeLiteral(); return 0; } /* end */ -------------------- have_func: checking for PQescapeIdentifier()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQescapeIdentifier’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeIdentifier; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQescapeIdentifier; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQescapeIdentifier(); return 0; } /* end */ -------------------- have_func: checking for PQgetCancel()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQgetCancel’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQgetCancel; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQgetCancel; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQgetCancel(); return 0; } /* end */ -------------------- have_func: checking for lo_create()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘lo_create’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))lo_create; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))lo_create; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { lo_create(); return 0; } /* end */ -------------------- have_func: checking for pg_encoding_to_char()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘pg_encoding_to_char’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))pg_encoding_to_char; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))pg_encoding_to_char; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { pg_encoding_to_char(); return 0; } /* end */ -------------------- have_func: checking for pg_char_to_encoding()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘pg_char_to_encoding’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))pg_char_to_encoding; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))pg_char_to_encoding; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { pg_char_to_encoding(); return 0; } /* end */ -------------------- have_func: checking for PQsetClientEncoding()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQsetClientEncoding’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQsetClientEncoding; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQsetClientEncoding; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQsetClientEncoding(); return 0; } /* end */ -------------------- have_func: checking for PQlibVersion()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQlibVersion’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQlibVersion; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQlibVersion; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQlibVersion(); return 0; } /* end */ -------------------- have_func: checking for PQping()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQping’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQping; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQping; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQping(); return 0; } /* end */ -------------------- have_func: checking for PQsetSingleRowMode()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQsetSingleRowMode’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQsetSingleRowMode; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQsetSingleRowMode; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQsetSingleRowMode(); return 0; } /* end */ -------------------- have_func: checking for PQconninfo()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘PQconninfo’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconninfo; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconninfo; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { PQconninfo(); return 0; } /* end */ -------------------- have_func: checking for rb_encdb_alias()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_encdb_alias’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_encdb_alias; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_encdb_alias; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { rb_encdb_alias(); return 0; } /* end */ -------------------- have_func: checking for rb_enc_alias()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_enc_alias’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_alias; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_alias; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { rb_enc_alias(); return 0; } /* end */ -------------------- have_func: checking for rb_thread_call_without_gvl()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_thread_call_without_gvl’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { rb_thread_call_without_gvl(); return 0; } /* end */ -------------------- have_func: checking for rb_thread_call_with_gvl()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_thread_call_with_gvl’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_with_gvl; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_with_gvl; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { rb_thread_call_with_gvl(); return 0; } /* end */ -------------------- have_func: checking for rb_thread_fd_select()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_fd_select; return 0; } /* end */ -------------------- have_func: checking for rb_w32_wrap_io_handle()... -------------------- no "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_w32_wrap_io_handle’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_w32_wrap_io_handle; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_w32_wrap_io_handle; return 0; } /* end */ "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" /tmp/ccTWar6g.o: In function `t': /home/jhawthorn/src/solidus/backend/vendor/bundle/gems/pg-0.18.2/ext/conftest.c:13: undefined reference to `rb_w32_wrap_io_handle' collect2: error: ld returned 1 exit status checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { rb_w32_wrap_io_handle(); return 0; } /* end */ -------------------- have_func: checking for rb_str_modify_expand()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_modify_expand; return 0; } /* end */ -------------------- have_func: checking for rb_hash_dup()... -------------------- yes "gcc -o conftest -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -L/usr/lib/x86_64-linux-gnu -Wl,-R/usr/lib/x86_64-linux-gnu -L. -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lpq -Wl,-R/home/jhawthorn/.rubies/ruby-2.2.2/lib -L/home/jhawthorn/.rubies/ruby-2.2.2/lib -lruby-static -lpq -lpthread -ljemalloc -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: /*top*/ 4: extern int t(void); 5: int main(int argc, char **argv) 6: { 7: if (argc > 1000000) { 8: printf("%p", &t); 9: } 10: 11: return 0; 12: } 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_hash_dup; return 0; } /* end */ -------------------- have_const: checking for PGRES_COPY_BOTH in libpq-fe.h... -------------------- yes "gcc -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: 5: /*top*/ 6: typedef int conftest_type; 7: conftest_type conftestval = (int)PGRES_COPY_BOTH; /* end */ -------------------- have_const: checking for PGRES_SINGLE_TUPLE in libpq-fe.h... -------------------- yes "gcc -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: 5: /*top*/ 6: typedef int conftest_type; 7: conftest_type conftestval = (int)PGRES_SINGLE_TUPLE; /* end */ -------------------- have_const: checking for PG_DIAG_TABLE_NAME in libpq-fe.h... -------------------- yes "gcc -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: 5: /*top*/ 6: typedef int conftest_type; 7: conftest_type conftestval = (int)PG_DIAG_TABLE_NAME; /* end */ -------------------- have_struct_member: checking for struct pgNotify.extra in libpq-fe.h... -------------------- yes "gcc -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: 5: /*top*/ 6: int s = (char *)&((struct pgNotify*)0)->extra - (char *)0; 7: int main(int argc, char **argv) 8: { 9: return 0; 10: } /* end */ -------------------- have_header: checking for unistd.h... -------------------- yes "gcc -E -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- have_header: checking for ruby/st.h... -------------------- yes "gcc -E -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- checking for C99 variable length arrays... -------------------- yes "gcc -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0/ruby/backward -I/home/jhawthorn/.rubies/ruby-2.2.2/include/ruby-2.2.0 -I. -I/usr/include/postgresql -O3 -march=native -g -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: void test_vla(int l){ int vla[l]; } /* end */ -------------------- extconf.h is: /* begin */ 1: #ifndef EXTCONF_H 2: #define EXTCONF_H 3: #define HAVE_PQCONNECTIONUSEDPASSWORD 1 4: #define HAVE_PQISTHREADSAFE 1 5: #define HAVE_PQPREPARE 1 6: #define HAVE_PQEXECPARAMS 1 7: #define HAVE_PQESCAPESTRING 1 8: #define HAVE_PQESCAPESTRINGCONN 1 9: #define HAVE_PQESCAPELITERAL 1 10: #define HAVE_PQESCAPEIDENTIFIER 1 11: #define HAVE_PQGETCANCEL 1 12: #define HAVE_LO_CREATE 1 13: #define HAVE_PG_ENCODING_TO_CHAR 1 14: #define HAVE_PG_CHAR_TO_ENCODING 1 15: #define HAVE_PQSETCLIENTENCODING 1 16: #define HAVE_PQLIBVERSION 1 17: #define HAVE_PQPING 1 18: #define HAVE_PQSETSINGLEROWMODE 1 19: #define HAVE_PQCONNINFO 1 20: #define HAVE_RB_ENCDB_ALIAS 1 21: #define HAVE_RB_ENC_ALIAS 1 22: #define HAVE_RB_THREAD_CALL_WITHOUT_GVL 1 23: #define HAVE_RB_THREAD_CALL_WITH_GVL 1 24: #define HAVE_RB_THREAD_FD_SELECT 1 25: #define HAVE_RB_STR_MODIFY_EXPAND 1 26: #define HAVE_RB_HASH_DUP 1 27: #define HAVE_CONST_PGRES_COPY_BOTH 1 28: #define HAVE_CONST_PGRES_SINGLE_TUPLE 1 29: #define HAVE_CONST_PG_DIAG_TABLE_NAME 1 30: #define HAVE_STRUCT_PGNOTIFY_EXTRA 1 31: #define HAVE_ST_EXTRA 1 32: #define HAVE_ST_NOTIFY_EXTRA 1 33: #define HAVE_UNISTD_H 1 34: #define HAVE_RUBY_ST_H 1 35: #define HAVE_VARIABLE_LENGTH_ARRAYS 1 36: #endif /* end */