Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Static System Libraries in Solaris 10
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 59 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Barton  
View profile  
 More options Oct 31 2002, 4:26 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: john.bar...@sun.com (John Barton)
Date: 31 Oct 2002 13:26:27 -0800
Local: Thurs, Oct 31 2002 4:26 pm
Subject: Static System Libraries in Solaris 10
Statement of Direction

This announcement applies only to 32-bit static system libraries and
statically linked utilites. 64-bit static system libraries and
utilities have never been provided.

The Solaris Application Binary Interface (ABI) is provided through
dynamic system libraries. All Solaris applications should be linked
with the Solaris dynamic system libraries. 32-bit applications linked
with Solaris static system libraries do not utilize the Solaris ABI.

Support for 32-bit Solaris static system libraries and statically
linked utilities will not be provided in a future release. Of
particular note, support for the static C library (/usr/lib/libc.a)
will not be provided in a future release.

Please send feedback/comments to: static-libs-feedb...@sun.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drazen Kacar  
View profile  
 More options Oct 31 2002, 5:52 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
Followup-To: comp.unix.solaris
From: Drazen Kacar <d...@willfork.com>
Date: 31 Oct 2002 22:52:57 GMT
Local: Thurs, Oct 31 2002 5:52 pm
Subject: Re: Static System Libraries in Solaris 10

John Barton wrote:
>  Support for 32-bit Solaris static system libraries and statically
>  linked utilities will not be provided in a future release. Of

Hm. The message body says "future release", but the subject says "Solaris
10". Can I take the subject as a normative reference? :-)

--
 .-.   .-.    I don't work here. I'm a consultant.
(_  \ /  _)
     |        d...@willfork.com
     |


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Teer  
View profile  
 More options Oct 31 2002, 6:18 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Rich Teer <r...@rite-group.com>
Date: Thu, 31 Oct 2002 23:18:31 GMT
Local: Thurs, Oct 31 2002 6:18 pm
Subject: Re: Static System Libraries in Solaris 10
On 31 Oct 2002, John Barton wrote:

> Support for 32-bit Solaris static system libraries and statically
> linked utilities will not be provided in a future release. Of
> particular note, support for the static C library (/usr/lib/libc.a)
> will not be provided in a future release.

I'm all for losing the static libraries, but I think that
the statically linked binaries (currently in /usr/sbin/static)
should be kept - you never know when they will be handy.
In fact, they've saved my skin at least once.

Actually, if anything, those binaries should be moved to
/sbin/static, to be of use to people who insist on using a
separate /usr partition.

In summary:

        1. Lose the static libraries as planned

        2. Move the static binaries in /usr/sbin/static to /sbin/static

That's my CDN $0.02...

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Akop Pogosian  
View profile  
 More options Oct 31 2002, 7:54 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Akop Pogosian <akopps+use...@ocf.berkeley.edu>
Date: Fri, 1 Nov 2002 00:54:09 +0000 (UTC)
Local: Thurs, Oct 31 2002 7:54 pm
Subject: Re: Static System Libraries in Solaris 10
In comp.unix.solaris Rich Teer <r...@rite-group.com> wrote:

> On 31 Oct 2002, John Barton wrote:
>> Support for 32-bit Solaris static system libraries and statically
>> linked utilities will not be provided in a future release. Of
>> particular note, support for the static C library (/usr/lib/libc.a)
>> will not be provided in a future release.
> I'm all for losing the static libraries, but I think that
> the statically linked binaries (currently in /usr/sbin/static)
> should be kept - you never know when they will be handy.
> In fact, they've saved my skin at least once.
> Actually, if anything, those binaries should be moved to
> /sbin/static, to be of use to people who insist on using a
> separate /usr partition.
> In summary:
>    1. Lose the static libraries as planned
>    2. Move the static binaries in /usr/sbin/static to /sbin/static

But.. how can Sun continue supporting the static binaries if they will
discontinue support for static libraries?

--
Akop Pogosian

This space has been accidentally left blank.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Uhring  
View profile  
 More options Oct 31 2002, 8:08 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
Followup-To: comp.unix.solaris
From: Dave Uhring <dmuhr...@yahoo.com>
Date: Thu, 31 Oct 2002 19:01:26 -0600
Local: Thurs, Oct 31 2002 8:01 pm
Subject: Re: Static System Libraries in Solaris 10

Akop Pogosian wrote:
> In comp.unix.solaris Rich Teer <r...@rite-group.com> wrote:
>> On 31 Oct 2002, John Barton wrote:

