Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 1998 18:56:33 -0500
From:      Randall Hopper <aa8vb@pagesz.net>
To:        current@FreeBSD.ORG
Subject:   Bugs/features w/ "ldconfig" (3.0-RELEASE)
Message-ID:  <19981202185633.A868@pagesz.net>
In-Reply-To: <19981129102800.A1657@pagesz.net>; from Randall Hopper on Sun, Nov 29, 1998 at 10:28:00AM -0500
References:  <19981129102800.A1657@pagesz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
No response, so let me try once more before filing a PR.

Two things I notice that are rather strange.  Are these bugs?

===============================================================================
1) You can completely re-initialize the LD path for ELF, but not for AOUT.
   An example to illustrate:

          # ldconfig -elf /
          # ldconfig -elf -r
          /var/run/ld-elf.so.hints:
                  search directories: /
       
          # ldconfig -aout /
          # ldconfig -aout -r
          /var/run/ld.so.hints:
!!  ===>  search directories: /usr/lib/aout:/
                  0:-lalias.2.5 => /usr/lib/aout/libalias.so.2.5
                  1:-latm.2.0 => /usr/lib/aout/libatm.so.2.0
                  ...
                  37:-lstdc++.2.0 => /usr/lib/aout/libstdc++.so.2.0

  
   It seems that ldconfig won't let you remove /usr/lib/aout.  Why?

===============================================================================
2) In /etc/rc.conf, we have:

        $ldconfig_paths & $ldconfig_paths_aout

   but we also have:

        /etc/ld.so.conf & /etc/ld-elf.so.conf

   (as documented in the ldconfig(8) man page) as places to store LD paths.  
   So:

        a) Which should be used?  
        b) What arguments cause "ldconfig" to read the /etc/ld*.so.conf files?

   It would make sense to have one place to store this information.
   It'd also be useful to have simple ldconfig arguments that re-read this
   information, wherever it is stored (something like "ldconfig -i").

===============================================================================
and a few questions:

3) Why aren't these two directories in the default $ldconfig_paths_aout (AOUT)
   in /etc/rc.conf?  AFAIK, they're all AOUT:

   /usr/lib/aout /usr/lib/compat

4) Why is this directory in the default $ldconfig_paths (ELF)?  It's all AOUT:

   /usr/lib/compat 

===============================================================================

I'd appreciate any insights.  Should the defs in /etc/rc.conf possibly be
changed to:

   ldconfig_paths="`cat /etc/ld-elf.so.conf`"
   ldconfig_paths_aout="`cat /etc/ld.so.conf`"    

Thanks,

Randall Hopper

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981202185633.A868>