From owner-freebsd-ports Thu Apr 6 02:27:34 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA20416 for ports-outgoing; Thu, 6 Apr 1995 02:27:34 -0700 Received: from dtr.com (dtr.rain.com [204.119.8.19]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA20410 for ; Thu, 6 Apr 1995 02:27:30 -0700 From: bmk@dtr.com Received: (from bmk@localhost) by dtr.com (8.6.11/8.6.9) id CAA05513; Thu, 6 Apr 1995 02:23:35 -0700 Message-Id: <199504060923.CAA05513@dtr.com> Subject: Re: Compiling Perl5 w/gcc 2.6.3 SNAP-0322 To: taob@gate.sinica.edu.tw (Brian Tao) Date: Thu, 6 Apr 1995 02:23:33 -0700 (PDT) Cc: ports@FreeBSD.org In-Reply-To: from "Brian Tao" at Apr 6, 95 03:38:44 pm Reply-To: bmk@dtr.com X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 813 Sender: ports-owner@FreeBSD.org Precedence: bulk > On Wed, 5 Apr 1995 bmk@dtr.com wrote: > > > > Someone please do - I tried compiling it using pretty much all the > > defaults and get: > > > > cc -c -O -I../.. -DLIBC="/usr/lib/libc.so.2.0" DynaLoader.c > > DynaLoader.c: In function `XS_DynaLoader_dl_error': > > DynaLoader.c:20: array subscript is not an integer > DynaLoader and the rest are optional modules to perl, as I > understand it. I tried recompiling perl5001 with gcc 2.6.3 (from the > 950322 snapshot) and something has definitely changed. You'll have to > go into the source files for each extension module (located in the > ext/ directory) and replace all occurrences of (0.) with (0). I'm in > the midst of recompiling, and everything links properly, but I have > yet to test it. This seems to work - I haven't tested it either.