[MacPorts] #61590: alpine @2.23: error: implicit declaration of function 'time' is invalid in C99
MacPorts
noreply at macports.org
Mon Mar 29 18:04:44 UTC 2021
#61590: alpine @2.23: error: implicit declaration of function 'time' is invalid in
C99
-----------------------+-----------------------------
Reporter: fcorrao1 | Owner: jcvernaleo
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: bigsur catalina
Port: alpine |
-----------------------+-----------------------------
Comment (by steven-michaud):
I used Edwardo Chappa's suggestion to create the following patch:
{{{
diff --git a/imap/src/osdep/unix/os_osx.h b/imap/src/osdep/unix/os_osx.h
index 6fcb014..ce156d0 100644
--- a/imap/src/osdep/unix/os_osx.h
+++ b/imap/src/osdep/unix/os_osx.h
@@ -32,6 +32,7 @@
#include <utime.h>
#include <syslog.h>
#include <sys/file.h>
+#include <time.h>
/* Mac OS X gets this wrong as of Leopard */
}}}
Then I applied it to the Alpine 2.24 source distro and successfully built
it on all (major) versions of macOS/OS X going back to OS X 10.9.5.
Here are the versions of XCode I used on each version of macOS:
{{{
macOS 11.2.3 XCode 12.4
macOS 10.15.7 XCode 11.1
macOS 10.14.6 XCode 10.3
macOS 10.13.6 XCode 9.1
macOS 10.12.6 XCode 8.3.3
OS X 10.11.6 XCode 7.3.1
OS X 10.10.5 XCode 6.1.1
OS X 10.9.5 XCode 6.1.1
}}}
All the systems I built on had MacPorts installed, and at least the
{{{openssl}}} and {{{curl-ca-bundle}}} ports. On all of them I called
{{{configure}}} with the following parameters:
{{{
--prefix=/opt/local --with-ssl-dir=/opt/local --with-ssl-certs-
dir=/opt/local/etc/openssl
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61590#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list