I'm getting an ecpg related compile failure on cvs tip:


gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic 
-I../../../../src/interfaces/ecpg/include 
-I../../../../src/include/utils -I../../../../src/include  -g  -c -o 
timestamp.o timestamp.c -MMD
timestamp.c: In function `dttofmtasc_replace':
timestamp.c:549: union has no member named `replace_int64'
make[4]: *** [timestamp.o] Error 1
make[4]: Leaving directory `/opt/src/pgsql/src/interfaces/ecpg/pgtypeslib'


Joe


Fri, 01 Aug 2003 10:11:44 -0700
Joe Conway <mail@joeconway.com>
cvs head compile failure
Joe Conway wrote:
> I'm getting an ecpg related compile failure on cvs tip:
> 
> gcc -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -fpic 
> -I../../../../src/interfaces/ecpg/include 
> -I../../../../src/include/utils -I../../../../src/include  -g  -c -o 
> timestamp.o timestamp.c -MMD
> timestamp.c: In function `dttofmtasc_replace':
> timestamp.c:549: union has no member named `replace_int64'
> make[4]: *** [timestamp.o] Error 1
> make[4]: Leaving directory `/opt/src/pgsql/src/interfaces/ecpg/pgtypeslib'
> 

Looks like a simple matter of replacing "replace_int64" with "int64_val" 
at line 549 in src/interfaces/ecpg/pgtypeslib/timestamp.c

Joe
Fri, 01 Aug 2003 10:22:59 -0700
Joe Conway <mail@joeconway.com>
Re: cvs head compile failure
On Fri, Aug 01, 2003 at 10:22:59AM -0700, Joe Conway wrote:
> Looks like a simple matter of replacing "replace_int64" with "int64_val" 
> at line 549 in src/interfaces/ecpg/pgtypeslib/timestamp.c

Yes, it is. Thanks. I didn't have HAVE_INT64_TIMESTAMP defined.

In fact there's another one in common.c with an incorrect #define.

It's fixed now.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

Fri, 1 Aug 2003 20:20:31 +0200
Michael Meskes <meskes@postgresql.org>
Re: cvs head compile failure