*BSD News Article 16294


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!torn!nott!bnrgate!bnr.co.uk!uknet!pavo.csi.cam.ac.uk!camcus!pc123
From: pc123@cus.cam.ac.uk (Pete Chown)
Subject: Re: Shared libraries
In-Reply-To: hlu@eecs.wsu.edu's message of 18 May 93 18:29:36 GMT
Message-ID: <PC123.93May19192011@apus.cus.cam.ac.uk>
Sender: news@infodev.cam.ac.uk (USENET news)
Nntp-Posting-Host: apus.cus.cam.ac.uk
Organization: U of Cambridge, England
References: <PC123.93May14232156@bootes.cus.cam.ac.uk> <1tau5kINNq52@scarecrow.mke.ab.com>
	<PC123.93May18174806@bootes.cus.cam.ac.uk>
	<1993May18.182936.2924@serval.net.wsu.edu>
Date: Wed, 19 May 1993 18:20:17 GMT
Lines: 36

In article <1993May18.182936.2924@serval.net.wsu.edu> hlu@eecs.wsu.edu (HJ Lu) writes:

   What do you mean by `change'? If I move the data symbols to other files,
   do I have to recompile the old apps?

Huh?  What do you mean "move the data symbols to other files"?

   |> 2.  A completely new procedure is exported from the library.

   Does that mean if I add a new function to the library, I have to
   recompile the old apps?. If it was true, it would be ridiculous.

If you add a new function to the library which has only static scope,
you don't have to.  I don't know if this is what you meant.

   That is too bad. I won't be able to use the new shared libraries compiled
   with new gcc 2.4 with the old apps which are linked to the shared libraries
   compiled with gcc 1.39. It may happen only thing you need to fix a bug
   in an application is to fix the shared library.

Indeed so.  I see no reason why shared libraries compiled with gcc 2.4
should be incompatible with those produced with gcc 1.39.  The code
will be different, but the jump table will take care of that.
Similarly with fixing a bug in the library - most likely the only
thing you'll change is the code.

   I have done that. I think it should be fixed first.

Pardon?

Oh, and welcome to BSD, by the way.  I do remember you from Linux,
don't I?  I think you flamed me back then as well... :-)
--
---------------------------------------------+ "A tight hat can be stretched.
Pete Chown, pc123@phx.cam.ac.uk (Internet)   |  First damp the head with steam
            pc123@uk.ac.cam.phx (Janet :-)  -+  from a boiling kettle."