From owner-freebsd-current Wed Nov 15 21:17:06 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA20137 for current-outgoing; Wed, 15 Nov 1995 21:17:06 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id VAA19983 ; Wed, 15 Nov 1995 21:14:09 -0800 Received: by sequent.kiae.su id AA17606 (5.65.kiae-2 ); Thu, 16 Nov 1995 08:00:30 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Thu, 16 Nov 95 08:00:30 +0300 Received: (from ache@localhost) by ache.dialup.demos.ru (8.6.12/8.6.12) id HAA02888; Thu, 16 Nov 1995 07:55:46 +0300 To: Nate Williams Cc: current@freebsd.org, nate@freebsd.org References: <199511160416.VAA08251@rocky.sri.MT.net> In-Reply-To: <199511160416.VAA08251@rocky.sri.MT.net>; from Nate Williams at Wed, 15 Nov 1995 21:16:34 -0700 Message-Id: Organization: Olahm Ha-Yetzirah Date: Thu, 16 Nov 1995 07:55:45 +0300 (MSK) X-Mailer: Mail/@ [v2.40 FreeBSD] From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) X-Class: Fast Subject: Re: Link order needs to be fixed! Lines: 33 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1078 Sender: owner-current@freebsd.org Precedence: bulk In message <199511160416.VAA08251@rocky.sri.MT.net> Nate Williams writes: >KOI8-R writes: >> BUT! I directly specify -lcipher (which have setkey()) into >> linker line, i.e.: >> >> cc ..objs.. -lcipher >> >> It means that setkey() picked not from shared libcipher >> but from shared libc instead independently of linking >> order. >If setkey() is in a shared libcipher, and you have a shared libc() it >will follow link order. both libc and libcipher shared as I say. >It's when you mix and match shared/static libraries there is a problem. >That has *always* worked, and was never broken. Can ou provide me a >tar-file with the offending code? I have per-program static libraries, i.e.: cc ..objs.. ..program-static-libs.. -lcipher I'll mail tar file to you shortly. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - http://dt.demos.su/~ache : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849