Re: [MacPorts] #67365: postgresql15 fails to build on 10.6.8 (rosetta/ppc): error: conflicting types for ‘DefineCollation’

MacPorts noreply at macports.org
Mon May 8 12:51:50 UTC 2023


#67365: postgresql15 fails to build on 10.6.8 (rosetta/ppc): error: conflicting
types for ‘DefineCollation’
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:  snowleopard, powerpc, rosetta
      Port:  postgresql15  |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Removing -Werror flags from configure does not help:
 {{{
 /opt/local/bin/gcc-mp-12 -Wall -Wmissing-prototypes -Wpointer-arith
 -Wdeclaration-after-statement -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
 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 *, const char *, _Bool,  _Bool)' {aka 'unsigned
 int(const char *, unsigned int,  unsigned int,  char,  _Bool,  int,  const
 char *, const char *, const char *, const char *, _Bool,  _Bool)'}
    46 | CollationCreate(const char *collname, Oid collnamespace,
       | ^~~~~~~~~~~~~~~
 In file included from pg_collation.c:25:
 ../../../src/include/catalog/pg_collation.h:87:17: note: previous
 declaration of 'CollationCreate' with type 'Oid(const char *, Oid,  Oid,
 char,  bool,  int32,  const char *, 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
 *, const char *, unsigned char,  unsigned char)'}
    87 | extern Oid      CollationCreate(const char *collname, Oid
 collnamespace,
       |                 ^~~~~~~~~~~~~~~
 pg_collation.c: In function 'CollationCreate':
 pg_collation.c:202:48: warning: passing argument 3 of 'heap_form_tuple'
 from incompatible pointer type [-Wincompatible-pointer-types]
   202 |         tup = heap_form_tuple(tupDesc, values, nulls);
       |                                                ^~~~~
       |                                                |
       |                                                _Bool *
 In file included from pg_collation.c:18:
 ../../../src/include/access/htup_details.h:711:87: note: expected 'bool *'
 {aka 'unsigned char *'} but argument is of type '_Bool *'
   711 |
 Datum *values, bool *isnull);
       |
 ~~~~~~^~~~~~
 gnumake[3]: *** [pg_collation.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67365#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list