[MacPorts] #58045: logrotate @3.15.0 fails to build on High Sierra

MacPorts noreply at macports.org
Sun Feb 10 11:26:15 UTC 2019


#58045: logrotate @3.15.0 fails to build on High Sierra
--------------------------+------------------------
  Reporter:  Schamschula  |      Owner:  ctreleaven
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+------------------------
Description changed by Schamschula:

Old description:

> While upgrading {{{logrotate}}} on my High Sierra machine is get:
> {{{
> /usr/bin/clang -DHAVE_CONFIG_H -I.  -include config.h
> -I/opt/local/include -Wall -Wextra -Wmissing-format-attribute -Wmissing-
> noreturn -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused
> -Wwrite-strings -pipe -Os -arch x86_64 -MT logrotate.o -MD -MP -MF
> .deps/logrotate.Tpo -c -o logrotate.o logrotate.c
> logrotate.c:478:38: warning: unused parameter 'acl' [-Wunused-parameter]
>                             acl_type acl, int force_mode)
>                                      ^
> logrotate.c:694:17: error: no member named 'st_atim' in 'struct stat'
>     ts[0] = sb->st_atim;
>             ~~  ^
> logrotate.c:695:17: error: no member named 'st_mtim' in 'struct stat'
>     ts[1] = sb->st_mtim;
>             ~~  ^
> 1 warning and 2 errors generated.
> }}}
>
> Ryan ran into a similar problem with {{{optipng}}}: see
> https://sourceforge.net/p/optipng/bugs/47/, so I patched
> {{{logrotate.c}}}, see attached files.

New description:

 While upgrading {{{logrotate}}} on my High Sierra machine I get:
 {{{
 /usr/bin/clang -DHAVE_CONFIG_H -I.  -include config.h -I/opt/local/include
 -Wall -Wextra -Wmissing-format-attribute -Wmissing-noreturn -Wpointer-
 arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings -pipe
 -Os -arch x86_64 -MT logrotate.o -MD -MP -MF .deps/logrotate.Tpo -c -o
 logrotate.o logrotate.c
 logrotate.c:478:38: warning: unused parameter 'acl' [-Wunused-parameter]
                             acl_type acl, int force_mode)
                                      ^
 logrotate.c:694:17: error: no member named 'st_atim' in 'struct stat'
     ts[0] = sb->st_atim;
             ~~  ^
 logrotate.c:695:17: error: no member named 'st_mtim' in 'struct stat'
     ts[1] = sb->st_mtim;
             ~~  ^
 1 warning and 2 errors generated.
 }}}

 Ryan ran into a similar problem with {{{optipng}}}: see
 https://sourceforge.net/p/optipng/bugs/47/, so I patched
 {{{logrotate.c}}}, see attached files.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/58045#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list