Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 1998 02:58:50 -0500 (EST)
From:      tom@tomqnx.com (Tom Torrance at home)
To:        hackers@FreeBSD.ORG
Subject:   lib warning
Message-ID:  <m0xqvog-00080TC@TomQNX.tomqnx.com>

next in thread | raw e-mail | index | archive | help
I just found out the hard way that there is a quirk that will bite you
if, like me, you have been updating existing systems for a while.

Apparently, there are a few library modules that have regressed
from .so versions to .a versions.  It seems that the linker will
always link in the older .so version if one exists at link time.

This happened on my system with libcompat.a and a couple of gcc libraries.

I only discovered it when I compiled a program using the ftok function
which was not present in the older .so version of the libraries. It was
a puzzle to figure out why the link failed.
 
I recommend that you scan the dates on your libraries and remove all .so
versions where there is a newer .a version as a safety precaution.  You
might have to relink certain other programs that used the wrong (outdated)
library...

Regards,
Tom
 



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