logrotate @3.15.0 fails to build on High Sierra
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.
Change History (7)
Changed 6 years ago by Schamschula (Marius Schamschula)
Changed 6 years ago by Schamschula (Marius Schamschula)
Owner: |
set to ctreleaven
|
Status: |
new →
assigned
|
Description: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Thanks for the report and identifying the fix. I'll report to upstream and add the patch for now.
BTW, I did not receive a failure report from our buildbots. Should I not have?