[MacPorts] #70843: rexx port build failure: -Wincompatible-function-pointer-types

MacPorts noreply at macports.org
Sat Sep 21 04:06:54 UTC 2024


#70843: rexx port build failure: -Wincompatible-function-pointer-types
-----------------------+------------------------
  Reporter:  kwolcott  |      Owner:  yoav.nir@…
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  sequoia
      Port:  rexx      |
-----------------------+------------------------
Changes (by ryandesign):

 * keywords:   => sequoia


Old description:

> /usr/bin/clang -c -DNDEBUG -pipe -Os
> -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk
> -arch arm64 -g -DREGINA_SHARE_DIRECTORY=\"/opt/local/share/Regina-REXX\"
> -funsigned-char -DREGINA_VERSION_DATE=\""5 Apr 2015"\"
> -DREGINA_VERSION_MAJOR=\"3\" -DREGINA_VERSION_MINOR=\"9\"
> -DREGINA_VERSION_RELEASE=\"1\" -DREGINA_VERSION_SUPP=\"\"
> -DREGINA_BITS=64 -DHAVE_CONFIG_H    -I. -I. -I./contrib    -o regutil.o
> -DDYNAMIC -fno-common ./regutil/regutil.c
> ./regutil/regutil.c:194:51: error: incompatible function pointer types
> passing 'ULONG (*)(PUCHAR, ULONG, PRXSTRING, PSZ, PRXSTRING)' (aka
> 'unsigned long (*)(unsigned char *, unsigned long, struct RXSTRING_type
> *, char *, struct RXSTRING_type *)') to parameter of type
> 'RexxFunctionHandler *' (aka 'unsigned long (*)(const char *, unsigned
> long, struct RXSTRING_type *, const char *, struct RXSTRING_type *)')
> [-Wincompatible-function-pointer-types]
>   194 |         RexxRegisterFunctionExe(funclist[i].name,
> funclist[i].funcptr);
>       |
> ^~~~~~~~~~~~~~~~~~~
> ./rexxsaa.h:646:38: note: passing argument to parameter 'EntryPoint' here
>   646 |                 RexxFunctionHandler *EntryPoint )
>       |                                      ^
> 1 error generated.
> make: *** [regutil.o] Error 1
>
> MacOS 15.0 arm64

New description:

 {{{
 /usr/bin/clang -c -DNDEBUG -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.sdk
 -arch arm64 -g -DREGINA_SHARE_DIRECTORY=\"/opt/local/share/Regina-REXX\"
 -funsigned-char -DREGINA_VERSION_DATE=\""5 Apr 2015"\"
 -DREGINA_VERSION_MAJOR=\"3\" -DREGINA_VERSION_MINOR=\"9\"
 -DREGINA_VERSION_RELEASE=\"1\" -DREGINA_VERSION_SUPP=\"\" -DREGINA_BITS=64
 -DHAVE_CONFIG_H    -I. -I. -I./contrib    -o regutil.o -DDYNAMIC -fno-
 common ./regutil/regutil.c
 ./regutil/regutil.c:194:51: error: incompatible function pointer types
 passing 'ULONG (*)(PUCHAR, ULONG, PRXSTRING, PSZ, PRXSTRING)' (aka
 'unsigned long (*)(unsigned char *, unsigned long, struct RXSTRING_type *,
 char *, struct RXSTRING_type *)') to parameter of type
 'RexxFunctionHandler *' (aka 'unsigned long (*)(const char *, unsigned
 long, struct RXSTRING_type *, const char *, struct RXSTRING_type *)')
 [-Wincompatible-function-pointer-types]
   194 |         RexxRegisterFunctionExe(funclist[i].name,
 funclist[i].funcptr);
       |
 ^~~~~~~~~~~~~~~~~~~
 ./rexxsaa.h:646:38: note: passing argument to parameter 'EntryPoint' here
   646 |                 RexxFunctionHandler *EntryPoint )
       |                                      ^
 1 error generated.
 make: *** [regutil.o] Error 1
 }}}

 MacOS 15.0 arm64

--

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


More information about the macports-tickets mailing list