Re: 8.0 libpq: missing get_home_path()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: 8.0 libpq: missing get_home_path()
Date: 2004-08-18 17:02:55
Message-ID: 1991.1092848575@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> writes:
> I tried compile some program with latest CVS libpq:

> gcc -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include/httpd
> -Wall -I/usr/lib/postgresql/include -DLIBAPMOM_FUNCALL=1 -Wall
> -Wmissing-prototypes -Wmissing-declarations `xml2-config --cflags`
> `Wand-config --cppflags` -o jsn-importer main.o file.o db.o md5.o
> -L/usr/lib/postgresql/lib -lpq `xml2-config --libs` -lMagick -lWand

> /usr/lib/postgresql/lib/libpq.so: undefined reference to `get_home_path'

There's another problem here, which is that pulling port/path.c into
libpq to fix this will pollute application namespace with a whole bunch
of global symbols that don't use a PQ or pq prefix.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-08-18 17:06:37 Re: 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf
Previous Message Manfred Spraul 2004-08-18 16:52:42 Re: NOT LOGGED options (was Point in Time Recovery )

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-08-18 17:06:37 Re: 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf
Previous Message Bruce Momjian 2004-08-18 16:53:43 Re: Compiling libpq with VC6