NetBSD Problem Report #9031

Received: (qmail 9340 invoked from network); 20 Dec 1999 01:27:16 -0000
Message-Id: <19991220012715.1750.qmail@intrepid.warped.com>
Date: 20 Dec 1999 01:27:15 -0000
From: scotte@warped.com
Reply-To: scotte@warped.com
To: gnats-bugs@gnats.netbsd.org
Subject: ld.elf_so parsing is broken
X-Send-Pr-Version: 3.95

>Number:         9031
>Category:       lib
>Synopsis:       ld.so.conf requires a space at the end of the sysctl line, and the full sysctl path
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 19 17:30:01 +0000 1999
>Closed-Date:    Mon Dec 20 02:45:22 +0000 1999
>Last-Modified:  Mon Dec 20 02:46:28 +0000 1999
>Originator:     Scott Ellis
>Release:        <NetBSD-current source date> Dec 18, 1999
>Organization:
   //////////////////////////////////////////////////////////////////////
  //    Scott Ellis     //             scotte@warped.com              //
 //////////////////////////////////////////////////////////////////////
// WARNING: This signature warps  time and space in its vicinity    //
>Environment:

System: NetBSD intrepid.warped.com 1.4P NetBSD 1.4P (INTREPID) #0: Sun Dec 19 12:01:25 PST 1999 scotte@intrepid.warped.com:/software/netbsd_src/src/sys/arch/i386/compile/INTREPID i386


>Description:


After the ld.so.conf and ld.elf_so changes to support conditional loading of
libraries based on sysctl, there are two types of lossage exhibited.

First, the manpage example does NOT show the full sysctl path.  Specifically,
it should say machdep.fpu_present, rather than just fpu_present.  W/o the
machdep" part, ld.elf_so complains that the sysctl is missing/not-found.

Secondly, there needs to be a trailing space in the ld.so.conf line for it
to properly parse.

"libm.so.0       machdep.fpu_present     1:libm387.so.0,libm.so.0" 

yields a "missing sysctl line" error, whereas

"libm.so.0       machdep.fpu_present     1:libm387.so.0,libm.so.0 "

works fine.
>How-To-Repeat:


Include partial sysctl path in ls.so.conf, and watch the errors be reported!

Also, don't include whitespace at the end of the line, and enjoy the messages.
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: christos 
State-Changed-When: Sun Dec 19 20:45:10 EST 1999 
State-Changed-Why:  
I fixed the documentation problem. I don't see the required space problem though 
on my machines. Could it be that your file does not have a trailing newline? 
State-Changed-From-To: feedback->closed 
State-Changed-By: christos 
State-Changed-When: Sun Dec 19 21:45:22 EST 1999 
State-Changed-Why:  
Scott found the problem; it was not missing whitespace, but additional 
empty lines that produced the warning. I fixed the parser to ignore 
empty lines in the sysctl case too. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.