NetBSD Problem Report #9784

Received: (qmail 17395 invoked from network); 5 Apr 2000 04:54:13 -0000
Message-Id: <200004050452.VAA04633@nbwww.isc.org>
Date: Tue, 4 Apr 2000 21:52:58 -0700 (PDT)
From: mbw@netbsd.org
Reply-To: mbw@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: lang/ruby fails to build
X-Send-Pr-Version: www-1.0

>Number:         9784
>Category:       pkg
>Synopsis:       lang/ruby fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 04:55:00 +0000 2000
>Closed-Date:    Thu Nov 22 09:38:06 +0000 2001
>Last-Modified:  Thu Nov 22 09:38:06 +0000 2001
>Originator:     Michael Wolfson
>Release:        1.4.2
>Organization:
>Environment:
NetBSD fatmac 1.4.2 NetBSD 1.4.2 (FATMAC) #0: Mon Mar 20 00:36:27 EST 2000     mw@fatmac:/usr/src/sys/arch/hp300/compile/FATMAC hp300


>Description:

lang/ruby (1.4.3) from pkgsrc dated Apr 1, 2000 fails to compile:

[...]
cc -fpic -I/mnt/bigdrive/pkgsrc/lang/ruby/work/ruby-1.4.3 -I/mnt/bigdrive/pkgsrc
/lang/ruby/work/ruby-1.4.3 -O2 -fpic  -I/usr/pkg/include -DHAVE_IOCTL  -c pty.c
ld -shared -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/X11R6/lib -R/usr/X11R6/lib -o pt
y.so pty.o -lc 
/mnt/bigdrive/pkgsrc/lang/ruby/work/ruby-1.4.3/ext/socket/extconf.rb:157: [BUG] 
unknown node type 0
*** Signal 6

Stop.

>How-To-Repeat:

Using pkgsrc.tar.gz dated Apr 1, 2000
cd lang/ruby
make
>Fix:

>Release-Note:
>Audit-Trail:

From: itojun@iijlab.net
To: mbw@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9784: lang/ruby fails to build
Date: Thu, 06 Apr 2000 09:48:26 +0900

 >>Synopsis:       lang/ruby fails to build
 >lang/ruby (1.4.3) from pkgsrc dated Apr 1, 2000 fails to compile:
 >[...]
 >cc -fpic -I/mnt/bigdrive/pkgsrc/lang/ruby/work/ruby-1.4.3 -I/mnt/bigdrive/pkgsrc
 >/lang/ruby/work/ruby-1.4.3 -O2 -fpic  -I/usr/pkg/include -DHAVE_IOCTL  -c pty.c
 >ld -shared -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/X11R6/lib -R/usr/X11R6/lib -o pt
 >y.so pty.o -lc 
 >/mnt/bigdrive/pkgsrc/lang/ruby/work/ruby-1.4.3/ext/socket/extconf.rb:157: [BUG] 
 >unknown node type 0
 >*** Signal 6

 	isn't it somewhat platform specific?  on i386 it compiled just fine.

 itojun

From: Michael Wolfson <mw34@cornell.edu>
To: gnats-bugs@netbsd.org, itojun@iijlab.net
Cc:  
Subject: pkg/9784
Date: Sat, 8 Apr 2000 22:19:55 -0400

 At 1:38 PM +0900 4/6/00, itojun@iijlab.net wrote:

 :)	The error message looks to me a compiler internal error (so the
 :)	problem is in gcc side, not ruby side).  Am I correct?

 I don't know.  I ran make a second time (actually another package that
 requires ruby did), and it had no problems.  Apparently pty.o was created
 properly, but the procedure bombed out trying to do something with
 lang/ruby/work/ruby-1.4.3/ext/socket/extconf.rb

 The second make didn't find this as a problem and successfully compiled the
 rest of the package, although it took two make installs to get it
 installed.  Here's where make install bombed the first time:

 lib/cgi.rb -> /usr/pkg/lib/ruby/1.4/./cgi.rb
 chmod 0644 /usr/pkg/lib/ruby/1.4/./cgi.rb
 /mnt/bigdrive/pkgsrc/lang/ruby/work/ruby-1.4.3/lib/find.rb:13: [BUG]
 Segmentatio
 n fault
 *** Signal 6

 Stop.

 I ran a couple of the sample ruby scripts and they seemed to work as
 advertised.

 Thanks,
   -- MW


State-Changed-From-To: open->closed 
State-Changed-By: cjep 
State-Changed-When: Thu Nov 22 01:35:44 PST 2001 
State-Changed-Why:  
I spoke to the submitter Michael Wolfson. He was happy to close the PR. 
Given the fact that ruby build the second time, this seems to be thing to  
do. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.