Opened 9 days ago
Last modified 8 days ago
#71181 new defect
cclient @2007f_4: error: incompatible function pointer types
Reported by: | Oniimoucha | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.2 |
Keywords: | sequoia | Cc: | |
Port: | cclient |
Description (last modified by jmroot (Joshua Root))
---> Computing dependencies for php82-imap The following dependencies will be installed: cclient Continue? [Y/n]: y ---> Fetching archive for cclient ---> Attempting to fetch cclient-2007f_4.darwin_24.arm64.tbz2 from http://bos.us.packages.macports.org/cclient ---> Attempting to fetch cclient-2007f_4.darwin_24.arm64.tbz2 from https://mirrors.mit.edu/macports/packages/cclient ---> Attempting to fetch cclient-2007f_4.darwin_24.arm64.tbz2 from https://packages.macports.org/cclient ---> Building cclient Error: Failed to build cclient: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_mail_cclient/cclient/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port php82-imap failed
Attachments (1)
Change History (5)
comment:1 Changed 9 days ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Port: | - php82-imap removed |
Summary: | Failed to build cclient: command execution failed → cclient @2007f_4 build failure |
Changed 8 days ago by MischkaMcL
comment:3 Changed 8 days ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sequoia added; Sequoia removed |
---|---|
Summary: | cclient @2007f_4 build failure → cclient @2007f_4: error: incompatible function pointer types |
Thanks. The reason in the log is:
:info:build news.c:370:36: error: incompatible function pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-function-pointer-types] :info:build 370 | if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { :info:build | ^~~~~~~~~~~
comment:4 Changed 8 days ago by ryandesign (Ryan Carsten Schmidt)
From the version number, this software was released in 2007, when Mac OS X 10.5 was current.
The signature of the scandir
function changed to include a const
in OS X 10.8. See comment:ticket:69792:3.
Previously, incompatible function pointer types was just a warning. As of Xcode 16 it is an error and needs to be fixed properly. Software wanting to use scandir
should detect what the signature of that function is in the current OS and pass whatever the appropriate parameters are for that signature.
Or, the software could just use the current scandir
signature and rely on legacy-support to provide compatibility with older systems; see #70702.
Note: See
TracTickets for help on using
tickets.
Please add the main.log as an attachment.