Re: Perl 5.003 + FastCGI

Rujith S. de Silva (
Thu, 08 Aug 1996 10:38:42 -0400

Message-Id: <>
Date: Thu, 08 Aug 1996 10:38:42 -0400
From: "Rujith S. de Silva" <>
Subject: Re: Perl 5.003 + FastCGI
In-Reply-To: <>

Here's my experiences with integrating Perl 5.003 with FastCGI on a
Solaris box.  The problem I faced is best summarized by the following

               (a) 5.002  --------->> (b) 5.003

                    |                      |
                    |                      |
                    |                      |
                    |                      |
                    V                      V

          (c) 5.002 + FCGI -------->> (d) 5.003 + FCGI

I had points (a), (b) and (c), and was trying to generate (d).  There
were three files I was concerned with:

(1) proto.h: as going from (a) to (c) is easy (just add three lines each
at the top and bottom), I did this to (b) to get (d).

(2) Configure: I simply copied (b) to (d) unchanged, as the differences
between (a) and (c) didn't seem significant.

(3) perl.c: the difference between (a) and (c) is a one-line bug-fix:
>       e_fp = Nullfp;
Going from (a) to (b) also does this bug-fix (among lots of other
changes).  So I simply copied (b) to (d).

Then I built Perl + FCGI in my usual manner (run Configure while
ignoring FCGI, then insert the FCGI stuff by manually editing
at the shell prompt).  Voila, it worked!  Here's the resultant

ind41 ~> perl -V
Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration:
    osname=solaris, osver=2.4, archname=sun4-solaris
    uname='sunos 5.4 generic_101945-10 sun4m sparc '
    hint=recommended, useposix=true, d_sigaction=define
    cc='gcc', optimize='-O', gccversion=2.7.2
    cppflags='-I/usr/local/omhttpd/fcgi-devel-kit/include -include
    ccflags ='-I/usr/local/omhttpd/fcgi-devel-kit/include -include
    stdchar='unsigned char', d_stdstdio=, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/omhttpd/fcgi-devel-kit/libfcgi
-L/usr/local/lib -L/opt/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/local/lib /opt/gnu/lib /lib /usr/lib
    libs=-lfcgi -lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/, so=so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/local/lib
@INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl .