[MacPorts] #69790: pulseaudio @17.0_0: error: incompatible function pointer types passing 'int (const struct dirent *)' to parameter of type 'int (*)(struct dirent *)' [-Wincompatible-function-pointer-types] (was: Pulseaudio @17.0_0 Fails to Build on Lion)

MacPorts noreply at macports.org
Sat Apr 20 18:39:31 UTC 2024


#69790: pulseaudio @17.0_0: error: incompatible function pointer types passing 'int
(const struct dirent *)' to parameter of type 'int (*)(struct dirent *)'
[-Wincompatible-function-pointer-types]
-------------------------+----------------------
  Reporter:  RobK88      |      Owner:  Ionic
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.9.3
Resolution:              |   Keywords:  lion
      Port:  pulseaudio  |
-------------------------+----------------------
Changes (by ryandesign):

 * cc: Ionic (removed)
 * status:  new => assigned
 * owner:  (none) => Ionic


Comment:

 The log says the problem is:

 {{{
 ../pulseaudio-17.0/src/pulsecore/conf-parser.c:268:41: error: incompatible
 function pointer types passing 'int (const struct dirent *)' to parameter
 of type 'int (*)(struct dirent *)' [-Wincompatible-function-pointer-types]
         n = scandir(dir_name, &entries, conf_filter, alphasort);
                                         ^~~~~~~~~~~
 /usr/include/dirent.h:129:11: note: passing argument to parameter here
     int (*)(struct dirent *), int (*)(const void *, const void *))
 __DARWIN_INODE64(scandir);
           ^
 1 error generated.
 }}}

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


More information about the macports-tickets mailing list