Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2001 09:07:32 -0600
From:      "Jacques A. Vidrine" <n@nectar.com>
To:        Maximus <moebius@bitstream.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [moebius@bitstream.net: 4.1.1-release ldconfig issue]
Message-ID:  <20010217090732.B37238@spawn.nectar.com>
In-Reply-To: <20010216213422.B197@bitstream.net>; from moebius@bitstream.net on Fri, Feb 16, 2001 at 09:34:22PM -0600
References:  <20010216213422.B197@bitstream.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 16, 2001 at 09:34:22PM -0600, Maximus <moebius@bitstream.net> wrote:
> I installed libiconv-1.5.1 on my 4.1.1-release system with the following results:
> 
> -rw-r--r--   1 root  wheel     452 Feb 16 09:05 libiconv.la
> lrwxr-xr-x   1 root  wheel      15 Feb 16 09:05 libiconv.so -> libiconv.so.2.2
> -rw-r--r--   1 root  wheel  646265 Feb 16 09:05 libiconv.so.2.2
                                                           ^^^^^^
ELF libraries should only have a major version, not a major+minor
version.  Install the port instead of compiling it yourself, and this
will be handled.

> Once finished I run 'ldconfig -m /usr/local/lib /usr/lib'.  No errors
> to this point.

I believe that ELF ldconfig will ignore libraries with more than one
version number tagged on.  But it doesn't matter much -- the hints file
is not used with ELF.

> Once done I run 'ldconfig -r | grep icon' and nothing is there.  The
> library is not making it into the hints file.
> 
> Running file on the .so.2.2 file I get the following:
> 
> libiconv.so.2.2: ELF 32-bit LSB shared object, Intel 80386, version 1
> (FreeBSD), not stripped
> 
> Obviously I'm missing something.  What?
> 
> Any pointer would be appreciated.  At the minimum, where would I find
> the source for ldconfig?  Which package?

Package?  ldconfig is in the base system, and a good guess would be:

  $ which ldconfig
  /sbin/ldconfig
  $ cd /usr/src/sbin/ldconfig
  $ ls
  Makefile        elfhints.c      ldconfig.8      ldconfig.c     ldconfig.h

Hope this helps!

Cheers,
-- 
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org


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




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