[MacPorts] #65169: mgzip @1.2c_1 fails to build due to implicit declarations

MacPorts noreply at macports.org
Fri May 13 09:55:17 UTC 2022


#65169: mgzip @1.2c_1 fails to build due to implicit declarations
--------------------+----------------------
 Reporter:  jmroot  |      Owner:  nerdling
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  mgzip
--------------------+----------------------
 {{{
 die.c:20:38: error: implicitly declaring library function 'strerror' with
 type 'char *(int)' [-Werror,-Wimplicit-function-declaration]
     printf(errno ? " (%s)\n" : "\n", strerror(errno));
                                      ^
 die.c:20:38: note: include the header <string.h> or explicitly provide a
 declaration for 'strerror'
 1 error generated.
 make: *** [die.o] Error 1
 make: *** Waiting for unfinished jobs....
 queue.c:129:4: error: implicit declaration of function 'usleep' is invalid
 in C99 [-Werror,-Wimplicit-function-declaration]
                 GIVE_IT_UP;  /* release the rest of our timeslice */
                 ^
 ./mgzip.h:37:20: note: expanded from macro 'GIVE_IT_UP'
 #define GIVE_IT_UP usleep(1)
                    ^
 queue.c:229:4: error: implicit declaration of function 'usleep' is invalid
 in C99 [-Werror,-Wimplicit-function-declaration]
                         GIVE_IT_UP;
                         ^
 ./mgzip.h:37:20: note: expanded from macro 'GIVE_IT_UP'
 #define GIVE_IT_UP usleep(1)
                    ^
 2 errors generated.
 }}}
 https://build.macports.org/builders/ports-
 12_x86_64-builder/builds/28627/steps/install-port/logs/stdio

-- 
Ticket URL: <https://trac.macports.org/ticket/65169>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list