Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254307 - stabilize dev-lang/ruby-1.8.6_p287-r4 (was: dev-lang/ruby-1.8.6 / dev-libs/openssl-0.9.8j - openssl_missing.h:123: error: conflicting types for 'BN_rand_range')
Summary: stabilize dev-lang/ruby-1.8.6_p287-r4 (was: dev-lang/ruby-1.8.6 / dev-libs/op...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: STABLEREQ
: 254919 255159 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-09 12:47 UTC by Alex Legler (RETIRED)
Modified: 2009-02-10 18:11 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Legler (RETIRED) archtester gentoo-dev Security 2009-01-09 12:47:18 UTC
Splitting off two reports from #234877:

make[1]: Entering directory
`/var/tmp/portage/dev-lang/ruby-1.8.6_p287-r10/work/ruby-1.8.6-p287/ext/openssl'
x86_64-pc-linux-gnu-gcc -I. -I../.. -I../../. -I../.././ext/openssl
-DRUBY_EXTCONF_H=\"extconf.h\"   -fPIC -march=nocona -mtune=cor$
In file included from ossl.h:197,
                 from ossl_ns_spki.c:11:
openssl_missing.h:123: error: conflicting types for 'BN_rand_range'
/usr/include/openssl/bn.h:411: error: previous declaration of 'BN_rand_range'
was here
openssl_missing.h:124: error: conflicting types for 'BN_pseudo_rand_range'
/usr/include/openssl/bn.h:412: error: previous declaration of
'BN_pseudo_rand_range' was here
ossl_ns_spki.c: In function 'ossl_spki_initialize':
ossl_ns_spki.c:67: warning: passing argument 2 of 'd2i_NETSCAPE_SPKI' from
incompatible pointer type

1.8.7 seems to be able to build fine against this particular OpenSSL version. Will do some investigation later this evening.
Comment 1 Sven E. 2009-01-09 21:54:10 UTC
The interesting part here is, that the fiel is called: openssl_missing.h.

It does include some additional prototypes missing in older openssl version. Now, the Problem is, that:

1.) The header gets included unconditionally
2.) Most of the prototypes are unconditional

I currently assume that the headers of the newer openssl version now include some additional prototypes and thus collide, because the ruby package did not 'expect' for this to happen.

I didn't have a chance to diff the openssl.h files yet though and investigate this further.
Comment 2 Hans de Graaff gentoo-dev Security 2009-01-11 18:23:50 UTC
This should now be fixed in ruby-1.8.6_p287-r11. I have also added a fixed version of ruby-1.8.6_p287-r4 using the same patch for those arches that have not re-added their keyword yet due to the change from ruby-config to eselect.

I'm leaving this bug open for now since this problem also affects current stable versions. My intention is to file a stabilization bug tomorrow or the day after for ruby-1.8.6-p287-r4.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-01-13 10:49:45 UTC
Hans, probably it's time to stabilize ruby-1.8.6-p287-r4. I've checked it and it works here.
Comment 4 Hans de Graaff gentoo-dev Security 2009-01-13 11:13:52 UTC
(In reply to comment #3)
> Hans, probably it's time to stabilize ruby-1.8.6-p287-r4. I've checked it and
> it works here.

Agreed. Arches, please stabilize dev-lang/ruby-1.8.6_p287-r4. The recent stabilization of openssl-0.8.9j is breaking compilation of the currently stable ruby 1.8.6_p287-r1. The -r4 version fixes this and also contains two fixes for minor problems (in -r2 and -r3).

We'd normally wait longer before stabilization, but with the current stable releases broken it is better to stabilize this version quickly.

Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2009-01-13 12:35:57 UTC
I'm trying to figure out where -r4 came from; not clear from the ChangeLog.  I'm on -r11 right now for sparc.
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-01-13 12:46:22 UTC
(In reply to comment #5)
> I'm trying to figure out where -r4 came from; not clear from the ChangeLog. 
> I'm on -r11 right now for sparc.
> 

-r10 was split off of -r3 for testing the eselect-ruby module. -r4 is -r3 (= still with ruby-config) with the openssl fix applied.
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-14 01:14:29 UTC
*** Bug 254919 has been marked as a duplicate of this bug. ***
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-14 19:42:53 UTC
Stable for HPPA.
Comment 9 Brent Baude (RETIRED) gentoo-dev 2009-01-14 20:53:46 UTC
ppc64 stable
Comment 10 Markus Meier gentoo-dev 2009-01-15 22:38:09 UTC
amd64/x86 stable
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-16 13:30:22 UTC
*** Bug 255159 has been marked as a duplicate of this bug. ***
Comment 12 nixnut (RETIRED) gentoo-dev 2009-01-17 15:38:04 UTC
ppc stable
Comment 13 Tobias Klausmann (RETIRED) gentoo-dev 2009-01-25 15:44:10 UTC
Stable on alpha.
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2009-02-10 18:11:02 UTC
arm/ia64/s390/sh/sparc stable, closing