Summary: | ar has troubles extracting archives | ||
---|---|---|---|
Product: | binutils | Reporter: | Niki W. Waibel <niki.waibel> |
Component: | binutils | Assignee: | unassigned |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug-binutils |
Priority: | P2 | ||
Version: | 2.19 | ||
Target Milestone: | --- | ||
Host: | i386-pc-solaris2.10 / sparc-sun-solaris2.10 | Target: | i386-pc-solaris2.10 / sparc-sun-solaris2.10 |
Build: | i386-pc-solaris2.10 / sparc-sun-solaris2.10 | Last reconfirmed: | |
Attachments: |
contains files referenced in this report
Fix binutils configure script |
Description
Niki W. Waibel
2009-03-24 14:57:27 UTC
Created attachment 3841 [details]
contains files referenced in this report
i meant to say: === "ar xv" either fails to extract archives (most cases, error message: "... is not a valid archive") on i386-pc-solaris2.10 / sparc-sun-solaris2.10; or extracts with wrong permissions and zero size on sparc-sun-solaris2.10 (but only with archives generated on sparc-sun-solaris2.10). === Created attachment 3852 [details]
Fix binutils configure script
Hi Niki, This was a nasty one. In the end I tracked the problem down to the configure script in the binutils directory which was behaving differently from the configure script in the bfd directory, with the result that the two sets of sources disagreed on the size of files that were being supported. Most notably this meant that the stat structure was a different size when being used by the bfd library to when it was being used by the binutils programs. Please try out the uploaded patch and see if the problems are solved for you. (I have included a patch to the binutils/configure file so that you do not have to run autoconf yourself). Cheers Nick nick, with your patch ar works perfectly on both platforms. thanks a lot for this quick fix! niki Subject: Bug 9992 CVSROOT: /cvs/src Module name: src Changes by: nickc@sourceware.org 2009-03-31 08:08:33 Modified files: binutils : ChangeLog configure configure.in Log message: PR 9992 * configure.in: Import Solaris specific largefile test from bfd/configure.in. * configure: Regenerate. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1448&r2=1.1449 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/configure.diff?cvsroot=src&r1=1.120&r2=1.121 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/configure.in.diff?cvsroot=src&r1=1.92&r2=1.93 Fixed. |