From: | draco(at)marino(dot)st |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #7588: pgsql 9.1 incompatible with zlib 1.27 |
Date: | 2012-10-07 12:08:12 |
Message-ID: | E1TKpeW-0001Gg-Dg@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 7588
Logged by: John Marino
Email address: draco(at)marino(dot)st
PostgreSQL version: 9.1.6
Operating system: DragonFlyBSD 3.1
Description:
DragonFly has zlib 1.27 as a base library. I noticed several zlib warnings
when pgsql 9.1.6 was being built with gcc47. The various utilities in
src/bin are using the zlib.h header incorrectly. I tried fixing it in
pkgsrc, but there were going to be a lot of patches and in on case the FH
type had to be FILE. I am attaching a partial log and a few of the patches
I was writing (not all correct but one can see what I was going for). There
are several files that need to be updated to properly support zlib 1.27
(which won't affect zlib 1.25 and below btw).
John
=====================================
$NetBSD$
Fix zlib bug which is revealed with zlib version 1.26+
--- src/bin/pg_basebackup/pg_basebackup.c.orig 2012-09-19 21:50:31.000000000
+0000
+++ src/bin/pg_basebackup/pg_basebackup.c
@@ -68,7 +68,7 @@ static void BaseBackup(void);
#ifdef HAVE_LIBZ
static const char *
-get_gz_error(gzFile *gzf)
+get_gz_error(gzFile gzf)
{
int errnum;
const char *errmsg;
@@ -276,7 +276,7 @@ ReceiveTarFile(PGconn *conn, PGresult *r
FILE *tarfile = NULL;
#ifdef HAVE_LIBZ
- gzFile *ztarfile = NULL;
+ gzFile ztarfile = NULL;
#endif
if (PQgetisnull(res, rownum, 0))
$NetBSD$
--- src/bin/pg_dump/pg_backup_archiver.h.orig 2012-09-19 21:50:31.000000000
+0000
+++ src/bin/pg_dump/pg_backup_archiver.h
@@ -248,7 +248,11 @@ typedef struct _archiveHandle
int blobCount; /* # of blobs restored */
char *fSpec; /* Archive File Spec */
+#ifdef HAVE_LIBZ
+ gzFile FH;
+#else
FILE *FH; /* General purpose file handle */
+#endif
void *OF;
int gzOut; /* Output file */
$NetBSD$
Fix zlib bug which is revealed with zlib version 1.26+
--- src/bin/pg_dump/pg_backup_files.c.orig 2012-09-19 21:50:31.000000000
+0000
+++ src/bin/pg_dump/pg_backup_files.c
@@ -58,7 +58,7 @@ typedef struct
typedef struct
{
#ifdef HAVE_LIBZ
- gzFile *FH;
+ gzFile FH;
#else
FILE *FH;
#endif
$NetBSD$
Fix zlib bug which is revealed with zlib version 1.26+
--- src/bin/pg_dump/pg_backup_tar.c.orig 2012-09-19 21:50:31.000000000
+0000
+++ src/bin/pg_dump/pg_backup_tar.c
@@ -58,7 +58,7 @@ static void _EndBlobs(ArchiveHandle *AH,
#ifdef HAVE_LIBZ
/* typedef gzFile ThingFile; */
-typedef FILE ThingFile;
+gzFile ThingFile;
#else
typedef FILE ThingFile;
#endif
gmake[1]: Entering directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/bin/pg_basebackup'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
vacuumdb.o vacuumdb.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_basebackup.o pg_basebackup.c
rm -f pg_crc.c && ln -s ../../../src/backend/utils/hash/pg_crc.c .
/usr/pkg/bin/gmake -C ../../../src/port all
gmake[2]: Entering directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/port'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o help.o help.c
/usr/pkg/bin/gmake -C ../backend submake-errcodes
gmake[3]: Entering directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/backend'
gmake[3]: Nothing to be done for `submake-errcodes'.
gmake[3]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/backend'
gmake[2]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/port'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o pg_crc.o pg_crc.c
pg_basebackup.c: In function 'get_gz_error':
pg_basebackup.c:76:2: warning: passing argument 1 of 'gzerror' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1519:30: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_basebackup.c: In function 'ReceiveTarFile':
pg_basebackup.c:292:14: warning: assignment from incompatible pointer type
[enabled by default]
pg_basebackup.c:293:5: warning: passing argument 1 of 'gzsetparams' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1287:21: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_basebackup.c:310:14: warning: assignment from incompatible pointer type
[enabled by default]
pg_basebackup.c:311:5: warning: passing argument 1 of 'gzsetparams' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1287:21: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_basebackup.c:334:13: warning: assignment from incompatible pointer type
[enabled by default]
pg_basebackup.c:335:4: warning: passing argument 1 of 'gzsetparams' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1287:21: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_basebackup.c:409:5: warning: passing argument 1 of 'gzwrite' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1324:21: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_basebackup.c:430:5: warning: passing argument 1 of 'gzclose' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1494:24: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_basebackup.c:463:4: warning: passing argument 1 of 'gzwrite' from
incompatible pointer type [enabled by default]
In file included from pg_basebackup.c:22:0:
/usr/include/zlib.h:1324:21: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
reindexdb.o reindexdb.c
/usr/pkg/bin/gmake -C ../../../src/interfaces/libpq all
gmake[2]: Entering directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/interfaces/libpq'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/interfaces/libpq'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_archiver.o pg_backup_archiver.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard pg_resetxlog.o
pg_crc.o -L../../../src/port -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib -Wl,--as-needed -Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl
-lcrypto -lz -lreadline -lcrypt -lm -o pg_resetxlog
gmake[1]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/bin/pg_resetxlog'
/usr/pkg/bin/gmake -C ../../../src/port all
gmake[2]: Entering directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/port'
/usr/pkg/bin/gmake -C ../backend submake-errcodes
gmake[3]: Entering directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/backend'
gmake[3]: Nothing to be done for `submake-errcodes'.
gmake[3]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/backend'
gmake[2]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/port'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -DFRONTEND
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
encnames.o encnames.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
dumputils.o dumputils.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o input.o input.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
kwlookup.o kwlookup.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o stringutils.o stringutils.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
keywords.o keywords.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard pg_basebackup.o
-L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq
-L../../../src/port -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib -Wl,--as-needed -Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl
-lcrypto -lz -lreadline -lcrypt -lm -o pg_basebackup
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -DFRONTEND
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pqsignal.o pqsignal.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_db.o pg_backup_db.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o mainloop.o mainloop.c
gmake[1]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/bin/pg_basebackup'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o print.o
print.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard initdb.o encnames.o
pqsignal.o -L../../../src/port -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib -Wl,--as-needed -Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl
-lcrypto -lz -lreadline -lcrypt -lm -o initdb
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/bin/pg_dump -I../../../src/bin/psql
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
mbprint.o mbprint.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o copy.o copy.c
In file included from mainloop.c:425:0:
psqlscan.l: In function 'psql_scan_slash_option':
psqlscan.l:1563:9: warning: the comparison will always evaluate as 'false'
for the address of 'output' will never be NULL [-Waddress]
gmake[1]: Leaving directory
`/mech/construction/databases/postgresql91-client/work/postgresql-9.1.6/src/bin/initdb'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard vacuumdb.o common.o
-L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq
-L../../../src/port -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib -Wl,--as-needed -Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl
-lcrypto -lz -lreadline -lcrypt -lm -o vacuumdb
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_custom.o pg_backup_custom.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o startup.o startup.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard reindexdb.o
common.o dumputils.o kwlookup.o keywords.o -L../../../src/port -lpgport
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,--as-needed
-Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl -lcrypto -lz -lreadline -lcrypt
-lm -o reindexdb
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_files.o pg_backup_files.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o prompt.o prompt.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard createdb.o common.o
dumputils.o kwlookup.o keywords.o -L../../../src/port -lpgport
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,--as-needed
-Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl -lcrypto -lz -lreadline -lcrypt
-lm -o createdb
pg_backup_files.c: In function '_StartData':
pg_backup_files.c:256:11: warning: assignment from incompatible pointer type
[enabled by default]
pg_backup_files.c: In function '_WriteData':
pg_backup_files.c:271:2: warning: passing argument 1 of 'gzwrite' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_files.c:28:
/usr/include/zlib.h:1324:21: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_backup_files.c: In function '_EndData':
pg_backup_files.c:282:2: warning: passing argument 1 of 'gzclose' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_files.c:28:
/usr/include/zlib.h:1494:24: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
pg_backup_files.c: In function '_PrintFileData':
pg_backup_files.c:301:9: warning: assignment from incompatible pointer type
[enabled by default]
pg_backup_files.c:310:2: warning: passing argument 1 of 'gzread' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_files.c:28:
/usr/include/zlib.h:1296:21: note: expected 'gzFile' but argument is of type
'struct FILE *'
pg_backup_files.c:316:2: warning: passing argument 1 of 'gzclose' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_files.c:28:
/usr/include/zlib.h:1494:24: note: expected 'gzFile' but argument is of type
'struct FILE *'
pg_backup_files.c: In function '_StartBlob':
pg_backup_files.c:523:11: warning: assignment from incompatible pointer type
[enabled by default]
pg_backup_files.c: In function '_EndBlob':
pg_backup_files.c:543:2: warning: passing argument 1 of 'gzclose' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_files.c:28:
/usr/include/zlib.h:1494:24: note: expected 'gzFile' but argument is of type
'struct gzFile_s **'
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard createuser.o
common.o dumputils.o kwlookup.o keywords.o -L../../../src/port -lpgport
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,--as-needed
-Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl -lcrypto -lz -lreadline -lcrypt
-lm -o createuser
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard dropdb.o common.o
dumputils.o kwlookup.o keywords.o -L../../../src/port -lpgport
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,--as-needed
-Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl -lcrypto -lz -lreadline -lcrypt
-lm -o dropdb
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o variables.o variables.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard dropuser.o common.o
dumputils.o kwlookup.o keywords.o -L../../../src/port -lpgport
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,--as-needed
-Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl -lcrypto -lz -lreadline -lcrypt
-lm -o dropuser
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o large_obj.o large_obj.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_null.o pg_backup_null.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard clusterdb.o
common.o dumputils.o kwlookup.o keywords.o -L../../../src/port -lpgport
-L../../../src/interfaces/libpq -lpq -L../../../src/port -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,--as-needed
-Wl,-R'/usr/pkg/lib' -lpgport -lintl -lssl -lcrypto -lz -lreadline -lcrypt
-lm -o clusterdb
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o print.o print.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_tar.o pg_backup_tar.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -I. -I.
-I../../../src/interfaces/libpq -I../../../src/bin/pg_dump
-I../../../src/include -I/usr/pkg/include/gettext -I/usr/include
-I/usr/pkg/include -c -o describe.o describe.c
cc -O2 -g -Wno-unused-but-set-variable -I/usr/pkg/include/gettext
-I/usr/include -I/usr/pkg/include -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-I../../../src/interfaces/libpq -I../../../src/include
-I/usr/pkg/include/gettext -I/usr/include -I/usr/pkg/include -c -o
pg_backup_directory.o pg_backup_directory.c
pg_backup_tar.c: In function 'tarOpen':
pg_backup_tar.c:423:12: warning: assignment from incompatible pointer type
[enabled by default]
pg_backup_tar.c: In function 'tarClose':
pg_backup_tar.c:451:3: warning: passing argument 1 of 'gzclose' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_tar.c:29:
/usr/include/zlib.h:1494:24: note: expected 'gzFile' but argument is of type
'struct ThingFile *'
pg_backup_tar.c: In function '_tarReadRaw':
pg_backup_tar.c:547:5: warning: passing argument 1 of 'gzread' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_tar.c:29:
/usr/include/zlib.h:1296:21: note: expected 'gzFile' but argument is of type
'struct ThingFile *'
pg_backup_tar.c: In function 'tarWrite':
pg_backup_tar.c:584:3: warning: passing argument 1 of 'gzwrite' from
incompatible pointer type [enabled by default]
In file included from pg_backup_archiver.h:44:0,
from pg_backup_tar.c:29:
/usr/include/zlib.h:1324:21: note: expected 'gzFile' but argument is of type
'struct ThingFile *'
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-10-07 16:15:44 | Re: BUG #7587: createdb allows invalid DB names |
Previous Message | foss | 2012-10-06 14:23:23 | BUG #7587: createdb allows invalid DB names |