From: Ryutaro Amano Date: 2005-03-24T00:13:34+09:00 Subject: [ruby-list:40712] Re: ruby-postgresql0.7.1 天野です。 >mkmf.logを見せてください。 長くなりますが、 have_library: checking for cygwin32_socket() in -lwsock32... --------- ----------- no "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lwsock32 -lpthread -ldl -lobjc " ld: can't locate file for: -lwsock32 checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { cygwin32_socket(); return 0; } /* end */ "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lwsock32 -lpthread -ldl -lobjc " conftest.c: In function `t': conftest.c:5: error: `cygwin32_socket' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))cygwin32_socket; return 0; } /* end */ -------------------- have_library: checking for socket() in -lsocket... ------------------- - no "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lsocket -lpthread -ldl -lobjc " ld: can't locate file for: -lsocket checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { socket(); return 0; } /* end */ "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lsocket -lpthread -ldl -lobjc " conftest.c: In function `t': conftest.c:5: error: `socket' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))socket; return 0; } /* end */ -------------------- have_library: checking for gethostbyname() in -linet... -------------- ------ no "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -linet -lpthread -ldl -lobjc " ld: can't locate file for: -linet checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { gethostbyname(); return 0; } /* end */ "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -linet -lpthread -ldl -lobjc " conftest.c: In function `t': conftest.c:5: error: `gethostbyname' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname; return 0; } /* end */ -------------------- have_library: checking for gethostbyname() in -lnsl... --------------- ----- no "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lnsl -lpthread -ldl -lobjc " ld: can't locate file for: -lnsl checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { gethostbyname(); return 0; } /* end */ "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lnsl -lpthread -ldl -lobjc " conftest.c: In function `t': conftest.c:5: error: `gethostbyname' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))gethostbyname; return 0; } /* end */ -------------------- have_header: checking for sys/un.h... -------------------- yes "gcc -E -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/local/ lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -o conftest.i" checked program was: /* begin */ #include /* end */ -------------------- have_func: checking for socket()... -------------------- yes "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lpthread -ldl -lobjc " checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { socket(); return 0; } /* end */ -------------------- have_func: checking for hsterror()... -------------------- no "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lpthread -ldl -lobjc " ld: Undefined symbols: _hsterror checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { hsterror(); return 0; } /* end */ "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lpthread -ldl -lobjc " conftest.c: In function `t': conftest.c:5: error: `hsterror' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))hsterror; return 0; } /* end */ -------------------- have_func: checking for gethostname()... -------------------- yes "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lpthread -ldl -lobjc " checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { gethostname(); return 0; } /* end */ -------------------- have_library: checking for PQsetdbLogin() in -lpq... ----------------- --- no "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lpq -lpthread -ldl -lobjc " ld: Undefined symbols: _SSL_pending _BIO_free _BIO_new_mem_buf _DH_check _DH_generate_parameters _DH_size _ERR_get_error _ERR_reason_error_string _EVP_PKEY_free _PEM_read_DHparams _PEM_read_PrivateKey _PEM_read_X509 _PEM_read_bio_DHparams _SSL_CTX_ctrl _SSL_CTX_free _SSL_CTX_load_verify_locations _SSL_CTX_new _SSL_CTX_set_tmp_dh_callback _SSL_CTX_set_verify _SSL_CTX_set_verify_depth _SSL_connect _SSL_free _SSL_get_error _SSL_get_ex_data _SSL_get_peer_certificate _SSL_library_init _SSL_load_error_strings _SSL_new _SSL_read _SSL_set_ex_data _SSL_set_fd _SSL_shutdown _SSL_write _TLSv1_method _X509_NAME_get_text_by_NID _X509_NAME_oneline _X509_check_private_key _X509_free _X509_get_subject_name checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { PQsetdbLogin(); return 0; } /* end */ "gcc -o conftest -I/Users/ryuamano/rubysrc/ruby-postgres-0.7.1 -I/usr/ local/lib/ruby/1.8/powerpc-darwin7.7.0 -I/usr/local/pgsql/include conftest.c -L"/usr/local/pgsql/lib" -L"/usr/local/lib" -lruby- static -lpq -lpthread -ldl -lobjc " conftest.c: In function `t': conftest.c:5: error: `PQsetdbLogin' undeclared (first use in this function) conftest.c:5: error: (Each undeclared identifier is reported only once conftest.c:5: error: for each function it appears in.) checked program was: /* begin */ /*top*/ int main() { return 0; } int t() { void ((*volatile p)()); p = (void ((*)()))PQsetdbLogin; return 0; } /* end */ -------------------- 以上です。 ruby本体のconfigure optionは、 ./configure --enable-pthread --enable-shared postgresql-7.4.6は、 ./configure --with-java --with-openssl=/usr --with-rendezvous $ ruby --version ruby 1.8.2 (2004-12-25) [powerpc-darwin7.7.0] $ gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Ryutaro Amano wn9r-amn@asahi-net.or.jp