[comp.sys.next] where is libc.a?

lacsap@plethora.media.mit.edu (Pascal Chesnais) (02/25/91)

In article <1991Feb24.165644.10032@solo.csci.unt.edu> gene@ponder.csci.unt.edu  
(Gene De Lisa) writes:
> I just tried to install perl and the Config script couldn't
> find the C library. Sure enough I cannot find libc.a either.
> Is it libg.a because it's gcc?
> 
> (2.0 on a slab)
From the developer's release notes concerning the 2.0 NeXT Operating System
Software available on-line with 2.0 extended:
/NextLibrary/Documentation/NextDev/ReleaseNotes/OperatingSystem.rtf 

The following new features have been added to the libsys library since Release  
1.0.

7	The static version of the libc library (a subset of libsys) does not  
exist on release 2.0.  The linker now links all programs with the libsys shared  
library by default.

[and later...]

7	libc.a is not shipped with release 2.0.  All routines contained in  
libc.a are also contained in the shared library libsys.a which should be used  
instead of libc.a.  libc.a is not shipped because as a normal archive it is  
impossible for improvements and system interface changes made to library  
routines to be applicable to existing applications without those applications  
being relinked.  Applications referencing shared libraries, because they are  
bound at runtime, always access the most recent release.  Release 1.0  
applications linked against libc.a may not be compatible with release 2.0 until  
they are relinked with libsys.a.



Pascal Chesnais, Research Specialist, Electronic Publishing Group
Media Laboratory, E15-351, 20 Ames Street, Cambridge, Ma, 02139 (617) 253-0311
email: lacsap@plethora.media.mit.edu (NeXT)

cpenrose@sdcc13.ucsd.edu (Christopher Penrose) (02/26/91)

In article <1359@toaster.SFSU.EDU> eps@cs.SFSU.EDU (Eric P. Scott) writes:
>The problem with this is that there are occasionally legitimate
>reasons NOT to link with shared libraries--e.g. /bin/ls so
>
>I understand (and appreciate) NeXT's interest in protecting
>users from their own stupidity.  Making static links difficult is
>one thing, making them impossible is another.  NeXT can learn a
>lot from Sun on this one.

NeXT definitely should provide static libraries.  My experience with
shared libraries on Suns has been fairly nightmarish. On one of our
sparcstations, someone tried to replace a system shared object library, 
(libkvm.so.0.3).  Unfortunately, almost all sun system binaries
depend upon this library.  sh, csh, ls, even halt were all broken.
If you can't yank the system hard drive out, mount it on another
system and replace this file, you have to completely reinstall the
operating system.  I had to do the reinstallation.  yuck!  Anyway,
anyone want to remove or replace libsys_s.a while their machine is
running as a test?  I have an optical drive, so perhaps I'll try it
out when I feel reckless.
 
Sun has a few other shared library hoaxes:  Sun provides special system V
libraries as an installation option.  Some of our developers get the
libraries confused.

Christopher Penrose
cpenrose@ucsd.edu
jesus!penrose@esosun.css.gov  

eps@toaster.SFSU.EDU (Eric P. Scott) (02/26/91)

In article <16974@sdcc6.ucsd.edu> cpenrose@sdcc13.ucsd.edu
	(Christopher Penrose) writes:
>                  Unfortunately, almost all sun system binaries
>depend upon this library.  sh, csh, ls, even halt were all broken.

sh (also jsh) and ls are not broken on NeXT 2.0.
Oops!  halt *is* broken (and so is sync).  Hey NeXT!

csh is not something that needs to work in single-user mode, and
it does benefit from shared libraries.

					-=EPS=-

matthews@lewhoosh.umd.edu (Mike Matthews) (02/27/91)

In article <1363@toaster.SFSU.EDU> eps@cs.SFSU.EDU (Eric P. Scott) writes:
>sh (also jsh) and ls are not broken on NeXT 2.0.
>Oops!  halt *is* broken (and so is sync).  Hey NeXT!

I've used halt several times (far too many, one might say) without a problem.
Sync worked fine for me too.

>					-=EPS=-
------
Mike Matthews, matthews@lewhoosh.umd.edu (NeXT)/matthews@umdd (bitnet)
------
"You are old," said the youth, "and I'm told by my peers
That your lectures bore people to death.
Yet you talk at one hundred conventions per year --
Don't you think that you should save your breath?"

"I have answered three questions and that is enough,"
Said his father, "Don't give yourself airs!
Do you think I can listen all day to such stuff?
Be off, or I'll kick you downstairs!"