From nobody@FreeBSD.org  Sun Feb  1 10:47:40 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6B2291065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Feb 2009 10:47:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 593668FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  1 Feb 2009 10:47:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n11Ald9e032577
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 1 Feb 2009 10:47:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n11AldH2032576;
	Sun, 1 Feb 2009 10:47:39 GMT
	(envelope-from nobody)
Message-Id: <200902011047.n11AldH2032576@www.freebsd.org>
Date: Sun, 1 Feb 2009 10:47:39 GMT
From: Peter Vereshagin <peter@vereshagin.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/ruby18 ext/openssl types conflict
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131249
>Category:       ports
>Synopsis:       lang/ruby18 ext/openssl types conflict
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 01 10:50:02 UTC 2009
>Closed-Date:    Mon Apr 06 20:06:23 UTC 2009
>Last-Modified:  Mon Apr 06 20:06:23 UTC 2009
>Originator:     Peter Vereshagin
>Release:        7.1-stable
>Organization:
'
>Environment:
FreeBSD screwed.box 7.1-STABLE FreeBSD 7.1-STABLE #1: Sat Jan 10 14:27:57 SAMT 2009     toor@screwed.box:/usr/local/src/sys/i386/compile/OPER  i386
>Description:
as of January,2008 port of lang/ruby18 does not compile without patch:
===
compiling openssl
/usr/local/libexec/ccache/world-cc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I/usr/local/include -fPIC -O2 -fno-strict-aliasing -pipe   -fPIC -c ossl_pkey_rsa.c
In file included from ossl.h:198,
                 from ossl_pkey_rsa.c:14:
openssl_missing.h:123: error: conflicting types for 'BN_rand_range'
/usr/local/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/local/include/openssl/bn.h:412: error: previous declaration of 'BN_pseudo_rand_range' was here
*** Error code 1
===
where the bn.h is the regular security/openssl's header.
>How-To-Repeat:
cd /usr/ports/lang/ruby18
make clean all
>Fix:
Get to compile it without those typedefs and portupgrade works well with this, but just have no tests for openssl extension particularly.
===
--- openssl_missing.h.orig      2009-02-01 14:44:05.548724863 +0400
+++ openssl_missing.h   2009-02-01 14:44:24.731874956 +0400
@@ -120,8 +120,6 @@
 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
-int BN_rand_range(BIGNUM *r, BIGNUM *range);
-int BN_pseudo_rand_range(BIGNUM *r, BIGNUM *range);
 char *CONF_get1_default_config_file(void);
 int PEM_def_callback(char *buf, int num, int w, void *key);
===

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Sun Feb 1 12:57:49 UTC 2009 
Responsible-Changed-Why:  
Ports bug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131249 
Responsible-Changed-From-To: freebsd-ports-bugs->stas 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Feb 1 13:00:23 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131249 
State-Changed-From-To: open->feedback 
State-Changed-By: stas 
State-Changed-When: Mon Feb 9 16:09:55 UTC 2009 
State-Changed-Why:  
Request for addinitional info. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131249 

From: Stanislav Sedov <stas@FreeBSD.org>
To: Peter Vereshagin <peter@vereshagin.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/131249: lang/ruby18 ext/openssl types conflictP
Date: Mon, 9 Feb 2009 19:09:09 +0300

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 Hi!
 
 I can't reproduce this problem. And it builds on cluster for all supported
 combinations of archs/versions successfully too. Do you use stock openssl, or
 build with WITH_OPENSSL_PORT option?
 
 - -- 
 Stanislav Sedov
 ST4096-RIPE
 -----BEGIN PGP SIGNATURE-----
 
 iEYEARECAAYFAkmQVSUACgkQK/VZk+smlYGO/gCcDtaUr3xMuH/AEPVeveo0QLGg
 RzMAmQEp3zuwOkjWFZ1bvN/2hOwJq7fU
 =QgTZ
 -----END PGP SIGNATURE-----
 
 !DSPAM:49905512967001152319355!
 
 

