From: Brian Candler Date: 2011-03-02T17:54:37+09:00 Subject: Re: Trying to install pg on 32bit Snow Leopard 10.6 Chris Lemcke wrote in post #984496: > have_library: checking for PQconnectdb() in -lpq... > -------------------- no > > "/usr/bin/gcc-4.2 -o conftest -I. -I/opt/local/lib/ruby/1.8/i686- > darwin10 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE - > I/opt/local/include -I/opt/local/include/postgresql84 -pipe -O2 -fno- > common -pipe -fno-common -arch i386 conftest.c -L. -L/opt/local/lib > -L/opt/local/lib -L. -L/opt/local/lib -L/opt/local/lib/postgresql84 - > arch i386 -arch i386 -lruby-static -lpq -lpthread -ldl -lobjc " > conftest.c: In function t: > conftest.c:3: error: PQconnectdb undeclared (first use in this > function) > conftest.c:3: error: (Each undeclared identifier is reported only once > conftest.c:3: error: for each function it appears in.) > checked program was: > /* begin */ > 1: /*top*/ > 2: int main() { return 0; } > 3: int t() { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; > return 0; } > /* end */ Strange, looks like this conftest forgot to #include the header or declare PQconnectdb. The later tests declare int PQconnectdb(); but they are looking for different libraries, so fail later in the linking stage. Raise a ticket on macports? -- Posted via http://www.ruby-forum.com/.