[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-current
Subject: "ldconfig" strangeness on 3.0-RELEASE
From: Randall Hopper <aa8vb () pagesz ! net>
Date: 1998-11-29 15:28:00
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic