From owner-freebsd-current Thu Jul 6 18: 5:58 2000 Delivered-To: freebsd-current@freebsd.org Received: from netplex.com.au (adsl-63-207-30-186.dsl.snfc21.pacbell.net [63.207.30.186]) by hub.freebsd.org (Postfix) with ESMTP id 4279937B6F9; Thu, 6 Jul 2000 18:05:52 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (peter@localhost [127.0.0.1]) by netplex.com.au (8.9.3/8.9.3) with ESMTP id SAA03414; Thu, 6 Jul 2000 18:05:50 -0700 (PDT) (envelope-from peter@netplex.com.au) Message-Id: <200007070105.SAA03414@netplex.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: HEADS UP: cvs commit: src/lib/libftpio Makefile (fwd) In-Reply-To: Message from Kris Kennaway of "Thu, 06 Jul 2000 13:54:30 PDT." Date: Thu, 06 Jul 2000 18:05:50 -0700 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kris Kennaway wrote: > If anyone has done a make world within the past few days you should remove > your libftpio.6 since the version bump was made in error. It's now back to > libftpio.5. It actually does not matter. Which major version new programs are linked against is controlled by which file the symlinks point to. peter@t8000[6:01pm]/usr/lib-113> ls -l libftpio.so* lrwxr-xr-x 1 root wheel 13 Jun 28 12:49 libftpio.so@ -> libftpio.so.5 -r--r--r-- 1 root wheel 14680 Jun 10 20:14 libftpio.so.5 -r--r--r-- 1 root wheel 17244 Jun 5 19:43 libftpio.so.6 -lftpio will follow the symlink, and read the headers in libftpio.so.5: 8000# objdump --all-headers /usr/lib/libftpio.so | grep SONAME SONAME libftpio.so.5 As a result, all programs linked with '-lftpio' will end up linking against libftpio.so.5 explicitly. This is *not* the same as the a.out behavior which searched directories to find the largest number. ELF uses the symlinks and no searching, which is why ld and ld-elf.so is faster when locating directories and does not need ldconfig or the ld.so.cache. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message