First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 158324
Alias:
Product:
Component:
Status: RESOLVED
Resolution: LATER
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ryan Hill <dirtyepic@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
openssl-0.9.8d-gcc42.patch openssl-0.9.8d-gcc42.patch patch Ryan Hill 2006-12-16 14:59 0000 12.31 KB Details | Diff
openssl-0.9.8e-gcc42.patch openssl-0.9.8e-gcc42.patch patch Ryan Hill 2007-05-15 01:52 0000 14.94 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 158324 depends on: Show dependency tree
Bug 158324 blocks: 162167
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-12-16 14:58 0000
GCC 4.2 introduces strict enforcement preventing direct function pointer
conversions between incompatible types by generating a runtime abort[i].  This
does a great job of breaking openssl[ii].

This patch allows openssl to build and work, but is a temporary fix until
things are decided upstream[iii].

GCC 4.2 also breaks building with -g* in CFLAGS, but that's another bug.

[i] http://gcc.gnu.org/ml/gcc/2006-07/msg00037.html
[ii] http://www.mail-archive.com/openssl-dev@openssl.org/msg21938.html
[iii] http://www.mail-archive.com/openssl-dev@openssl.org/msg21945.html

------- Comment #1 From Ryan Hill 2006-12-16 14:59:32 0000 -------
Created an attachment (id=104173) [edit]
openssl-0.9.8d-gcc42.patch

------- Comment #2 From SpanKY 2006-12-16 16:09:40 0000 -------
bug me when something actually gets merged upstream ... i'm not terribly warm
to the idea of maintaining a patch in something like openssl that is full of
hacks (by design) when it hasnt been accepted in the upstream repo, especially
when the only benefiter here are gcc-4.2 users

so when it hits openssl's CVS, re-open the bug with that patch and i'll happily
merge it

------- Comment #3 From Ryan Hill 2006-12-16 16:49:23 0000 -------
good call, it looks like they're going another way.
http://cvs.openssl.org/chngview?cn=15660

------- Comment #4 From Ryan Hill 2006-12-22 12:11:15 0000 -------
(From update of attachment 104173 [edit])
this breaks kdelibs.

------- Comment #5 From genbug@piments.com 2007-01-30 15:51:54 0000 -------
that link refers to a patch from 0.9.8e to 0.9.9 , portage seems still at 8d.

Since this seems to have been dealt with upstream is this what you were waiting
for fix this bug?

?(later==now)

thx.

------- Comment #6 From genbug@piments.com 2007-02-01 23:41:01 0000 -------
ftp://ftp.openssl.org/snapshot/openssl-0.9.8-stable-SNAP-20070201.tar.gz

a hacky bit of renaming and I build this release and it fixed the invalid
conversion void (*) stuff . 

I was able to emerge lftp and htdig that where failing before on a 4.2 build
system.

would be good to have a 4.2/4.3 usable ebuild in the tree.

------- Comment #7 From SpanKY 2007-02-02 01:44:28 0000 -------
we're not putting snapshots in the tree anymore, use the overlay

------- Comment #8 From Ryan Hill 2007-02-02 22:59:32 0000 -------
(In reply to comment #5)
> Since this seems to have been dealt with upstream is this what you were waiting
> for fix this bug?
> 
> ?(later==now)

i was under the impression that wouldn't be the final solution and wanted to
wait until there was one.  plus i've just been busy with other stuff.

------- Comment #9 From Frank Groeneveld 2007-03-09 13:40:43 0000 -------
I have this problem on macos, with gcc-4.1.2. It's so weird that I have this
problem, but this patch fixes it. Might consider adding it.

------- Comment #10 From SpanKY 2007-03-09 15:56:17 0000 -------
it isnt weird if you reviewed the full history of the bug ... the patch is not
what went into upstream thus it's not going into Gentoo

------- Comment #11 From Frank Groeneveld 2007-03-09 15:57:10 0000 -------
It's weird that I have a problem with gcc-4.1.2 that is supposed to happen for
gcc-4.2 and higher.

------- Comment #12 From SpanKY 2007-03-09 19:51:34 0000 -------
so if i hadnt misread your comment then it'd make more sense ;)

i dont think it's that weird to be honest ... the OS X gcc branch has always
been known to be more than just the equivalent mainline gcc version ...

------- Comment #13 From Frank Groeneveld 2007-03-09 20:57:05 0000 -------
You couldn't know this, but I'm using mainline gcc here. Not apple's gcc
variant. But it doesn't matter, this patch has been added to openssl cvs, so in
a few weeks there will be a release with the fix. :) Sorry for the spam.

------- Comment #14 From Ryan Hill 2007-03-10 03:03:15 0000 -------
Just to clarify, this patch is _not_ what went into CVS and will break stuff. 
At this point I'm just going to wait for upstream to make a release as i feel
nowhere near confident enough in backporting these changes in something as
essential as openssl.

------- Comment #15 From Ryan Hill 2007-05-15 01:52:04 0000 -------
Created an attachment (id=119315) [edit]
openssl-0.9.8e-gcc42.patch

This is the patch I'm currently testing, credit PLD Linux.

vapier: i agree, we probably don't want to maintain this.  i'm just posting it
here to refer people to.

------- Comment #16 From SpanKY 2007-05-24 04:58:07 0000 -------
*** Bug 179600 has been marked as a duplicate of this bug. ***

------- Comment #17 From SpanKY 2007-06-22 02:26:04 0000 -------
ive added the PLD patch for gcc-4.2 users only pending a real fix from upstream

thanks Ryan

First Last Prev Next    No search results available      Search page      Enter new bug