Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade



Hi,

On Sun, May 20, 2007 at 02:27:22AM -0400, Alexander Kabaev wrote:
there were several reports of OpenSSL being broken when compiled with
GCC 4.2. It turns out OpenSSL uses function casting feature that was
aggressively de-supported by GCC 4.2 and GCC goes as far as inserting
invalid instructions ON PURPOSE to discourage the practice.

Consequently, OpenSSL need the patch similar to attached one to work.
Just in case mailing list will eat the attachment, the patch can be
found at

http://people.freebsd.org/~kan/openssl-gcc42.diff

Thanks. I can confirm that the above patch fixes the openssl core
dumps (illegal instruction) I was seeing after the upgrade to gcc-4.2.

Regards,
Brix
--
Henrik Brix Andersen <henrik@xxxxxxxxxxxxxxx>

Attachment: pgpmU1dd5BLnb.pgp
Description: PGP signature



Relevant Pages

  • Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade
    ... with GCC 4.2. ... our OpenSSL maintainerare currently en-route ... best way to fix the code and to integrate the fix into OpenSSL, ... People are advised to patch their ...
    (freebsd-current)
  • Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade
    ... aggressively de-supported by GCC 4.2 and GCC goes as far as inserting ... Just in case mailing list will eat the attachment, the patch can be ... our OpenSSL maintainerare currently en-route from ... I haven't seen enough reports of this patch working to be really ...
    (freebsd-current)
  • Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade
    ... aggressively de-supported by GCC 4.2 and GCC goes as far as inserting ... Just in case mailing list will eat the attachment, the patch can be ... our OpenSSL maintainerare currently en-route from ... I haven't seen enough reports of this patch working to be really ...
    (freebsd-current)
  • Re: HEADS UP: OpenSSL problems after GCC 4.2 upgrade
    ... compiled with GCC 4.2. ... It turns out OpenSSL uses function ... OpenSSL need the patch similar to attached one to ... the best way to fix the code and to integrate the fix into ...
    (freebsd-current)
  • Problems configuring OpenSSH 3.5p1 on Sol 5.8
    ... I have installed gcc 3.2.2, OpenSSL 0.9.6g. ... uname -m = sun4u ... BusType = <unknown> ...
    (SSH)