misc/131249: lang/ruby18 ext/openssl types conflict
Peter Vereshagin
peter at vereshagin.org
Sun Feb 1 02:50:03 PST 2009
>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 at 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:
More information about the freebsd-bugs
mailing list