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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces pgsql-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 Content-Type Size
test.pgc text/x-csrc 606 bytes

In response to

Responses

Browse pgsql-hackers by date

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

Browse pgsql-interfaces by date

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

Browse pgsql-patches by date

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