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

MacPorts noreply at macports.org
Fri May 5 09:33:20 UTC 2023


#67365: postgresql15 fails to build on 10.6.8 when building with gcc-4.2
(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):

 Replying to [comment:2 kencu]:
 > builds fine x86_64 and i386 using MacPorts default clang version and
 libc++, however, so this is likely to be a specific failure due to the
 older gcc-4.2 compiler being used.
 >
 > https://ports.macports.org/port/postgresql15/details/

 Still fails, unfortunately:
 {{{
 :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 /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 ginxlog.o
 ginxlog.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 *, 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)'}
 :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: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)'}
 :info:build    87 | extern Oid      CollationCreate(const char *collname,
 Oid collnamespace,
 :info:build       |                 ^~~~~~~~~~~~~~~
 :info:build pg_collation.c: In function 'CollationCreate':
 :info:build pg_collation.c:202:48: warning: passing argument 3 of
 'heap_form_tuple' from incompatible pointer type [-Wincompatible-pointer-
 types]
 :info:build   202 |         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:711:87: note:
 expected 'bool *' {aka 'unsigned char *'} but argument is of type '_Bool
 *'
 :info:build   711 |
 Datum *values, bool *isnull);
 :info:build       |
 ~~~~~~^~~~~~
 :info:build gnumake[3]: *** [pg_collation.o] Error 1
 }}}

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


More information about the macports-tickets mailing list