From nobody  Fri Dec  4 07:28:57 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id HAA12299;
          Fri, 4 Dec 1998 07:28:57 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199812041528.HAA12299@hub.freebsd.org>
Date: Fri, 4 Dec 1998 07:28:57 -0800 (PST)
From: jose@we.lc.ehu.es
To: freebsd-gnats-submit@freebsd.org
Subject: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
X-Send-Pr-Version: www-1.0

>Number:         8963
>Category:       bin
>Synopsis:       there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec  4 07:30:00 PST 1998
>Closed-Date:    Mon Dec 7 08:48:53 PST 1998
>Last-Modified:  Mon Dec  7 08:49:11 PST 1998
>Originator:     Jos M Alcaide
>Release:        3.0-RELEASE
>Organization:
Universidad del Pas Vasco - Dept. de Electricidad y Electrnica
>Environment:
FreeBSD marrajo.we.lc.ehu.es 3.0-RELEASE FreeBSD 3.0-RELEASE #0: Mon Nov  9 18:35:05 CET 1998     root@marrajo.we.lc.ehu.es:/usr/src/sys/compile/MARRAJO  i386
>Description:
$ /sbin/ldconfig -r | fgrep term
        7:-ltermcap.2 => /usr/lib/libtermcap.so.2
$ cd /usr/lib
$ ls -l libterm*
-r--r--r--  2 root  wheel  18522 17 oct 18:59 libtermcap.a
lrwxrwxrwx  1 root  wheel     15  9 nov 17:01 libtermcap.so -> libtermcap.so.2
-r--r--r--  1 root  wheel  15108 17 oct 18:59 libtermcap.so.2
-r--r--r--  2 root  wheel  19760 16 oct 18:06 libtermcap_p.a
-r--r--r--  2 root  wheel  18522 17 oct 18:59 libtermlib.a
lrwxrwxrwx  1 root  wheel     15  9 nov 17:01 libtermlib.so -> libtermcap.so.2
-r--r--r--  2 root  wheel  19760 16 oct 18:06 libtermlib_p.a

It's obvious: there is no libtermlib.so.2, so it's not referenced
in the ldconfig's cache.
>How-To-Repeat:
See above.
>Fix:
The problem resides in the Makefile for these libraries. The workaround,
however, is simple:

cd /usr/lib
ln libtermcap.so.2 libtermlib.so.2
rm libtermlib.so
ln -s libtermlib.so.2 libtermlib.so
ldconfig -R

>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: jose@we.lc.ehu.es
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: bin/8963: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
Date: Fri, 4 Dec 1998 11:50:17 -0500 (EST)

 <<On Fri, 4 Dec 1998 07:28:57 -0800 (PST), jose@we.lc.ehu.es said:
 
 >> Synopsis:       there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
 
 There is no need for a libtermlib.so.2:
 
 wollman@khavrinen(758)$ objdump --all-headers /usr/lib/libtermlib.so | fgrep SONAME
   SONAME      libtermcap.so.2
 
 -GAWollman
 
 --
 Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
 wollman@lcs.mit.edu  | O Siem / The fires of freedom 
 Opinions not those of| Dance in the burning flame
 MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

From: "Jos M Alcaide" <jose@we.lc.ehu.es>
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/8963: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
Date: Sat, 05 Dec 1998 16:18:03 +0100

 Garrett Wollman wrote:
 > 
 > <<On Fri, 4 Dec 1998 07:28:57 -0800 (PST), jose@we.lc.ehu.es said:
 > 
 > >> Synopsis:       there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
 > 
 > There is no need for a libtermlib.so.2:
 > 
 > wollman@khavrinen(758)$ objdump --all-headers /usr/lib/libtermlib.so | fgrep SONAME
 >   SONAME      libtermcap.so.2
 > 
 
 Uh? In FreeBSD 2.2-STABLE, libtermcap.so.2. and libtermlib.so.2 are
 the same file (they are hard-linked). I supposed that the same library
 has two names in order to permit linking using both "-ltermcap" and 
 "-ltermlib", giving more compatibility. Is this not need with FreeBSD-3.0?
 
 -- JMA
 -----------------------------------------------------------------------
 Jos M Alcaide                         | mailto:jose@we.lc.ehu.es
 Universidad del Pas Vasco              | http://www.we.lc.ehu.es/~jose
 Dpto. de Electricidad y Electrnica     |
 Facultad de Ciencias - Campus de Lejona | Tel.:  +34-946012479
 48940 Lejona (Vizcaya) - SPAIN          | Fax:   +34-944858139
 -----------------------------------------------------------------------
                "Go ahead... make my day." - H. Callahan

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: "Jos M Alcaide" <jose@we.lc.ehu.es>
Cc: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>,
        freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/8963: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
