SUMMARY: Faulty remake of shared libc library in SUNOS4.1.2

From: Martin Wendel (martin@alba.udac.uu.se)
Date: Fri Feb 07 1992 - 01:09:03 CST


martin@alba.udac.uu.se (Martin Wendel) writes:

>The SUN provided instructions for remaking the shared libc library
>in SUNOS-4.1.2 is faulty. In fact, without adding or removing any
>object modules, just using libc_pic.a results in a libc.so that's
>unusable and yes, I followed SUN's instructions. What works with
>SUNOS-4.1.1 won't work with SUNOS-4.1.2.

It seems this topic was recently discussed on usenet. Anyway, for
those (like me) who missed it here's the solution.

First I wish to thank:
 Casper H.S. Dik
 Birger Wathne
 Mark Mann
 Mark Erikson
 Jeff Nieusma
 Matt Crawford
 Hal Pomeranz
 Daryl Campbell
for answering.

Here's Daryl's answer:

>
> We ran into the same problems whem remaking the shared libc library. Sun gave
> us this response:
>
> =============
>
> Date: Fri, 31 Jan 92 16:18:16 EST
> From: Ron.Winacott@Canada.Sun.COM (Ron Winacott - Product Support Specialist)
> Subject: Customer U Athabasca Escalation 67014 update (WO w201220036)
> Reply-To: support@Canada.Sun.COM
>
>
> Hello all,
> I have found the problem with the shlib.etc libc rebuild. The
> README file the customer has is the GOOD one and should be used. The one with
> OS 4.1.2 is missing info (again). The problem was fixed in 4.1 and 4.1.1 with
> patches 100190-xx and 100267-xx, and most of this was roled into the 4.1.2
> release. But they forgot to fix the Makefile. So If you replace the Makefile
> in /usr/lib/shlib.etc with the one below (rememder the tabs, cut& paint replaces
> then with spaces) and rebuild the libc.so (make libc.so in/usr/lib/shlib.etc)
> then all will work fine....
>
> Let me know if you have any other problems and I will check them out. I think
> this will do it, so I will placing this escalation into PENDING.
>
> Thanks,
> ronw...
>
> Here is the new Makefile :
>
> #
> # @(#)Makefile 1.1 90/10/29 SMI
> #
>
>
> OBJSORT=objsort
> AWKFILE=awkfile
>
>
> libc.so:
> ld -assert pure-text `${OBJSORT} lorder-sparc tmp` -ldl
> /bin/ls /usr/lib/libc.so.* > TMP_FILE
> mv a.out libc.so.`cat TMP_FILE | awk -f ${AWKFILE}`
> echo libc.so.`cat TMP_FILE | awk -f ${AWKFILE}` built.
>
> libcs5.so:
> ld -assert pure-text `${OBJSORT} lorder-sparc tmp` -ldl
> /bin/ls /usr/5lib/libc.so.* > TMP_FILE
> mv a.out libc.so.`cat TMP_FILE | awk -f ${AWKFILE}`
> echo libc.so.`cat TMP_FILE | awk -f ${AWKFILE}` built.
>
>
>
> Mail Time stamp = 01/31/92 16:18
>
> ------- End of Forwarded Message
>
>
> --
> Daryl Campbell daryl@cs.athabascau.ca (403)675-6379
>

-- 
______________________________________________________________ 
E-Mail:Martin.Wendel@UDAC.UU.SE ; Snail-Mail: UDAC
       Domainmaster@UU.SE                     Martin Wendel
       Postmaster@UU.SE                       Box 174
Tel:  018 - 18 77 80                          S-751 04 Uppsala
Int: +46 18 18 77 80                          SWEDEN
Fax: +46 18 51 66 00
______________________________________________________________



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:35 CDT