From: kensaku Maki Date: 2003-08-20T16:18:43+09:00 Subject: [ruby-list:38168] Re: Ruby1.8.0でRuby-PostgreSQLがビルドできない まきです。 早速のお返事,ありがとうございます。 Ruby1.8.0で実行した場合のmkmf.logです。 かなり長いので、 > > > checking for socket()... no 部分のログだけを切り出しました。 また、極端に長い行は適宜改行を入れました。 > have_func: checking for socket()... -------------------- > gcc -o conftest -I/usr/local/lib/ruby/1.8/i386-cygwin > -I/usr/local/lib/ruby/1.8/i386-cygwin -I/usr/local/cygwin-local/include conftest.c > -L/usr/local/lib -L/usr/local/cygwin-local/lib -lcygwin-ruby18-static > > /usr/local/lib/ruby/1.8/mkmf.rb:154: warning: > Insecure world writable dir /usr/local/bin, mode 040777 > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: > cannot find -lcygwin-ruby18-static > > collect2: ld returned 1 exit status > checked program was: > /* begin */ > > int main() { return 0; } > int t() { socket(); return 0; } > /* end */ > gcc -o conftest -I/usr/local/lib/ruby/1.8/i386-cygwin > -I/usr/local/lib/ruby/1.8/i386-cygwin -I/usr/local/cygwin-local/include conftest.c > -L/usr/local/lib -L/usr/local/cygwin-local/lib -lcygwin-ruby18-static > > /usr/local/lib/ruby/1.8/mkmf.rb:154: warning: > Insecure world writable dir /usr/local/bin, mode 040777 > > conftest.c: In function `t': > conftest.c:4: `socket' undeclared (first use in this function) > conftest.c:4: (Each undeclared identifier is reported only once > conftest.c:4: for each function it appears in.) > checked program was: > /* begin */ > > int main() { return 0; } > int t() { void ((*volatile p)()); p = (void ((*)()))socket; return 0; } > /* end */ > > -------------------- no Ruby1.6.8でのそれと比較したかったのですが、こちらの場合の mkmf.logには当該部分は存在しませんでした。 ほぼ同じ処理が2回繰返されているのが気になります。 最初、PostgreSQLのincludeとlibのパスが間違っているのかと 思っていたのですが、エラーログとextconf.rbとを見比べると、 includeなどが呼び出される前の部分で起こっている様子。 have_func("socket")かhave_func("cygwin32_socket")の どちらかがtrueでないと、そもそもPostgreSQLとは関係がなさそうです。