>>> Support for 32-bit Solaris static system libraries and statically

                                                       ^^^^^^^^^^^^^^
>>> linked utilities will not be provided in a future release. Of

    ^^^^^^^^^^^^^^^^

Heh!  Neither one of you is reading the article ;-)

It looks like /usr better be on the / partition from that point on.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rich Teer  
View profile  
 More options Oct 31 2002, 10:25 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Rich Teer <r...@rite-group.com>
Date: Fri, 01 Nov 2002 03:25:05 GMT
Local: Thurs, Oct 31 2002 10:25 pm
Subject: Re: Static System Libraries in Solaris 10

On Fri, 1 Nov 2002, Akop Pogosian wrote:
> But.. how can Sun continue supporting the static binaries if they will
> discontinue support for static libraries?

Sun has the full source code.  What they use internally,
and what they make available externally don't necessarily
have to be the same thing...

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Bradshaw  
View profile  
 More options Nov 1 2002, 5:25 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Tim Bradshaw <t...@cley.com>
Date: 01 Nov 2002 10:20:58 +0000
Local: Fri, Nov 1 2002 5:20 am
Subject: Re: Static System Libraries in Solaris 10

* Rich Teer wrote:
> Sun has the full source code.  What they use internally,
> and what they make available externally don't necessarily
> have to be the same thing...

However, it would be nice if a user of the system can *also* construct
static binaries, if needed.

--tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Margolin  
View profile  
 More options Nov 1 2002, 11:01 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Barry Margolin <bar...@genuity.net>
Date: Fri, 01 Nov 2002 16:01:30 GMT
Local: Fri, Nov 1 2002 11:01 am
Subject: Re: Static System Libraries in Solaris 10
In article <ey3hef1vbed....@cley.com>, Tim Bradshaw  <t...@cley.com> wrote:

>* Rich Teer wrote:

>> Sun has the full source code.  What they use internally,
>> and what they make available externally don't necessarily
>> have to be the same thing...

>However, it would be nice if a user of the system can *also* construct
>static binaries, if needed.

Would you be willing to live with the caveat that they would have to be
relinked any time a library patch is installed or the OS is upgraded?
Maintaining upward compatibility of the library API is relatively easy;
maintaining binary compatibility is much harder, and may limit what the
vendor can do to fix bugs.

--
Barry Margolin, bar...@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Bradshaw  
View profile  
 More options Nov 1 2002, 1:11 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Tim Bradshaw <t...@cley.com>
Date: 01 Nov 2002 18:11:00 +0000
Subject: Re: Static System Libraries in Solaris 10

> Would you be willing to live with the caveat that they would have to be
> relinked any time a library patch is installed or the OS is upgraded?
> Maintaining upward compatibility of the library API is relatively easy;
> maintaining binary compatibility is much harder, and may limit what the
> vendor can do to fix bugs.

I don't really understand this.  If a binary is statically linked,
then surely the only calls it makes are system calls?  I don't think
they get changed all the time.  Sure, if it uses a lot of libraries
that do stuff which exchange data whose format might change (so IPC of
whatever kind) hidden behind a library, then it might lose, but how
common is that?

In fact, in the early days of what is now xemacs (then lemacs) I
remember that a lot of the binary distributions that got made were
statically linked, because that way you only depended on low-level
stuff like the X protocol and system calls, not which of the 983
versions of some random library happened to be installed on the target
machine.  This was done because there was *so* much trouble from
dynamic binaries that just wouldn't run.

*However* it looks (from reading the original article) as if Sun are
intending to not provide any static binaries at all, not even /sbin/sh
(say).  My real issue is that I don't want there to be (too many)
magic things that Sun can produce (static binaries) which I can't.

--tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casper H.S. Dik  
View profile  
 More options Nov 1 2002, 3:58 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Casper H.S. Dik <Casper....@Sun.COM>
Date: 01 Nov 2002 20:58:34 GMT
Local: Fri, Nov 1 2002 3:58 pm
Subject: Re: Static System Libraries in Solaris 10

Tim Bradshaw <t...@cley.com> writes:
>I don't really understand this.  If a binary is statically linked,
>then surely the only calls it makes are system calls?  I don't think
>they get changed all the time.  Sure, if it uses a lot of libraries
>that do stuff which exchange data whose format might change (so IPC of
>whatever kind) hidden behind a library, then it might lose, but how
>common is that?

