Re: SYSV - C testscript works, PERL testscript doesn't

Stanley Gambarin (
Tue, 26 Aug 1997 16:50:13 -0400 (EDT)

Date: Tue, 26 Aug 1997 16:50:13 -0400 (EDT)
From: Stanley Gambarin <>
To: Alan Rykhus <>
Subject: Re: SYSV - C testscript works, PERL testscript doesn't
In-Reply-To: <>
Message-Id: <Pine.GSO.3.95q.970826164843.4827B-100000@csa>

	If you are using the Perl scripts, you must make sure that
you turn off the Perl's buffering, ($!=1) otherwise you get the message
about unterminated CGI headers.  Also, if you are doing a lot of Perl 
development, you may look into mod_perl  module.

On Tue, 26 Aug 1997, Alan Rykhus wrote:

> We've been working on installing fastcgi on a SYSV system running an
> Apache WebServer. We've been able to compile the 2.0B2 C developer's kit
> and the tiny-fcgi program works. We would like to use the
> PERL5-interpreter though as our main script is in PERL. We've installed
> PERL5.004_01 and compiled sfio97_src_unix.
> When I compile the FCGI-0.31 module I get 4 warnings. The first 2 have
> to do with type mismatches on lines 63 and 64 of FCGI.xs - I am able to
> clear these up by defining n in sffcgiread & sffcgiwrite as a size_t and
> also changing Void_t* to const Void_t* in sffcgiwrite.
> The second two warnings are 'line 295 and 305 - end-of-loop not reached'
> These I haven't been able to clear up.
> The module does compile and install.
> When the PERL test script is accessed the error_log records
> 'reason: mod_fastcgi: Unterminated CGI response headers, 0 bytes
> received from app'
> Any help or suggestions would be appreciated.
> Al Rykhus