Date: Sat, 5 Dec 1998 17:09:19 -0500 (EST)

 <<On Sat, 05 Dec 1998 16:18:03 +0100, "Jos M Alcaide" <jose@we.lc.ehu.es> said:
 
 > Garrett Wollman wrote:
 >> 
 >> <<On Fri, 4 Dec 1998 07:28:57 -0800 (PST), jose@we.lc.ehu.es said:
 >> 
 >> >> Synopsis:       there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
 >> 
 >> There is no need for a libtermlib.so.2:
 >> 
 >> wollman@khavrinen(758)$ objdump --all-headers /usr/lib/libtermlib.so | fgrep SONAME
 >> SONAME      libtermcap.so.2
 >> 
 
 > Uh? In FreeBSD 2.2-STABLE, libtermcap.so.2. and libtermlib.so.2 are
 > the same file (they are hard-linked). 
 
 In FreeBSD 2.2-STABLE, there is no such thing as `libtermcap.so.2' nor
 `libtermlib.so.2'.  Those are ELF library names, and thus only present
 in 3.0.  In ELF libraries, only the `.so' versions are used for
 link-time library searches.
 
 -GAWollman
 
 --
 Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
 wollman@lcs.mit.edu  | O Siem / The fires of freedom 
 Opinions not those of| Dance in the burning flame
 MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

From: "Jos M Alcaide" <jose@we.lc.ehu.es>
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/8963: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
Date: Sun, 06 Dec 1998 00:45:32 +0100

 Garrett Wollman wrote:
 > 
 > In FreeBSD 2.2-STABLE, there is no such thing as `libtermcap.so.2' nor
 > `libtermlib.so.2'.  Those are ELF library names, and thus only present
 > in 3.0.  In ELF libraries, only the `.so' versions are used for
 > link-time library searches.
 > 
 
 $ uname -r
 2.2.8-RELEASE
 $ cd /usr/lib; ls -li libterm*
 238434 -r--r--r--  2 bin  bin  15634  3 dic 01:33 libtermcap.a
 238435 -r--r--r--  2 bin  bin  16826  3 dic 01:33 libtermcap.so.2.1
 238434 -r--r--r--  2 bin  bin  15634  3 dic 01:33 libtermlib.a
 238435 -r--r--r--  2 bin  bin  16826  3 dic 01:33 libtermlib.so.2.1
 $ ldconfig -r | fgrep term
         64:-ltermcap.2.1 => /usr/lib/libtermcap.so.2.1
         100:-ltermlib.2.1 => /usr/lib/libtermlib.so.2.1
 
 OK, their names end in "so.2.1", but these libraries do exist in
 2.2-STABLE. They are two hard links to the same file, but ldconfig
 registers both names. This does not happens in FreeBSD 3.0.
 
 -- JMA
 -----------------------------------------------------------------------
 Jos M Alcaide                         | mailto:jose@we.lc.ehu.es
 Universidad del Pas Vasco              | http://www.we.lc.ehu.es/~jose
 Dpto. de Electricidad y Electrnica     |
 Facultad de Ciencias - Campus de Lejona | Tel.:  +34-946012479
 48940 Lejona (Vizcaya) - SPAIN          | Fax:   +34-944858139
 -----------------------------------------------------------------------
                "Go ahead... make my day." - H. Callahan

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: "Jos M Alcaide" <jose@we.lc.ehu.es>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/8963: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
Date: Sat, 5 Dec 1998 20:40:32 -0500 (EST)

 <<On Sun, 06 Dec 1998 00:45:32 +0100, "Jos M Alcaide" <jose@we.lc.ehu.es> said:
 
 [I wrote:]
 >> in 3.0.  In ELF libraries, only the `.so' versions are used for
 >> link-time library searches.
 
 > OK, their names end in "so.2.1", but these libraries do exist in
 > 2.2-STABLE. They are two hard links to the same file, but ldconfig
 > registers both names. This does not happens in FreeBSD 3.0.
 
 As I said above, in ELF libraries, only the `.so' versions are used
 for link-time library searches.  In my original reply, I quoted the
 dynamic-linking header from a 3.0 libtermlib.so, which clearly
 indicates that the name recorded in the executable for use by the ELF
 run-time linker is `libtermcap.so.2', as would have been clear if you
 had bothered to actually compile a program yourself and run `ldd' on
 it.
 
 -GAWollman
 
 --
 Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
 wollman@lcs.mit.edu  | O Siem / The fires of freedom 
 Opinions not those of| Dance in the burning flame
 MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

From: "Jos M Alcaide" <jose@we.lc.ehu.es>
To: freebsd-gnats-submit@FreeBSD.ORG
Cc:  Subject: Re: bin/8963: there is no libtermlib.so.2 in /usr/lib (3.0-RELEASE)
Date: Sun, 06 Dec 1998 13:54:21 +0100

 Now I know that this is not a problem, due to the FreeBSD's ELF
 dynamic linking method (thanks to Garrett Wollman for pointing
 this out). Sorry. This PR can be safely closed.
 
 -- JMA
 -----------------------------------------------------------------------
 Jos M Alcaide                         | mailto:jose@we.lc.ehu.es
 Universidad del Pas Vasco              | http://www.we.lc.ehu.es/~jose
 Dpto. de Electricidad y Electrnica     |
 Facultad de Ciencias - Campus de Lejona | Tel.:  +34-946012479
 48940 Lejona (Vizcaya) - SPAIN          | Fax:   +34-944858139
 -----------------------------------------------------------------------
                "Go ahead... make my day." - H. Callahan
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Mon Dec 7 08:48:53 PST 1998 
State-Changed-Why:  
Submitter misunderstanding. 
>Unformatted:
