[#40647] RAA dead link check — "NAKAMURA, Hiroshi" <nakahiro@...>

なひです。

19 messages 2005/03/04
[#40685] Re: RAA dead link check — "NAKAMURA, Hiroshi" <nakahiro@...> 2005/03/20

-----BEGIN PGP SIGNED MESSAGE-----

[ruby-list:40720] Re: ruby-postgresql0.7.1

From: nobu@...
Date: 2005-03-24 15:34:51 UTC
List: ruby-list #40720
なかだです。

At Thu, 24 Mar 2005 00:13:34 +0900,
Ryutaro Amano wrote in [ruby-list:40712]:
> 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:

> postgresql-7.4.6は、
> ./configure --with-java --with-openssl=/usr --with-rendezvous

opensslとリンクされているので、-lsslを付けないといけないようで
すね。have_library("ssl") を have_library("pq", "PQsetdbLogin")
の前に追加すれば、たぶんとりあえず通ることは通ると思いますが…。
pg_configにはpkg-configのように必要なライブラリを調べる方法がな
いようで、どうしたものやら。

ついでにいうと、README.jaには--with-pgsql-{include,lib}-dirと書
いてありますが、dir_configも使っているので最後の-dirは付ける必
要はありません。なんでわざわざwith_configで調べてるんだろう。

-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread