From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 1 10:50:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 194FF106568D for ; Sun, 1 Feb 2009 10:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E8D068FC46 for ; Sun, 1 Feb 2009 10:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n11Ao2Qi030311 for ; Sun, 1 Feb 2009 10:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n11Ao2Bm030309; Sun, 1 Feb 2009 10:50:02 GMT (envelope-from gnats) Resent-Date: Sun, 1 Feb 2009 10:50:02 GMT Resent-Message-Id: <200902011050.n11Ao2Bm030309@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Vereshagin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B2291065670 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/131249: lang/ruby18 ext/openssl types conflict X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 10:50:03 -0000 >Number: 131249 >Category: misc >Synopsis: lang/ruby18 ext/openssl types conflict >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 01 10:50:02 UTC 2009 >Closed-Date: >Last-Modified: >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: >Unformatted: