Date: Sun, 1 Feb 2009 10:47:39 GMT From: Peter Vereshagin <peter@vereshagin.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/131249: lang/ruby18 ext/openssl types conflict Message-ID: <200902011047.n11AldH2032576@www.freebsd.org> Resent-Message-ID: <200902011050.n11Ao2Bm030309@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902011047.n11AldH2032576>