From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: 8.0 libpq: missing get_home_path() |
Date: | 2004-08-18 17:17:44 |
Message-ID: | 200408181717.i7IHHid23767@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian wrote:
> Tom Lane wrote:
> > 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.
>
> 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.
I need to call canonicalize_path() in the macro. That kills the macro
idea.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-08-18 17:26:42 | psql table comments? |
Previous Message | Bruce Momjian | 2004-08-18 17:08:35 | Re: 8.0 libpq: missing get_home_path() |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-08-18 17:27:10 | Re: 8.0 libpq: missing get_home_path() |
Previous Message | Tom Lane | 2004-08-18 17:17:19 | Re: Compiling libpq with VC6 |