Opened 20 months ago

Closed 8 months ago

#71181 closed defect (fixed)

cclient @2007f_4: error: incompatible function pointer types

Reported by: Oniimoucha Owned by: BjarneDMat
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: sequoia Cc: chrisminett (Chris Minett), claudepache (Claude Pache), cooljeanius (Eric Gallager), BjarneDMat
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)

main.log (315.4 KB) - added by MischkaMcL 20 months ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 20 months ago by jmroot (Joshua Root)

Description: modified (diff)
Port: - php82-imap removed
Summary: Failed to build cclient: command execution failedcclient @2007f_4 build failure

Please add the main.log as an attachment.

Changed 20 months ago by MischkaMcL

Attachment: main.log added

comment:2 Changed 20 months ago by MischkaMcL

Also Port Health: Failed to build on Sequoia

https://ports.macports.org/port/cclient/details/

comment:3 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sequoia added; Sequoia removed
Summary: cclient @2007f_4 build failurecclient @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 20 months 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.

comment:5 Changed 19 months ago by chrisminett (Chris Minett)

Cc: chrisminett added

comment:6 Changed 18 months ago by claudepache (Claude Pache)

Cc: claudepache added

comment:7 Changed 13 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:8 Changed 8 months ago by BjarneDMat

Cc: BjarneDMat added

comment:11 Changed 8 months ago by BjarneDMat

Owner: set to BjarneDMat
Resolution: fixed
Status: newclosed

In a918f7307b40f0fbb3dcb074b54945c933743217/macports-ports (master):

cclient: fix for changed definiton of scandir

Fixes: #71181

Note: See TracTickets for help on using tickets.