Skip to content

Instantly share code, notes, and snippets.

@Houdini
Created Nov 25, 2014
Embed
What would you like to do?
houdini@houdini-bizon:~/.rvm/gems/ruby-2.1.5/extensions/x86_64-linux/2.1.0/pg-0.17.1$ cat mkmf.log
find_header: checking for libpq-fe.h... -------------------- yes
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -lpthread -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/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
/* end */
--------------------
find_header: checking for libpq/libpq-fs.h... -------------------- yes
"gcc -E -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq/libpq-fs.h>
/* end */
--------------------
find_header: checking for pg_config_manual.h... -------------------- yes
"gcc -E -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <pg_config_manual.h>
/* end */
--------------------
have_library: checking for PQconnectdb() in -lpq... -------------------- no
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -lpq -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:15:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; return 0; }
^
/usr/local/pgsql/lib/libpq.so: undefined reference to `pg_sprintf'
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
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 */
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -lpq -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:15:1: error: too few arguments to function ‘PQconnectdb’
int t(void) { PQconnectdb(); return 0; }
^
In file included from conftest.c:3:0:
/usr/local/pgsql/include/libpq-fe.h:250:16: note: declared here
extern PGconn *PQconnectdb(const char *conninfo);
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
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) { PQconnectdb(); return 0; }
/* end */
--------------------
have_library: checking for PQconnectdb() in -llibpq... -------------------- no
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -llibpq -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:15:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; return 0; }
^
/usr/bin/ld: cannot find -llibpq
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
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 */
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -llibpq -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:15:1: error: too few arguments to function ‘PQconnectdb’
int t(void) { PQconnectdb(); return 0; }
^
In file included from conftest.c:3:0:
/usr/local/pgsql/include/libpq-fe.h:250:16: note: declared here
extern PGconn *PQconnectdb(const char *conninfo);
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
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) { PQconnectdb(); return 0; }
/* end */
--------------------
have_library: checking for PQconnectdb() in -lms/libpq... -------------------- no
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -lms/libpq -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:15:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; return 0; }
^
/usr/bin/ld: cannot find -lms/libpq
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
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 */
"gcc -o conftest -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-linux -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/ruby/backward -I/home/houdini/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0 -I. -I/usr/local/pgsql/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/home/houdini/.rvm/rubies/ruby-2.1.5/lib -Wl,-R/home/houdini/.rvm/rubies/ruby-2.1.5/lib -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,'/../lib' -Wl,-R -Wl,'/../lib' -L'/../lib' -lruby -lms/libpq -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:15:1: error: too few arguments to function ‘PQconnectdb’
int t(void) { PQconnectdb(); return 0; }
^
In file included from conftest.c:3:0:
/usr/local/pgsql/include/libpq-fe.h:250:16: note: declared here
extern PGconn *PQconnectdb(const char *conninfo);
^
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
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) { PQconnectdb(); return 0; }
/* end */
--------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment