Thread: [ psqlodbc-Bugs-1000422 ] Couldn't compile 08.01.0101 with Unix PG 7.4.5 development environment

Bugs item #1000422, was opened at 2005-11-17 15:57
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000422&group_id=1000125

Category: None
Group: None
Status: Closed
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Couldn't compile 08.01.0101 with Unix PG 7.4.5 development environment

Initial Comment:
When I try to compile 08.01.0101 under Linux RH9 with PG 7.4.5 development, I receive next error messages:

connection.c: In function `CC_send_cancel_request':
connection.c:1626: `PGcancel' undeclared (first use in this function)
...

Thank you.
Eugene Fokin.


----------------------------------------------------------------------

>Comment By: Ludek Finstrle (luf)
Date: 2005-12-01 19:23

Message:
Or if you need compile new driver againist older PgSQL try replace CC_send_cancel_request function (in connection.c) by
thisone: 

int
CC_send_cancel_request(const ConnectionClass *conn)
{
        if (PQrequestCancel(conn) == 1)
                return TRUE;
        else
                return FALSE;
}

----------------------------------------------------------------------

Comment By: Dave Page  (dpage)
Date: 2005-11-19 22:23

Message:
Yes, it would appear that we have used features only in 8.0 or above. You will need to build and install 8/8.1 to
compilepsqlODBC I'm afraid. It should work just fine with 7.4 though. 

Don't forget to install it somewhere other than whereever your current version lives!!

----------------------------------------------------------------------

You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000422&group_id=1000125