Re: [HACKERS] DEC OSF1 Compilation problems

From: Dmitry Samersoff <dms(at)wplus(dot)net>
To: maillist(at)candle(dot)pha(dot)pa(dot)us (Bruce Momjian)
Cc: dms(at)wplus(dot)net, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] DEC OSF1 Compilation problems
Date: 1999-02-04 09:25:09
Message-ID: 199902040925.MAA16035@himera.wplus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > 3. src/interfaces/libpq and all dependent sources (like perl5 interface)
> > didn't compile because native cc don't support tag const
> > fixed by
> > #define const
> > in apropriate places
>
> Hard to figure they don't support const.

Sorry, it's my mistake, better say - problem around supporting const
(on Solaris it looks to be the same, but I'm not sure)

This is compiler message

----------------------------------------
cc: Error: fe-connect.c, line 173: In this declaration,
parameter 1 has a different type than specified in an earlier
declaration of this function.
PQconnectdb(const char *conninfo)
^
cc: Error: fe-connect.c, line 173: In this declaration,
the type of "PQconnectdb" is not compatible with the type of a
previous declaration of "PQconnectdb" at line number 153 in file libpq-fe.h.
----------------------------------------------------------------------------

Real declaration

(fe-connect.c:173) :
PGconn * PQconnectdb(const char *conninfo)

(libpq-fe.h:153):
extern PGconn *PQconnectdb(const char *conninfo);

--
Dmitry Samersoff
DM\S, dms(at)wplus(dot)net, AIM: Samersoff
http://devnull.wplus.net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pedro J. Lobo 1999-02-04 10:00:50 Re: [HACKERS] DEC OSF1 Compilation problems
Previous Message The Hermit Hacker 1999-02-04 04:58:09 Re: [HACKERS] ecpg patch