Hi,
>>>>> On Sat, 11 Aug 2007 10:12:41 +0300
>>>>> Ion-Mihai Tetcu <[EMAIL PROTECTED]> said:
itetcu> On Fri, 10 Aug 2007 11:57:41 +0000 (UTC)
itetcu> Akinori MUSHA <[EMAIL PROTECTED]> wrote:
> knu 2007-08-10 11:57:41 UTC
>
> FreeBSD ports repository
>
> Modified files:
> databases/ruby-bdb Makefile distinfo pkg-plist
> Log:
> Update to version 0.6.1, which reportedly supports the DB 4.6
> series.
> Submitted by: matusita
itetcu> On 6.2-STABLE #3: Wed Jun 20 09:52:32 EEST 2007 amd64 :
itetcu> ===> ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
itetcu> ===> Patching for ruby18-bdb-0.6.1
itetcu> ===> ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
itetcu> ===> ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
itetcu> ===> ruby18-bdb-0.6.1 depends on shared library: db-4.3.0 - found
itetcu> ===> Configuring for ruby18-bdb-0.6.1
itetcu> ===> Running extconf.rb to configure
itetcu> extconf.rb: Entering directory `src'
itetcu> checking for db_version() in -ldb-4.3... yes
itetcu> checking for rb_frame_this_func()... no
itetcu> checking for rb_block_proc()... yes
itetcu> checking for rb_io_stdio_file()... no
itetcu> checking for rb_block_call()... no
itetcu> checking for Array#insert... yes
itetcu> checking for Array#values_at... yes
itetcu> creating Makefile
itetcu> extconf.rb: Leaving directory `src'
itetcu> ===> Building for ruby18-bdb-0.6.1
itetcu> cc -I. -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd6 -I.
-DHAVE_RB_BLOCK_PROC -I/usr/local/include/db43 -I/usr/local/include -fPIC -O2
-pipe -march=athlon64 -fPIC -DHAVE_RB_ARY_INSERT -DHAVE_RB_ARY_VALUES_AT -c
bdb.c
itetcu> bdb.c: In function `Init_bdb':
itetcu> bdb.c:515: error: `DB_REP_IGNORE' undeclared (first use in this
function)
itetcu> bdb.c:515: error: (Each undeclared identifier is reported only once
itetcu> bdb.c:515: error: for each function it appears in.)
itetcu> bdb.c:516: error: `DB_REP_JOIN_FAILURE' undeclared (first use in this
function)
itetcu> *** Error code 1
Though db43 has DB_REP_ISPERM, it doesn't have DB_REP_IGNORE nor
DB_REP_JOIN_FAILURE. Please try the attached patch.
Sincerely,
Index: src/bdb.c
diff -u -p src/bdb.c.orig src/bdb.c
--- src/bdb.c.orig 2007-07-29 23:33:18.000000000 +0900
+++ src/bdb.c 2007-08-13 12:34:18.000000000 +0900
@@ -512,7 +512,11 @@ Init_bdb()
#ifdef DB_REP_ISPERM
rb_define_const(bdb_mDb, "REP_ISPERM", INT2FIX(DB_REP_ISPERM));
rb_define_const(bdb_mDb, "REP_NOTPERM", INT2FIX(DB_REP_NOTPERM));
+#endif
+#ifdef DB_REP_IGNORE
rb_define_const(bdb_mDb, "REP_IGNORE", INT2FIX(DB_REP_IGNORE));
+#endif
+#ifdef DB_REP_JOIN_FAILURE
rb_define_const(bdb_mDb, "REP_JOIN_FAILURE", INT2FIX(DB_REP_JOIN_FAILURE));
#endif
rb_define_const(bdb_mDb, "EID_BROADCAST", INT2FIX(DB_EID_BROADCAST));
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
[EMAIL PROTECTED] [EMAIL PROTECTED],jp.}FreeBSD.org
http://www.imasy.org/~ume/
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"