NetBSD Problem Report #50653

From  Wed Jan 13 07:39:23 2016
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id AA3A07ABC0
	for <>; Wed, 13 Jan 2016 07:39:23 +0000 (UTC)
Message-Id: <>
Date: Wed, 13 Jan 2016 07:39:22 +0000 (UTC)
Subject: Error in the example section
X-Send-Pr-Version: www-1.0

>Number:         50653
>Category:       toolchain
>Synopsis:       Error in the example section
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 13 07:40:00 +0000 2016
>Originator:     Kamil Rytarowski
>Release:        7.99.25
NetBSD compaq 7.99.25 NetBSD 7.99.25 (GENERIC) #0: Fri Dec 25 20:05:36 CET 2015  root@chieftec:/tmp/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
elf_version (3) says:

     An application program would inform the ELF library about its desired
     operating version and check for an error using the following code

           if (elf_version(EV_CURRENT) == EV_NONE)
                   err(EXIT_FAILURE, "ELF library too old");

     Function elf_version() may fail with the following error:

     [ELF_E_VERSION]   An unsupported library version number was requested.

I think it should be:
           if (elf_version(EV_CURRENT) == EV_NONE)
                   errx(EXIT_FAILURE, "ELF library too old: %s", elf_errmsg(elf_errno())));

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.