They do get changed some of the time; some system calls are added;
others have been removed or changed, sometimes in incompatible ways.

>*However* it looks (from reading the original article) as if Sun are
>intending to not provide any static binaries at all, not even /sbin/sh
>(say).  My real issue is that I don't want there to be (too many)
>magic things that Sun can produce (static binaries) which I can't.

No static binaries, correct.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Margolin  
View profile  
 More options Nov 1 2002, 5:54 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Barry Margolin <bar...@genuity.net>
Date: Fri, 01 Nov 2002 22:54:18 GMT
Local: Fri, Nov 1 2002 5:54 pm
Subject: Re: Static System Libraries in Solaris 10
In article <3dc2eafa$0$46604$e4fe5...@news.xs4all.nl>,
Casper H.S. Dik  <Casper....@Sun.COM> wrote:

>Tim Bradshaw <t...@cley.com> writes:

>>I don't really understand this.  If a binary is statically linked,
>>then surely the only calls it makes are system calls?  I don't think
>>they get changed all the time.  Sure, if it uses a lot of libraries
>>that do stuff which exchange data whose format might change (so IPC of
>>whatever kind) hidden behind a library, then it might lose, but how
>>common is that?

>They do get changed some of the time; some system calls are added;
>others have been removed or changed, sometimes in incompatible ways.

Like when the socket API was changed from system calls to Streams-based
library functions.

These types of incompatible changes at the binary level are probably pretty
infrequent in patches, but I'll bet there are a few of them during each
major release of the OS.

--
Barry Margolin, bar...@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darren Dunham  
View profile  
 More options Nov 1 2002, 6:40 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
Followup-To: comp.unix.solaris, comp.sys.sun.admin
From: Darren Dunham <ddun...@taos.com>
Date: Fri, 01 Nov 2002 23:39:53 GMT
Local: Fri, Nov 1 2002 6:39 pm
Subject: Re: Static System Libraries in Solaris 10
Casper H.S. Dik <Casper....@Sun.COM> wrote in
news:3dc2eafa$0$46604$e4fe514c@news.xs4all.nl:

> Tim Bradshaw <t...@cley.com> writes:
>>*However* it looks (from reading the original article) as if Sun are
>>intending to not provide any static binaries at all, not even /sbin/sh
>>(say).  My real issue is that I don't want there to be (too many)
>>magic things that Sun can produce (static binaries) which I can't.

> No static binaries, correct.

So does that include /sbin/mount?  Does that mean that /usr cannot be on a
separate (and possibly read-only) partition?

--
Darren Dunham
ddun...@taos.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
grog  
View profile  
 More options Nov 2 2002, 8:12 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: grog <g...@oo.r>
Date: Sat, 2 Nov 2002 08:12:46 -0500
Local: Sat, Nov 2 2002 8:12 am
Subject: Re: Static System Libraries in Solaris 10
In article <20f68642.0210311326.dbad...@posting.google.com>,
john.bar...@sun.com says...

> Statement of Direction

> This announcement applies only to 32-bit static system libraries and
> statically linked utilites. 64-bit static system libraries and
> utilities have never been provided.

> The Solaris Application Binary Interface (ABI) is provided through
> dynamic system libraries. All Solaris applications should be linked
> with the Solaris dynamic system libraries. 32-bit applications linked
> with Solaris static system libraries do not utilize the Solaris ABI.

> Support for 32-bit Solaris static system libraries and statically
> linked utilities will not be provided in a future release. Of
> particular note, support for the static C library (/usr/lib/libc.a)
> will not be provided in a future release.

Why?  What, exactly, is the problem with the static libs?  So the static
32-bit apps don't use the Solaris ABI, who cares.  Get too restrictive
and try to force everybody into the "Sun way" and you'll start to drop
to the dark depths of Microsoft.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casper H.S. Dik  
View profile  
 More options Nov 2 2002, 10:26 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Casper H.S. Dik <Casper....@Sun.COM>
Date: 02 Nov 2002 15:26:52 GMT
Local: Sat, Nov 2 2002 10:26 am
Subject: Re: Static System Libraries in Solaris 10

grog <g...@oo.r> writes:
>Why?  What, exactly, is the problem with the static libs?  So the static
>32-bit apps don't use the Solaris ABI, who cares.  Get too restrictive
>and try to force everybody into the "Sun way" and you'll start to drop
>to the dark depths of Microsoft.

Even in the current situtation, there have been many problems with
static libraries:

        - linking statically against libsocket/libnsl
                - broken when upgrading to 2.6

        - partially static linking (libc statically, lib thread not)
                - applications broke when the libthread/libc interfaces
                  got upgraded

