Hi,

On Nov 13, 2003, at 11:25 PM, Eric Soroos wrote:

I'm having trouble building dbmail 2.0/cvs.

Mac 10.3.1, PG 7.4rc2, current developer tools (gcc 3.3). Postgres was recently (yesterday) built from source, so I know I have at least a nominally functioning system.

It seems like there's something screwy referring to libraries, as this is what I get from a configure/make clean /make run. I will note that the path to pg_config is strange, but it is valid.
I've just found the same problem recently. The build works fine on a Linux and an OpenBSD machine, but fails on my Mac OS X 10.3.1 laptop. I'm wondering if this might have something to do with static vs shared libraries. I remember having the same problem a while back with another project. The solution there was to put the '-lpq', which denoted that we need to link with the 'libpq', at the back of every "linking call" to gcc, like this:

instead of:
gcc -o executable -lpq object1.o object2.o
do this:
gcc -o executable object1.o object2.o -lpq

I've just tried that, by changing the linking calls to gcc by putting the
'-L/usr/local/pgsql/lib -lpq' at the back. And this works.

So, there is a solution. Only one problem left. How to change Makefile.am and/or configure.in to make this work. Is there anybody on the list with a little more experience than me (virtually no experience with GNU autotools) who can shine a light on this matter?

cheers,
Ilja
--
IC&S
Stadhouderslaan 57
3583 JD Utrecht

PGP-key:
http://www.ic-s.nl/keys/ilja.txt

Reply via email to