#67203 closed defect (fixed)

postgresql14 broken on 10.6: error: conflicting types for ‘CollationCreate’ (both with gcc-4.2 and gcc12)

Reported by: barracuda156 Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: powerpc, leopard, snowleopard, rosetta Cc:
Port: postgresql14

Description

:info:build pg_collation.c:55: error: conflicting types for ‘CollationCreate’
:info:build ../../../src/include/catalog/pg_collation.h:82: error: previous declaration of ‘CollationCreate’ was here
:info:build pg_collation.c: In function ‘CollationCreate’:
:info:build pg_collation.c:196: warning: passing argument 3 of ‘heap_form_tuple’ from incompatible pointer type
:info:build gnumake[3]: *** [pg_collation.o] Error 1
:info:build gnumake[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgresql14/postgresql14/work/postgresql-14.7/src/backend/catalog'
:info:build gnumake[2]: *** [catalog-recursive] Error 2

Same failure on PPC natively and Rosetta. Log is from 10.6.8 Rosetta.

Attachments (1)

postgresql14_log_10.6.8.txt (353.2 KB) - added by barracuda156 19 months ago.

Download all attachments as: .zip

Change History (5)

Changed 19 months ago by barracuda156

Attachment: postgresql14_log_10.6.8.txt added

comment:1 Changed 19 months ago by barracuda156

It also fails with gcc12:

:info:build /opt/local/bin/gcc-mp-12 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -pipe -Os -arch ppc -I../../../src/include  -I/opt/local/include -I/opt/local/include/libxml2  -I/opt/local/include  -c -o pg_collation.o pg_collation.c
:info:build pg_collation.c:46:1: error: conflicting types for 'CollationCreate'; have 'Oid(const char *, Oid,  Oid,  char,  _Bool,  int32,  const char *, const char *, const char *, _Bool,  _Bool)' {aka 'unsigned int(const char *, unsigned int,  unsigned int,  char,  _Bool,  int,  const char *, const char *, const char *, _Bool,  _Bool)'}
:info:build    46 | CollationCreate(const char *collname, Oid collnamespace,
:info:build       | ^~~~~~~~~~~~~~~
:info:build In file included from pg_collation.c:25:
:info:build ../../../src/include/catalog/pg_collation.h:74:17: note: previous declaration of 'CollationCreate' with type 'Oid(const char *, Oid,  Oid,  char,  bool,  int32,  const char *, const char *, const char *, bool,  bool)' {aka 'unsigned int(const char *, unsigned int,  unsigned int,  char,  unsigned char,  int,  const char *, const char *, const char *, unsigned char,  unsigned char)'}
:info:build    74 | extern Oid      CollationCreate(const char *collname, Oid collnamespace,
:info:build       |                 ^~~~~~~~~~~~~~~
:info:build pg_collation.c: In function 'CollationCreate':
:info:build pg_collation.c:196:48: warning: passing argument 3 of 'heap_form_tuple' from incompatible pointer type [-Wincompatible-pointer-types]
:info:build   196 |         tup = heap_form_tuple(tupDesc, values, nulls);
:info:build       |                                                ^~~~~
:info:build       |                                                |
:info:build       |                                                _Bool *
:info:build In file included from pg_collation.c:18:
:info:build ../../../src/include/access/htup_details.h:793:87: note: expected 'bool *' {aka 'unsigned char *'} but argument is of type '_Bool *'
:info:build   793 |                                                                  Datum *values, bool *isnull);
:info:build       |                                                                                 ~~~~~~^~~~~~
:info:build gnumake[3]: *** [pg_collation.o] Error 1
:info:build gnumake[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgresql14/postgresql14/work/postgresql-14.7/src/backend/catalog'
:info:build gnumake[2]: *** [catalog-recursive] Error 2

comment:2 Changed 19 months ago by barracuda156

Summary: postgresql14 broken on 10.6: error: conflicting types for ‘CollationCreate’postgresql14 broken on 10.6: error: conflicting types for ‘CollationCreate’ (both with gcc-4.2 and gcc12)

comment:4 Changed 14 months ago by dgilman (David Gilman)

Resolution: fixed
Status: assignedclosed

In bfbd57e500d63729bd89d599cfc23b3232abf387/macports-ports (master):

postgresql16: new port

Closes: #40501
Closes: #37929
Closes: #36511
Closes: #36128
Closes: #33145
Closes: #66529
Closes: #67638
Closes: #29752
Closes: #66689
Closes: #67203
Closes: #67713
Closes: #68119
Closes: #67339

Note: See TracTickets for help on using tickets.