It's especially the ability to pick and chose libraries that gives no
end to trouble.

And Solaris 10 adds another very good reason; it pushed the static
libraries off the edge.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Drazen Kacar  
View profile  
 More options Nov 2 2002, 11:09 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Drazen Kacar <d...@willfork.com>
Date: 2 Nov 2002 16:09:17 GMT
Local: Sat, Nov 2 2002 11:09 am
Subject: Re: Static System Libraries in Solaris 10

Casper H.S Dik wrote:
>    - partially static linking (libc statically, lib thread not)
>            - applications broke when the libthread/libc interfaces
>              got upgraded

It's been like that for years, so why did it become a problem worth solving
now? Hmmm... TLS alone can't be the reason... But perhaps you're going to
make dynamic loading of libthread (and thus making program "threaded" on
the fly) legal and supported?

--
 .-.   .-.    I don't work here. I'm a consultant.
(_  \ /  _)
     |        d...@willfork.com
     |


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rachel polanskis  
View profile  
 More options Nov 3 2002, 1:15 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: rachel polanskis <gr...@zeta.org.au>
Date: Sat, 02 Nov 2002 18:16:52 +1100
Local: Sat, Nov 2 2002 2:16 am
Subject: Re: Static System Libraries in Solaris 10
In article
<Pine.GSO.4.44.0210311512340.15342-100...@grover.rite-group.com>,
 Rich Teer <r...@rite-group.com> wrote:

I agree - the static binaries have saved me more than once too, as I
have root mounted as its own filesystem, with /usr on another.

I do not like the idea of having to mount /root and /usr on the same
filesystem.  I would concede to having shared objects rather than static
if there was a root mounted /lib with a subset of the necessary shared
objects required to boot a system in distress and repair it.  

Currently, /lib is a symlink to /usr/lib which is useless if you want to
be able to boot the system and /usr is unmountable.   I am, obviously of
the school that doesn't like the critical filesystems all mounted under
/root.

rachel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard L. Hamilton  
View profile  
 More options Nov 3 2002, 1:08 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: rlha...@smart.net (Richard L. Hamilton)
Date: Sun, 03 Nov 2002 18:03:50 -0000
Local: Sun, Nov 3 2002 1:03 pm
Subject: Re: Static System Libraries in Solaris 10
In article <grove-E2E623.18165202112...@juno.virago.org.au>,
        rachel polanskis <gr...@zeta.org.au> writes:

Seems a copy of libc.so.1 (albeit linked a bit differently?) in /etc/lib
would take care of it.  That means root needs to be about 1 MB larger.
If a few more libraries were needed, that might grow to 2 MB larger.  OTOH,
you'd get some of that back, inasmuch as dynamically linked binaries are
smaller than statically linked ones.

Under that scenario, the only greater risk I see is that a few essential
statically linked binaries might be viewed as a "smaller target" to
filesystem damage than similar dynamically linked binaries plus the
libraries they were linked to.

--
mailto:rlha...@mindwarp.smart.net  http://www.smart.net/~rlhamil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joerg Schilling  
View profile  
 More options Nov 4 2002, 4:40 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: j...@cs.tu-berlin.de (Joerg Schilling)
Date: 4 Nov 2002 09:40:42 GMT
Local: Mon, Nov 4 2002 4:40 am
Subject: Re: Static System Libraries in Solaris 10
In article <usap86hosn6...@corp.supernews.com>,
Richard L. Hamilton <rlha...@smart.net> wrote:

>Seems a copy of libc.so.1 (albeit linked a bit differently?) in /etc/lib
>would take care of it.  That means root needs to be about 1 MB larger.
>If a few more libraries were needed, that might grow to 2 MB larger.  OTOH,
>you'd get some of that back, inasmuch as dynamically linked binaries are
>smaller than statically linked ones.

The only problem may be that you will not be able to replace /usr/lib/libc.so*
if you neither have a static "cp", "mv" nor "tar".

--
EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
      j...@cs.tu-berlin.de               (uni)  If you don't have iso-8859-1
      schill...@fokus.gmd.de             (work) chars I am J"org Schilling
URL:  http://www.fokus.gmd.de/usr/schilling    ftp://ftp.fokus.gmd.de/pub/unix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Stange  
View profile  
 More options Nov 4 2002, 1:20 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Alan Stange <sta...@rentec.com>