From: Peter Vereshagin <peter@vereshagin.org>
To: Stanislav Sedov <stas@FreeBSD.org>
Cc: Peter Vereshagin <peter@vereshagin.org>, bug-followup@FreeBSD.org
Subject: Re: ports/131249: lang/ruby18 ext/openssl types conflictP
Date: Tue, 10 Feb 2009 12:42:22 +0400

 Only the security/openssl-0.9.8j is installed by dependencies. Not sure if it is a stock.
 And, no any option used on both lang/ruby18 and seurity/openssl builds.
 the /usr/src tree contains the bn.h too, but: it doesn't seem to be installed by installworld, and: it contains those typedefs too.
 Sure I tried now with that option and problem is the same.
 
 SS> I can't reproduce this problem. And it builds on cluster for all supported
 SS> combinations of archs/versions successfully too. Do you use stock openssl, or
 SS> build with WITH_OPENSSL_PORT option?
 

From: Stanislav Sedov <stas@FreeBSD.org>
To: Peter Vereshagin <peter@vereshagin.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/131249: lang/ruby18 ext/openssl types conflictP
Date: Tue, 10 Feb 2009 12:51:20 +0300

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 On Tue, 10 Feb 2009 12:42:22 +0400
 Peter Vereshagin <peter@vereshagin.org> mentioned:
 
 > 
 > Only the security/openssl-0.9.8j is installed by dependencies. Not sure if it is a stock.
 > And, no any option used on both lang/ruby18 and seurity/openssl builds.
 > the /usr/src tree contains the bn.h too, but: it doesn't seem to be installed by installworld, and: it contains those typedefs too.
 > Sure I tried now with that option and problem is the same.
 
 It seems that you have your system broken in some weird way. If your installation
 requires openssl-0.9.8j as a dependency then you have WITH_OPENSSL_PORT defines
 somewhere. On the other hand, in there's an extra patch (the same that
 you included in PR) should be applied, but it is not in your case.
 
 With stock FreeBSD openssl ruby works without any patches.
 
 Thus you should check: a) Why your ports tree requires openssl from ports but
 doesn't apply the extra patch b) What's up with your system's openssl bn.h header.
 
 - -- 
 Stanislav Sedov
 ST4096-RIPE
 -----BEGIN PGP SIGNATURE-----
 
 iEYEARECAAYFAkmRTh0ACgkQK/VZk+smlYEExQCggMtSxRvQFpWrm4Sj2+wmlPMc
 0OkAnA1o1aRQz+6OoUQSPrnYx24RNPxS
 =cmuK
 -----END PGP SIGNATURE-----
 
 !DSPAM:49914e08967001602718654!
 
 

From: Peter Vereshagin <peter@vereshagin.org>
To: Stanislav Sedov <stas@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/131249: lang/ruby18 ext/openssl types conflictP
Date: Tue, 10 Feb 2009 15:13:31 +0400

 SS> It seems that you have your system broken in some weird way. If your installation
 SS> requires openssl-0.9.8j as a dependency then you have WITH_OPENSSL_PORT defines
 SS> somewhere. On the other hand, in there's an extra patch (the same that
 SS> you included in PR) should be applied, but it is not in your case.
 SS> 
 SS> With stock FreeBSD openssl ruby works without any patches.
 SS> 
 SS> Thus you should check: a) Why your ports tree requires openssl from ports but
 SS> doesn't apply the extra patch b) What's up with your system's openssl bn.h header.
 
 The c) is: why only that port doesn't build on that weird system.
 
 I remade installworld, deleted openssl port and got it. But the installworld was fine last time, it seem to change the behavior after I install(1)'d bn.h at single by hand.
 
 And, there is no WITH_OPENSSL_PORT definitions by hand. Looks like some bsd.openssl.mk automagic.
 
 Anyway, should I have the base system's openssl absent to consider the experiment with port's openssl clear?
State-Changed-From-To: feedback->closed 
State-Changed-By: stas 
State-Changed-When: Mon Apr 6 20:06:21 UTC 2009 
State-Changed-Why:  
The proble has been resolved in private communication. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131249 
>Unformatted:
