Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility ...
On Wed, Apr 22, 2026 at 12:28:20AM +0100, Thomas Klausner wrote:
> On Wed, Feb 25, 2026 at 10:12:41PM +0100, Joerg Sonnenberger wrote:
> > On 2/24/26 9:41 PM, Thomas Klausner wrote:
> > > When compiling code in pkgsrc, I often see this block:
> > >
> > > ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility login_getpwclass(); include <login_cap.h> for correct reference
> >
> > Yes, this is a GNU ld bug in that it is reporting references from shared
> > libraries. I looked at it years ago, but gave up trying to resolve those.
>
> Would it be an option to use __attribute__((deprecated(msg)))
> instead of the asm macro we have now?
Ah, no, because the function is not deprecated, we just don't want to
call the "old" not-renamed version of the function. The rename part
was missing in my toy example.
Thomas
Home |
Main Index |
Thread Index |
Old Index