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 - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to