Skip site navigation (1) Skip section navigation (2)

Re: ECPG CVS version problems

From: Philip Yarra <philip(at)utiba(dot)com>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ECPG CVS version problems
Date: 2003-04-22 03:45:40
Message-ID: 200304221345.40455.philip@utiba.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfacespgsql-patches
On Fri, 11 Apr 2003 03:20, Michael Meskes wrote:
> Can you take ecpg from CVS? I will not be able to answer email for about
> a two week long vacation trip, but everything I've done so far is in
> CVS.

Hi Michael, I grabbed everything from CVS and tried building, but ran into a 
few problems.

Bison 1.35 and 1.50 both have bugs that prevent successful compilation, so I 
moved to 1.85. This appears to work okay. Is there some way during configure 
to check for broken bison versions and complain loudly?

Once I compiled the source tree, and got it installed, I ran into further 
problems as soon as I tried to link against the ecpg libs:

$ gcc -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg test.c
/usr/local/pgsql/lib/libecpg.so: undefined reference to 
`PGTYPESnumeric_from_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to `PGTYPESdate_to_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to 
`PGTYPESinterval_from_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to 
`PGTYPESinterval_to_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to 
`PGTYPEStimestamp_from_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to `PGTYPESdate_from_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to `PGTYPESnumeric_copy'
/usr/local/pgsql/lib/libecpg.so: undefined reference to `PGTYPESinterval_copy'
/usr/local/pgsql/lib/libecpg.so: undefined reference to 
`PGTYPEStimestamp_to_asc'
/usr/local/pgsql/lib/libecpg.so: undefined reference to 
`PGTYPESnumeric_to_asc'
collect2: ld returned 1 exit status

Is there something obvious I am doing wrong here? Is there something borked in 
my build environment? I've attached my test.pgc.

Regards, Philip Yarra.

Attachment: test.pgc
Description: text/x-csrc (606 bytes)

In response to

Responses

pgsql-hackers by date

Next:From: Philip YarraDate: 2003-04-22 04:02:16
Subject: Re: ECPG CVS version problems
Previous:From: Christopher Kings-LynneDate: 2003-04-22 03:09:55
Subject: Re: Bizarre 7.3.2 bug

pgsql-patches by date

Next:From: Philip YarraDate: 2003-04-22 04:02:16
Subject: Re: ECPG CVS version problems
Previous:From: Alvaro HerreraDate: 2003-04-22 03:42:13
Subject: Re: Nested transactions, 1st try

pgsql-interfaces by date

Next:From: Philip YarraDate: 2003-04-22 04:02:16
Subject: Re: ECPG CVS version problems
Previous:From: Chris GamacheDate: 2003-04-22 02:30:37
Subject: Re: DBD::Pg large processor load.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group