bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23133: gzip-1.7: Segmentation Fault with solarisstudio12.4 on Solari


From: Paul Eggert
Subject: bug#23133: gzip-1.7: Segmentation Fault with solarisstudio12.4 on Solaris10 x64
Date: Mon, 28 Mar 2016 16:35:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1

On 03/28/2016 02:46 AM, Kiyoshi KANAZAWA wrote:
I tried to build gzip-1.7 with solarisstudio12.4 cc, on Solaris10 x64,

and had 'Segmentation Fault' in make check.

% ./configure CC=cc CFLAGS='-m64 -g'

Thanks for reporting that. This exposed some bugs in configure.ac and lib/match.c: the configuration procedure assumes that, since cc assembles x86 instructions successfully, the x86 code will actually work when called from x86-64 code. I fixed this by installing the attached patch.

Also, since -m64 affects the preprocessor output, you need to set CPPFLAGS and/or put the -m64 into CC instead. Something like the following should work with gzip 1.7:

./configure CC='cc -m64' CFLAGS='-g' DEFS='-D NO_ASM'

(A space is required between '-D' and 'NO_ASM'.) With the patch, plain './configure CC="cc -m64" CFLAGS=-g' should also work.

Attachment: 0001-Port-to-Oracle-Solaris-Studio-12.4.patch
Description: Source code patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]