Subject: port-alpha/5585: strip twice gives error on alpha
To: None <>
From: Charlie Root <>
List: netbsd-bugs
Date: 06/14/1998 04:26:22
>Number:         5585
>Category:       port-alpha
>Synopsis:       strip twice gives error on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 14 04:20:01 1998
>Originator:     Charlie Root
Tim Rightnour    -
>Release:        6-10-98<NetBSD-current source date>
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386

Attempted to build and install freeze.  Build went just fine.. install gave
the following error:

===>  Installing for freeze-2.5
install -c -s -o root -g wheel -m 555 freeze /usr/pkg/bin/freeze
strip: /usr/pkg/bin/freeze: section `.note': error in private data: Memory exhausted
install: stripping /usr/pkg/bin/freeze: No such file or directory
*** Error code 1

I manually compiled the freeze bin, and stripped it twice.  It gave me the
same error.  So I built a different bin:

rigel# file arc
arc: ELF 64-bit LSB executable, Alpha, version 1
rigel# strip arc
rigel# strip arc
strip: arc: section `.note': error in private data: Memory exhausted

Thats hosed.  The freeze pkg strips binaries twice.  Once during the build,
and once during the make install.  Its effectively useless for it to do so,
however, on alpha, for some reason.. it breaks badly.


Strip something twice on an alpha.
/*      $NetBSD: strip.c,v 1.19 1998/02/20 09:27:20 mycroft Exp $       */
Thats from today's sup.  It doesn't appear to have been touched in awhile.
I certainly don't know enough about ELF object formats to even look at it

The workaround is the simple: well then, don't *do* that.