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

MacPorts noreply at macports.org
Fri May 5 10:21:57 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):

 Adding `stdbool.h` to the `pg_collation.h` fixes the error, but then the
 build fails a bit further:

 {{{
 :info:build pg_parameter_acl.c:37:1: error: conflicting types for
 'ParameterAclLookup'; have 'Oid(const char *, _Bool)' {aka 'unsigned
 int(const char *, _Bool)'}
 :info:build    37 | ParameterAclLookup(const char *parameter, bool
 missing_ok)
 :info:build       | ^~~~~~~~~~~~~~~~~~
 :info:build In file included from pg_parameter_acl.c:22:
 :info:build ../../../src/include/catalog/pg_parameter_acl.h:57:17: note:
 previous declaration of 'ParameterAclLookup' with type 'Oid(const char *,
 bool)' {aka 'unsigned int(const char *, unsigned char)'}
 :info:build    57 | extern Oid      ParameterAclLookup(const char
 *parameter, bool missing_ok);
 :info:build       |                 ^~~~~~~~~~~~~~~~~~
 :info:build gnumake[3]: *** [pg_parameter_acl.o] Error 1
 :info:build gnumake[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_databases_postgresql15/postgresql15/work/postgresql-15.1/src/backend/catalog'
 :info:build gnumake[2]: *** [catalog-recursive] Error 2
 :info:build gnumake[2]: *** Waiting for unfinished jobs....

 :info:build In file included from
 ../../../src/include/storage/bufmgr.h:22,
 :info:build                  from tablecmds.c:87:
 :info:build ../../../src/include/utils/snapmgr.h:165:13: error:
 conflicting types for 'XidInMVCCSnapshot'; have '_Bool(TransactionId,
 struct SnapshotData *)' {aka '_Bool(unsigned int,  struct SnapshotData
 *)'}
 :info:build   165 | extern bool XidInMVCCSnapshot(TransactionId xid,
 Snapshot snapshot);
 :info:build       |             ^~~~~~~~~~~~~~~~~
 :info:build In file included from tablecmds.c:19:
 :info:build ../../../src/include/access/heapam.h:216:13: note: previous
 declaration of 'XidInMVCCSnapshot' with type 'bool(TransactionId,  struct
 SnapshotData *)' {aka 'unsigned char(unsigned int,  struct SnapshotData
 *)'}
 :info:build   216 | extern bool XidInMVCCSnapshot(TransactionId xid,
 Snapshot snapshot);
 :info:build       |             ^~~~~~~~~~~~~~~~~
 :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 -Wno-incompatible-
 pointer-types -arch ppc -I../../../src/include  -I/opt/local/include
 -I/opt/local/include/libxml2  -I/opt/local/include  -c -o tablespace.o
 tablespace.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 -Wno-incompatible-
 pointer-types -arch ppc -I../../../src/include  -I/opt/local/include
 -I/opt/local/include/libxml2  -I/opt/local/include  -c -o trigger.o
 trigger.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 -Wno-incompatible-
 pointer-types -arch ppc -I../../../src/include  -I/opt/local/include
 -I/opt/local/include/libxml2  -I/opt/local/include  -c -o tsearchcmds.o
 tsearchcmds.c
 :info:build gnumake[3]: *** [tablecmds.o] Error 1
 }}}

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


More information about the macports-tickets mailing list