Opened 4 years ago
Closed 3 years ago
#62416 closed defect (fixed)
mosquitto @1.5.8_2: error: implicit declaration of function 'mach_absolute_time' is invalid in C99
Reported by: | mklengel (Michael Klengel) | Owned by: | slewsys (Andrew L. Moore) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | ||
Port: | mosquitto |
Description
~ sudo port clean mosquitto Password: ---> Cleaning mosquitto ➜ ~ sudo port install -t mosquitto ---> Computing dependencies for mosquitto ---> Fetching archive for mosquitto ---> Attempting to fetch mosquitto-1.5.8_2.darwin_19.x86_64.tbz2 from https://lil.fr.packages.macports.org/mosquitto ---> Attempting to fetch mosquitto-1.5.8_2.darwin_19.x86_64.tbz2 from https://packages.macports.org/mosquitto ---> Attempting to fetch mosquitto-1.5.8_2.darwin_19.x86_64.tbz2 from https://cph.dk.packages.macports.org/mosquitto ---> Fetching distfiles for mosquitto ---> Verifying checksums for mosquitto ---> Extracting mosquitto Warning: The following existing file was hidden from the build system by trace mode: /private/var/select/sh ---> Configuring mosquitto Warning: The following existing files were hidden from the build system by trace mode: /opt /opt/local/bin/pkg-config /private/var/select/sh /usr/X11R6 ---> Building mosquitto Warning: The following existing files were hidden from the build system by trace mode: /opt /opt/local/include/event2/event.h /private/var/select/sh Error: Failed to build mosquitto: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mosquitto/mosquitto/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port mosquitto failed ➜ ~
Attachments (2)
Change History (6)
Changed 4 years ago by mklengel (Michael Klengel)
Attachment: | main.log.zip added |
---|
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | slewsys removed |
---|---|
Owner: | set to slewsys |
Status: | new → assigned |
Summary: | mosquitto @1.5.8_2 [default variant]: install failed → mosquitto @1.5.8_2: error: implicit declaration of function 'mach_absolute_time' is invalid in C99 |
lib/mosquitto.c:57:10: error: implicit declaration of function 'mach_absolute_time' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ticks = mach_absolute_time(); ^ 1 error generated.
mach_absolute_time
is declared in <mach/mach_time.h>.
Changed 4 years ago by taavi013 (Taavi Talvik)
Attachment: | mosquitto_2_0_9.patch added |
---|
Patch to update Portfile to use upstream version 2.0.9
comment:2 follow-up: 3 Changed 4 years ago by taavi013 (Taavi Talvik)
Newer versions of upstream mosquitto sources correctly include <mach/mach_time.h>
comment:3 Changed 4 years ago by DanielO (Daniel O'Connor)
Replying to taavi013:
Newer versions of upstream mosquitto sources correctly include <mach/mach_time.h>
+1 for this patch - worked for me, thanks.
comment:4 Changed 3 years ago by Adarsh Pyarelal <adarsh@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_mosquitto/mosquitto/main.log