Thread: CVS head doesn't compile

CVS head doesn't compile

From
Alvaro Herrera
Date:
I'm seeing this on CVS head:

make[4]: Entering directory
`/home/alvherre/CVS/pgsql/src/backend/access/common'
distcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations
-I../../../../src/include   -c -o printtup.o printtup.c -MMD
In file included from ../../../../src/include/libpq/ip.h:8,                from
../../../../src/include/libpq/libpq.h:22,               from printtup.c:20: 
../../../../src/include/getaddrinfo.h:10: redefinition of `struct addrinfo'
make[4]: *** [printtup.o] Error 1
make[4]: Leaving directory
`/home/alvherre/CVS/pgsql/src/backend/access/common'
make[3]: *** [common-recursive] Error 2
make[3]: Leaving directory `/home/alvherre/CVS/pgsql/src/backend/access'
make[2]: *** [access-recursive] Error 2
make[2]: Leaving directory `/home/alvherre/CVS/pgsql/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/alvherre/CVS/pgsql/src'
make: *** [all] Error 2


Apparently this is a flaw in configure, because it detects getaddrinfo
but fails to define HAVE_GETADDRINFO in pg_config.h, and it works if I
define the symbol manually.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La grandeza es una experiencia transitoria.  Nunca es consistente.
Depende en gran parte de la imaginación humana creadora de mitos"
(Irulan)



Re: CVS head doesn't compile

From
Peter Eisentraut
Date:
Alvaro Herrera writes:

> Apparently this is a flaw in configure, because it detects getaddrinfo
> but fails to define HAVE_GETADDRINFO in pg_config.h, and it works if I
> define the symbol manually.

Works here and looks right in the CVS web view as well.  Are you sure you
have cvs-updated and configured properly?

-- 
Peter Eisentraut   peter_e@gmx.net



Re: CVS head doesn't compile

From
Alvaro Herrera
Date:
On Sun, Mar 30, 2003 at 03:40:34PM +0200, Peter Eisentraut wrote:
> Alvaro Herrera writes:
> 
> > Apparently this is a flaw in configure, because it detects getaddrinfo
> > but fails to define HAVE_GETADDRINFO in pg_config.h, and it works if I
> > define the symbol manually.
> 
> Works here and looks right in the CVS web view as well.  Are you sure you
> have cvs-updated and configured properly?

Yes, I had it updated and distcleaned, etc.  However I updated again
now, and works well.  Maybe anoncvs got out of sync.  I remember this
has happenned to people before.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La Primavera ha venido. Nadie sabe como ha sido" (A. Machado)