From nobody@FreeBSD.org  Sun Aug 12 12:20:44 2007
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 2265D16A418
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Aug 2007 12:20:44 +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 08F5B13C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Aug 2007 12:20:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7CCKhX1050561
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 12 Aug 2007 12:20:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l7CCKhia050560;
	Sun, 12 Aug 2007 12:20:43 GMT
	(envelope-from nobody)
Message-Id: <200708121220.l7CCKhia050560@www.freebsd.org>
Date: Sun, 12 Aug 2007 12:20:43 GMT
From: Gerard Seibert <gerard@seibercom.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Unable to build ruby18-bdb-0.6.0 (compiler error)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         115444
>Category:       ports
>Synopsis:       databases/ruby-bdb - Unable to build ruby18-bdb-0.6.0 (compiler error)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 12 12:30:01 GMT 2007
>Closed-Date:    Tue Aug 14 22:42:21 JST 2007
>Last-Modified:  Tue Aug 14 22:42:21 JST 2007
>Originator:     Gerard Seibert
>Release:        FreeBSD-6.2
>Organization:
>Environment:
FreeBSD scorpio.seibercom.net 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #0: Thu Aug  2 12:18:46 EDT 2007     gerard@scorpio.seibercom.net:/usr/obj/usr/src/sys/SCORPIO  i386

>Description:
I am unable to build the /usr/ports/databases/ruby-bdb port. I have an older version of the port installed. Using portupgrade, the build fails. A copy of the failed build log is attached.
>How-To-Repeat:
Attempt to build the port.
>Fix:
Unknown

Patch attached with submission follows:

Script started on Sun Aug 12 07:59:29 2007
--->  Upgrading 'ruby18-bdb-0.6.0' to 'ruby18-bdb-0.6.1' (databases/ruby-bdb)
--->  Building '/usr/ports/databases/ruby-bdb'
===>  Cleaning for ruby18-bdb-0.6.1
=> bdb-0.6.1.tar.gz doesn't seem to exist in /usr/ports/distfiles/ruby.
=> Attempting to fetch from ftp://moulon.inra.fr/pub/ruby/.
bdb-0.6.1.tar.gz                                0% of  297 kB    0  Bpsbdb-0.6.1.tar.gz                                5% of  297 kB   51 kBpsbdb-0.6.1.tar.gz                              100% of  297 kB  294 kBps
===>  Extracting for ruby18-bdb-0.6.1
=> MD5 Checksum OK for ruby/bdb-0.6.1.tar.gz.
=> SHA256 Checksum OK for ruby/bdb-0.6.1.tar.gz.
===>   ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
===>  Patching for ruby18-bdb-0.6.1
===>   ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
===>   ruby18-bdb-0.6.1 depends on file: /usr/local/bin/ruby18 - found
===>   ruby18-bdb-0.6.1 depends on shared library: db-4.3.0 - found
===>  Configuring for ruby18-bdb-0.6.1
===>  Running extconf.rb to configure
extconf.rb: Entering directory `src'
checking for db_version() in -ldb-4.3... yes
checking for rb_frame_this_func()... no
checking for rb_block_proc()... yes
checking for rb_io_stdio_file()... no
checking for rb_block_call()... no
checking for Array#insert... yes
checking for Array#values_at... yes
creating Makefile
extconf.rb: Leaving directory `src'
===>  Building for ruby18-bdb-0.6.1
cc -I. -I. -I/usr/local/lib/ruby/1.8/i386-freebsd6 -I. -DHAVE_RB_BLOCK_PROC -I/usr/local/include/db43 -I/usr/local/include -fPIC -ggdb3 -march=pentium2   -fPIC -DHAVE_RB_ARY_INSERT -DHAVE_RB_ARY_VALUES_AT -c bdb.c
bdb.c: In function `Init_bdb':
bdb.c:515: error: `DB_REP_IGNORE' undeclared (first use in this function)
bdb.c:515: error: (Each undeclared identifier is reported only once
bdb.c:515: error: for each function it appears in.)
bdb.c:516: error: `DB_REP_JOIN_FAILURE' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/databases/ruby-bdb/work/bdb-0.6.1/src.
*** Error code 1

Stop in /usr/ports/databases/ruby-bdb/work/bdb-0.6.1.
*** Error code 1

Stop in /usr/ports/databases/ruby-bdb.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.28217.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=ruby18-bdb-0.6.0 UPGRADE_PORT_VER=0.6.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
	! databases/ruby-bdb (ruby18-bdb-0.6.0)	(compiler error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

Script done on Sun Aug 12 07:59:56 2007


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->knu 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Aug 12 12:42:24 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Rong-En Fan <rafan@freebsd.org>
To: Gerard Seibert <gerard@seibercom.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/115444: Unable to build ruby18-bdb-0.6.0 (compiler error)
Date: Sun, 12 Aug 2007 20:57:51 +0800

 matusita@ provided me a hack:
 
 --- src/bdb.c.dist	2007-07-29 23:33:18.000000000 +0900
 +++ src/bdb.c	2007-08-12 15:01:22.000000000 +0900
 @@ -512,6 +512,8 @@
  #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));
      rb_define_const(bdb_mDb, "REP_JOIN_FAILURE", INT2FIX(DB_REP_JOIN_FAILURE));
  #endif
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Tue Aug 14 22:41:50 JST 2007 
State-Changed-Why:  
A similar fix has been applied.  Thanks! 

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