Date: Thu, 24 May 2007 00:26:58 -0400 From: Larry Rosenman <ler@lerctr.org> To: Garrett Cooper <youshi10@u.washington.edu> Cc: freebsd@alaskaparadise.com, Randy Bush <randy@psg.com>, freebsd-current@freebsd.org Subject: Re: Problems compiling some ports after upgrading to gcc 4.2.0 Message-ID: <3C18563E-2C7B-4C02-904A-FD7BBBB0D60A@lerctr.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C18563E-2C7B-4C02-904A-FD7BBBB0D60A>