From owner-freebsd-current@FreeBSD.ORG Thu May 24 04:27:02 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3C4216A421 for ; Thu, 24 May 2007 04:27:01 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) by mx1.freebsd.org (Postfix) with ESMTP id D196413C447 for ; Thu, 24 May 2007 04:27:01 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from [24.114.252.226] (port=50115 helo=[192.168.75.221]) by thebighonker.lerctr.org with esmtpa (Exim 4.67 (FreeBSD)) (envelope-from ) id 1Hr4ug-000C27-6I; Wed, 23 May 2007 23:26:59 -0500 In-Reply-To: <4655122E.3060903@u.washington.edu> References: <4654A1CD.2030509@gwdg.de> <4654B332.6000003@psg.com> <200705231351.32729.freebsd@alaskaparadise.com> <4655122E.3060903@u.washington.edu> Mime-Version: 1.0 (Apple Message framework v752.2) Message-Id: <3C18563E-2C7B-4C02-904A-FD7BBBB0D60A@lerctr.org> From: Larry Rosenman Date: Thu, 24 May 2007 00:26:58 -0400 To: Garrett Cooper X-Mailer: Apple Mail (2.752.2) X-Spam-Score: -4.4 (----) X-LERCTR-Spam-Score: -4.4 (----) X-Spam-Report: SpamScore (-4.4/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, DKIM_POLICY_SIGNSOME=0.001, HTML_MESSAGE=0.001 X-LERCTR-Spam-Report: SpamScore (-4.4/5.0) ALL_TRUSTED=-1.8, BAYES_00=-2.599, DKIM_POLICY_SIGNSOME=0.001, HTML_MESSAGE=0.001 DomainKey-Status: no signature Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd@alaskaparadise.com, Randy Bush , freebsd-current@freebsd.org Subject: Re: Problems compiling some ports after upgrading to gcc 4.2.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 04:27:02 -0000 On May 24, 2007, at 12:18 AM, Garrett Cooper wrote: > Beech Rintoul wrote: >> On Wednesday 23 May 2007, Randy Bush said: >>> having serious crashes when running anything using openssl in cvsup >>> of last day, most recent being May 22 18:49 gmt. >>> >>> we are wondering about diagnostics >>> >>> dsaparam.c: In function 'dsaparam_main': >>> dsaparam.c:337: warning: function called through a non-compatible >>> type dsaparam.c:337: note: if this code is reached, the program >>> will abort dsaparam.c:417: warning: function called through a >>> non-compatible type dsaparam.c:417: note: if this code is reached, >>> the program will abort dsaparam.c:436: warning: function called >>> through a non-compatible type dsaparam.c:436: note: if this code is >>> reached, the program will abort >>> >>> randy >> Apply this patch and rebuild openssl. Fixed the problem for me. >> http://people.freebsd.org/~kan/openssl-gcc42.diff >> Beech > > Is there any reason why this patch hasn't been committed yet? > It was committed yesterday. See commit from Simon Nielsen: simon 2007-05-22 20:28:19 UTC FreeBSD src repository Modified files: crypto/openssl/crypto/asn1 asn1.h crypto/openssl/crypto/ocsp ocsp.h crypto/openssl/crypto/pem pem.h Log: Fix runtime crash in OpenSSL with "Illegal instruction" by making some casts a bit less evil. This was e.g. seen when using portsnap as: Fetching snapshot tag from portsnap3.FreeBSD.org... Illegal instruction Note the patch is slightly different from kan's original patch to match style in the OpenSSL source files a bit better. Submitted by: kan Tested by: many Revision Changes Path 1.2 +783 -495 src/crypto/openssl/crypto/asn1/asn1.h 1.2 +11 -16 src/crypto/openssl/crypto/ocsp/ocsp.h 1.2 +168 -54 src/crypto/openssl/crypto/pem/pem.h -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893