Re: 8.0 libpq: missing get_home_path() - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: 8.0 libpq: missing get_home_path()
Date
Msg-id 200408181708.i7IH8ZR22061@candle.pha.pa.us
Whole thread Raw
In response to Re: 8.0 libpq: missing get_home_path()  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 8.0 libpq: missing get_home_path()
List pgsql-hackers
Tom Lane wrote:
> Karel Zak <zakkr@zf.jcu.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.

Yea, I am seeing that now too.  My guess is that I am going to have to
go with a macro for get_home_path like I did for is_absolute_path.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf
Next
From: Bruce Momjian
Date:
Subject: Re: 8.0 libpq: missing get_home_path()