[MacPorts] #71792: postgresql11 @11.14_6 does not build on PPC Leopard, Mac OS X 10.5.8, because of conflicting types

MacPorts noreply at macports.org
Wed Jan 8 21:26:27 UTC 2025


#71792: postgresql11 @11.14_6 does not build on PPC Leopard, Mac OS X 10.5.8,
because of conflicting types
-------------------------+--------------------------
 Reporter:  ballapete    |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.10.5
 Keywords:  leopard ppc  |       Port:  postgresql11
-------------------------+--------------------------
 {{{
 /usr/bin/gcc-4.2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-
 after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-
 security -fno-strict-aliasing -fwrapv -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:54: error: conflicting types for ‘CollationCreate’
 ../../../src/include/catalog/pg_collation.h:67: error: previous
 declaration of ‘CollationCreate’ was here
 pg_collation.c: In function ‘CollationCreate’:
 pg_collation.c:170: warning: passing argument 3 of ‘heap_form_tuple’ from
 incompatible pointer type
 gnumake[3]: *** [pg_collation.o] Error 1
 gnumake[3]: Leaving directory
 `/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_postgresql11/postgresql11/work/postgresql-11.14/src/backend/catalog'
 }}}

 `../../../src/include/catalog/pg_collation.h` has:

 {{{
 extern Oid CollationCreate(const char *collname, Oid collnamespace,
                                 Oid collowner,
                                 char collprovider,
                                 int32 collencoding,
                                 const char *collcollate, const char
 *collctype,
                                 const char *collversion,
                                 bool if_not_exists,
                                 bool quiet);
 }}}

 `pg_collation.c` contains an own (internal) function:

 {{{
 Oid
 CollationCreate(const char *collname, Oid collnamespace,
                                 Oid collowner,
                                 char collprovider,
                                 int32 collencoding,
                                 const char *collcollate, const char
 *collctype,
                                 const char *collversion,
                                 bool if_not_exists,
                                 bool quiet)
 }}}

 The C header file starts with

 {{{
 #ifndef PG_COLLATION_H
 #define PG_COLLATION_H
 }}}

 and so `declares extern Oid CollationCreate()`…

-- 
Ticket URL: <https://trac.macports.org/ticket/71792>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list