Message-Id: <3209FBF2.2781E494@ind70.industry.net> Date: Thu, 08 Aug 1996 10:38:42 -0400 From: "Rujith S. de Silva" <email@example.com> To: firstname.lastname@example.org Subject: Re: Perl 5.003 + FastCGI In-Reply-To: <31FE9252.167EB0E7@ind70.industry.net> 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 diagram: (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 config.sh at the shell prompt). Voila, it worked! Here's the resultant configuration: ind41 ~> perl -V Summary of my perl5 (5.0 patchlevel 3 subversion 0) configuration: Platform: osname=solaris, osver=2.4, archname=sun4-solaris uname='sunos ind41.industry.net 5.4 generic_101945-10 sun4m sparc ' hint=recommended, useposix=true, d_sigaction=define Compiler: cc='gcc', optimize='-O', gccversion=2.7.2 cppflags='-I/usr/local/omhttpd/fcgi-devel-kit/include -include /usr/local/omhttpd/fcgi-devel-kit/include/fcgi_stdio.h -I/opt/gnu/include' ccflags ='-I/usr/local/omhttpd/fcgi-devel-kit/include -include /usr/local/omhttpd/fcgi-devel-kit/include/fcgi_stdio.h -I/opt/gnu/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 /usr/ccs/lib libs=-lfcgi -lsocket -lnsl -ldl -lm -lc -lcrypt libc=/lib/libc.so, 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 -L/opt/gnu/lib' @INC: /usr/local/lib/perl5/sun4-solaris/5.003 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl . Later, Rujith.