Problems compiling some ports after upgrading to gcc 4.2.0

Larry Rosenman ler at lerctr.org
Thu May 24 04:27:02 UTC 2007


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 at lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893





More information about the freebsd-current mailing list