Date: Mon, 04 Nov 2002 13:21:07 -0500
Local: Mon, Nov 4 2002 1:21 pm
Subject: Re: Static System Libraries in Solaris 10

OK.  Looks like some folks have their undies in a bundle because of the
"no static binaries" feature of Solaris ++9.

As Casper mentioned, this doesn't mean that you can't have a separate
/usr partition.  In the simplest case, the / partition has a /usr/lib
directory in it that contains a libc.so.

Do what you want at boot time, etc.   Now, mount /usr and the underlying
/usr/lib is now buried below the UFS mount.   What am I missing?

The question I have is what features are gained by this?

-- Alan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Thompson  
View profile  
 More options Nov 4 2002, 1:27 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: c...@cus.cam.ac.uk (Chris Thompson)
Date: 4 Nov 2002 18:27:24 GMT
Local: Mon, Nov 4 2002 1:27 pm
Subject: Re: Static System Libraries in Solaris 10
In article <3dc6ba4f$0$26649$724eb...@reader2.ash.ops.us.uu.net>,
Alan Stange  <sta...@rentec.com> wrote:

>OK.  Looks like some folks have their undies in a bundle because of the
>"no static binaries" feature of Solaris ++9.

>As Casper mentioned, this doesn't mean that you can't have a separate
>/usr partition.  In the simplest case, the / partition has a /usr/lib
>directory in it that contains a libc.so.

>Do what you want at boot time, etc.   Now, mount /usr and the underlying
>/usr/lib is now buried below the UFS mount.   What am I missing?

The ability to patch the root filing system versions of /usr/lib while
the system is running!

There are dynamically linked binaries in /sbin that are executable before
/usr is mounted in existing releases of Solaris. They use the shared
libraries in /etc/lib. I expect beefing up the latter is what Sun have
in mind.

Chris Thompson
Email: cet1 [at] cam.ac.uk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard L. Hamilton  
View profile  
 More options Nov 4 2002, 1:32 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: rlha...@smart.net (Richard L. Hamilton)
Date: Mon, 04 Nov 2002 18:32:28 -0000
Local: Mon, Nov 4 2002 1:32 pm
Subject: Re: Static System Libraries in Solaris 10
In article <3dc6ba4f$0$26649$724eb...@reader2.ash.ops.us.uu.net>,
        Alan Stange <sta...@rentec.com> writes:

> OK.  Looks like some folks have their undies in a bundle because of the
> "no static binaries" feature of Solaris ++9.

> As Casper mentioned, this doesn't mean that you can't have a separate
> /usr partition.  In the simplest case, the / partition has a /usr/lib
> directory in it that contains a libc.so.

> Do what you want at boot time, etc.   Now, mount /usr and the underlying
> /usr/lib is now buried below the UFS mount.   What am I missing?

> The question I have is what features are gained by this?

For the end user, not much, aside from avoiding version skew given that
patches to shared libc and to static libc and static binaries are rarely
simultaneous.  For Sun, not needing to maintain static libc and statically
linked binaries, and a bit more freedom to change internals without
worrying about what will break (as long as APIs/ABIs are kept consistent),
which in turn reduces the cost (and overhead in obsolete code) of keeping
binary compatibility.

--
mailto:rlha...@mindwarp.smart.net  http://www.smart.net/~rlhamil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard L. Hamilton  
View profile  
 More options Nov 4 2002, 1:40 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: rlha...@smart.net (Richard L. Hamilton)
Date: Mon, 04 Nov 2002 18:39:59 -0000
Local: Mon, Nov 4 2002 1:39 pm
Subject: Re: Static System Libraries in Solaris 10
In article <aq6e6c$kg...@pegasus.csx.cam.ac.uk>,
        c...@cus.cam.ac.uk (Chris Thompson) writes:

> In article <3dc6ba4f$0$26649$724eb...@reader2.ash.ops.us.uu.net>,
> Alan Stange  <sta...@rentec.com> wrote:
[...]
>>Do what you want at boot time, etc.   Now, mount /usr and the underlying
>>/usr/lib is now buried below the UFS mount.   What am I missing?

> The ability to patch the root filing system versions of /usr/lib while
> the system is running!

NFS can get at a directory hidden under a mount point.  But that's
something to keep in mind if one suspects a file is there that shouldn't
be, not a way around your point, since it's quite impractical (and
insecure, unless restricted to themselves only) to require everyone to
share /.

