NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/37827: shared libs do not depend on libc.so
>Number: 37827
>Category: lib
>Synopsis: shared libs do not depend on libc.so
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 21 05:40:01 +0000 2008
>Originator: David A. Holland
>Release: NetBSD-current (as of 20080120)
>Organization:
>Environment:
N/A
>Description:
The shared library images in base do not have an explicit dependency
(a DT_NEEDED entry, if I remember my elf correctly) on libc. This
severely restricts our future options for maintaining binary
compatibility and should be rectified as soon as possible, including
in release branches.
>How-To-Repeat:
% ldd /lib/libm.so
/lib/libm.so:
% ldd /lib/libedit.so
/lib/libedit.so:
-ltermcap.0 => /lib/libtermcap.so.0
%
etc.
>Fix:
Add -lc to the link when building shared lib images. There are a
number of ways this could be arranged.
Home |
Main Index |
Thread Index |
Old Index