Compiling perl5.004 with Sfio?

G. Philip Reger (philr@peoplelink.com)
Tue, 20 May 1997 21:43:35 -0700

Message-Id: <33827D77.93BA88A3@peoplelink.com>
Date: Tue, 20 May 1997 21:43:35 -0700
From: "G. Philip Reger" <philr@peoplelink.com>
To: FastCGI Developers List <fastcgi-developers@OpenMarket.com>
Subject: Compiling perl5.004 with Sfio?

This is a multi-part message in MIME format.
--------------6C8CC0ADAB9FE973CAD1EB41
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I just downloaded the lastest version of perl, 5.004, so that I could
compile it with sfio.. i am doing this because I cannot compile the
fastcgi perl extension without the sfio stuff enabled.

Here are the steps I took:

1. downloaded sfio
2. compiled sfio
3. ran perl Configure script with -Duseperlio -Dusesfio.
4. told configure about sfio, and it confirmed by telling me that -lsfio
was found
5. said YES to question that asks if I want to use the perl IO
abstraction layer.
6. make depend worked fine.
7. make worked fine.
8. make install worked fine.

SO, I go to compile the fastcgi-081, and get the following error when
running perl Makefile.PL. I get the following error: 

Your perl isn't compiled with perlio/sfio support.

Ahh! Talk about frustrating! I am running on Solaris 2.5.1. Anyone have
ANY suggestions on getting the newest perl to compile with sfio support.

phil
-- 
G. Philip Reger
Mgr. Systems Operations
PeopleLink, Inc. - Connect. Communicate. Simply.
--------------6C8CC0ADAB9FE973CAD1EB41
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <owner-fastcgi-developers@OpenMarket.com>
Delivered-To: philr@peoplelink.com
Received: (qmail 17654 invoked from network); 21 May 1997 04:31:39 -0000
Received: from relay.openmarket.com (199.170.183.2)
  by mail.peoplelink.com with SMTP; 21 May 1997 04:31:39 -0000
Received: (from majordom@localhost) by relay.openmarket.com (8.6.10/8.6.6) id WAA11842 for fastcgi-developers-outgoing; Tue, 20 May 1997 22:00:26 -0400
Received: from berlin.atlantic.net (berlin.atlantic.net [204.215.255.12]) by relay.openmarket.com (8.6.10/8.6.6) with ESMTP id WAA11821 for <fastcgi-developers@OpenMarket.com>; Tue, 20 May 1997 22:00:13 -0400
Received: from rio.atlantic.net (root@rio.atlantic.net [204.215.255.3]) by berlin.atlantic.net (8.8.5/8.8.5) with ESMTP id VAA13133; Tue, 20 May 1997 21:15:40 -0400
Received: from dunamis (roy@stp-fl-002.atlantic.net [209.26.9.32]) by rio.atlantic.net (8.8.5/8.8.5) with SMTP id VAA07019; Tue, 20 May 1997 21:59:01 -0400
Message-Id: <3.0.1.32.19970520220029.00cc44e8@mail.atlantic.net>
X-Sender: roy@mail.atlantic.net
X-Mailer: Windows Eudora Light Version 3.0.1 (32)
Date: Tue, 20 May 1997 22:00:29 -0400
To: freeform <freeform@wired.com>
From: Jonathan Roy <roy@atlantic.net>
Subject: Re: apache_1.2b10/mod_fastcgi_2.0b1 problems
Cc: fastcgi-developers@OpenMarket.com, chip@atlantic.net
In-Reply-To: <Pine.BSI.3.95.970520160702.23384C-100000@get.wired.com>
References: <3.0.1.32.19970520162324.0068fd78@mail.atlantic.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-fastcgi-developers@OpenMarket.com
Precedence: bulk


 The README for 2.0 lists a number of bug fixes. Has anyone applied these
fixes to 1.4.3? Does 1.4.3 include them all? Is anyone still working on
2.0? It does startup of fastcgi processes on demand, that's cool. Too bad
it sounds very beta still. :)

  Thanks,

-Jonathan

At 04:19 PM 5/20/97 -0700, freeform wrote:
>
>
>On Tue, 20 May 1997, Jonathan Roy wrote:
>
>> 
>>   We are using 1.4.3 (I think) with Apache 1.2b10. It had one compile error
>> from Sigfunc (or similar) being redeclared (it is now in Apache's conf.h),
>> but removing the second declartion let it compile fine.
>> 
>>   Where did you find mod_fastcgi_2.0b1? 1.4.3 is still the latest version
>> according to website, on http://www.fastcgi.com/servers/apache/
>> 
>the website is months out of date i think.
>check
>http://www.fastcgi.com/servers/apache/2.0/apache-fastcgi.tar.Z
>
>but i warn you,
>i had all sorts of problems with it.
>mostly random problems with any POST requests.
>
>
>but if you do go ahead and give it a try,
>you will need to make a few changes in mod_fastcgi.c
>to fix the permission problems on the /tmp directory.
>
>
>the problem is in the CreateDynamicDirAndMbox() function.
>
>you will want to make two additions.
>one after line 2144 and one after line 2190.
>
>2144 reads:
>if(mkdir(ipcDynamicDir, S_IRWXU | S_IRGRP | S_IROTH)<0) {
>
>add:
>chown(ipcDynamicDir, uid, gid);
>
>giving you:
>if(mkdir(ipcDynamicDir, S_IRWXU | S_IRGRP | S_IROTH)<0) {
>	chown(ipcDynamicDir, uid, gid);
>	if(errno==EEXIST) {
>		/* directory exists, check permissions and stat */
>		if(WS_Access(ipcDynamicDir, NULL, R_OK | W_OK | X_OK, uid, gid)) {
>			return
>			"Need read/write/exec permission for the \"dynamic\" dir";
>		}
>
>
>2190 reads:
>close(fd);
>
>add:
>chown(mbox, uid, gid);
>
>giving you:
>	/* create mbox */
>	if((fd=creat(mbox, S_IRUSR | S_IWUSR))<0) {
>		return
>		"Unable to create mbox file in dynamic subdirectory";
>	}
>	close(fd);
>	chown(mbox, uid, gid);
>	return NULL;
>
>
>the above changes worked for me
>and allowed httpd to atleast start up.
>but again,
>i warn you,
>this may cause all sorts of problems for you site,
>especially with scripts that process the POST request.
>
>
>good luck,
>{freeform - bianca.com}
>
>

--
Jonathan Roy - roy@idle.com -- Idle Communications, Inc.
Mail rhoefer@cdmag.com to advertise with the Games Domain! 
http://www.gamesdomain.com/ or http://www.gamesdomain.co.uk/


--------------6C8CC0ADAB9FE973CAD1EB41--