Re: ld: /usr/lib/libutil.so.7: warning: warning: reference to compatibility ...

Jörg Sonnenberger <[email protected]> Wed, 25 Feb 2026 22:12:41 +0100
Newsgroups gmane.os.netbsd.current
Message-ID <[email protected]>
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.

Joerg