help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check a file's modify time is at epoch 0?


From: Eli Schwartz
Subject: Re: How to check a file's modify time is at epoch 0?
Date: Sun, 27 Oct 2019 22:07:44 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 10/27/19 10:00 PM, Eli Schwartz wrote:
> $ enable -f /usr/lib/bash/finfo finfo
> -bash: enable: cannot open shared object /usr/lib/bash/finfo:
> /usr/lib/bash/finfo: undefined symbol: minor
> 
> Other loadables provided in my Arch Linux package work fine, just this
> one does not.
> 
> Chet -- when I try to compile finfo.c, I get this warning:
> 
> finfo.c: In function ‘printst’:
> finfo.c:277:7: warning: implicit declaration of function ‘major’
> [-Wimplicit-function-declaration]
>   277 |  ma = major (st->st_rdev);
>       |       ^~~~~
> finfo.c:278:7: warning: implicit declaration of function ‘minor’
> [-Wimplicit-function-declaration]
>   278 |  mi = minor (st->st_rdev);
>       |       ^~~~~
> 
> If I add an #include <sys/sysmacros.h> then it compiles okay and I can
> load it and it works as expected.

Actually, when I git stash and rebuild my git clone of bash, it still
works, warning and all... but the archlinux package does not... :/

-- 
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]