> There are dynamically linked binaries in /sbin that are executable before
> /usr is mounted in existing releases of Solaris. They use the shared
> libraries in /etc/lib. I expect beefing up the latter is what Sun have
> in mind.

That's what I'm guessing too.

--
mailto:rlha...@mindwarp.smart.net  http://www.smart.net/~rlhamil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casper H.S. Dik  
View profile  
 More options Nov 4 2002, 2:54 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Casper H.S. Dik <Casper....@Sun.COM>
Date: 04 Nov 2002 19:54:31 GMT
Local: Mon, Nov 4 2002 2:54 pm
Subject: Re: Static System Libraries in Solaris 10

j...@cs.tu-berlin.de (Joerg Schilling) writes:
>In article <usap86hosn6...@corp.supernews.com>,
>Richard L. Hamilton <rlha...@smart.net> wrote:
>>Seems a copy of libc.so.1 (albeit linked a bit differently?) in /etc/lib
>>would take care of it.  That means root needs to be about 1 MB larger.
>>If a few more libraries were needed, that might grow to 2 MB larger.  OTOH,
>>you'd get some of that back, inasmuch as dynamically linked binaries are
>>smaller than statically linked ones.
>The only problem may be that you will not be able to replace /usr/lib/libc.so*
>if you neither have a static "cp", "mv" nor "tar".

Sure you can.

"ln"          (ln libc.so.1 libc.so.old; ln libc.so.new libc.so.1)
"cpio"                (will do the rigth thing when overwriting a file;
                create /usr/lib/XXXXX and rename)

and then there's:

        LD_LIBRARY_PATH=/emergency/lib /emergency/lib/ld.so.1 <cmd> ...

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joerg Schilling  
View profile  
 More options Nov 4 2002, 6:46 pm
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: j...@cs.tu-berlin.de (Joerg Schilling)
Date: 4 Nov 2002 23:46:31 GMT
Local: Mon, Nov 4 2002 6:46 pm
Subject: Re: Static System Libraries in Solaris 10
In article <3dc6d077$0$46609$e4fe5...@news.xs4all.nl>,
Casper H.S. Dik  <Casper....@Sun.COM> wrote:

>>The only problem may be that you will not be able to replace /usr/lib/libc.so*
>>if you neither have a static "cp", "mv" nor "tar".

>Sure you can.

>"ln"              (ln libc.so.1 libc.so.old; ln libc.so.new libc.so.1)

Correct, I forget about this because it is new to auto remove the ln
target IIRC

>"cpio"            (will do the rigth thing when overwriting a file;
>            create /usr/lib/XXXXX and rename)

Mmmm why put effort into a command that has been removed from the POSIX
standard?

>and then there's:

>    LD_LIBRARY_PATH=/emergency/lib /emergency/lib/ld.so.1 <cmd> ...

If Sun supplies this emergency lib it looks like a nice idea.

--
EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
      j...@cs.tu-berlin.de               (uni)  If you don't have iso-8859-1
      schill...@fokus.gmd.de             (work) chars I am J"org Schilling
URL:  http://www.fokus.gmd.de/usr/schilling    ftp://ftp.fokus.gmd.de/pub/unix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roger Marquis  
View profile  
 More options Nov 5 2002, 1:33 am
Newsgroups: comp.unix.solaris, comp.sys.sun.admin, comp.sys.sun.apps, comp.sys.sun.misc
From: Roger Marquis <not-for-m...@roble.com>
Date: 5 Nov 2002 06:33:13 GMT
Local: Tues, Nov 5 2002 1:33 am
Subject: Re: Static System Libraries in Solaris 10
In comp.sys.sun.admin Richard L. Hamilton <rlha...@smart.net> wrote:

>For Sun, not needing to maintain static libc and statically
>linked binaries, and a bit more freedom to change internals without
>worrying about what will break (as long as APIs/ABIs are kept consistent),
>which in turn reduces the cost (and overhead in obsolete code) of keeping
>binary compatibility.

The cost of maintaining static binaries, both in developer and user
hours, has been well out of proportion to their usefulness for over
a decade now.  Sun is just following the lead of other Unix
distributions which work well without static binaries.

Good to see Solaris engineering looking ahead and eliminating more
legacy-only code (though I sure miss the easy to configure Openwindows
menu).

Hope the trend continues with the elimination of another needless
complexity that also causes more problems than it solves: /usr
partitions.

--
Roger Marquis
Roble Systems Consulting
http://www.roble.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 59   Newer >
« Back to Discussions « Newer topic     Older topic »