Build problem and patch with Sun cc

From: Steve Nicolai <snicolai(at)mac(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Build problem and patch with Sun cc
Date: 2001-03-24 22:21:40
Message-ID: B6E27A13.4456%snicolai@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I did a cvs pull of the head on 3/24/01 and used Sun's cc
compiler 5.0 (with all patches as of 2/1/01) to build.

I ran into a problem building pg_backup_null.c rev 1.5.
The following patch lets me build:

Index: src/bin/pg_dump/pg_backup_null.c
===================================================================
RCS file:
/home/projects/pgsql/cvsroot/pgsql/src/bin/pg_dump/pg_backup_null.c,v
retrieving revision 1.5
diff -u -r1.5 pg_backup_null.c
--- src/bin/pg_dump/pg_backup_null.c 2001/03/22 04:00:13 1.5
+++ src/bin/pg_dump/pg_backup_null.c 2001/03/24 22:00:07
@@ -98,7 +98,7 @@
static void
_PrintTocData(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt)
{
- if (*te->dataDumper)
+ if (te->dataDumper)
{
AH->currToc = te;
(*te->dataDumper) ((Archive *) AH, te->oid, te->dataDumperArg);

Sun's cc complains that *te->dataDumper is not a scalar type.

Steve Nicolai

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2001-03-24 22:44:51 Onject Database Survey ... Help needed ...
Previous Message Ian Lance Taylor 2001-03-24 22:05:05 Re: AW: AW: Re: RELEASE STOPPER? nonportable int64 constant s in pg_crc.c