FCGI 0.30, Perl 5.00401 and HPUX 9
Mike Baptiste (baptiste@nortel.ca)
17 Jul 1997 13:41 EDT
Message-Id: <199707171744.NAA29834@relay.openmarket.com>
Date: 17 Jul 1997 13:41 EDT
To: fastcgi-developers@OpenMarket.com, skimo@breughel.ufsia.ac.be,
From: "Mike Baptiste" <baptiste@nortel.ca>
Subject: FCGI 0.30, Perl 5.00401 and HPUX 9
Bummer. Finally got Perl 5.004_01 to compile with sfio97 on HPUX 9 by
removing the ifndef around FILE in sfio.h. All tests pass and the new perl
w/sfio is running great on our central server here.
However, when I try to build FCGI 0.30, I get this:
/www2/tools/perl/bin/perl -I/www2/tools/perl/lib/PA-RISC1.1/5.00401
-I/www2/tools/perl/lib /www2/tools/perl/lib/ExtUtils/xsubpp -typemap
/www2/tools/perl/lib/ExtUtils/typemap FCGI.xs >FCGI.tc && mv FCGI.tc FCGI.c
Please specify prototyping behavior for FCGI.xs (see perlxs manual)
cc -c -I. -D_HPUX_SOURCE -Ae -I/usr/local/include
-I/www2/tools/perl/src/sfio97/include -O -DVERSION=\"0.30\"
-DXS_VERSION=\"0.30\" +z -I/www2/tools/perl/lib/PA-RISC1.1/5.00401/CORE
FCGI.c
cpp: "sfio.h", line 75: warning 2001: Redefinition of macro FILE.
cc: "FCGI.xs", line 58: warning 604: Pointers are not assignment-compatible.
cc: "FCGI.xs", line 59: warning 604: Pointers are not assignment-compatible.
cc: "FCGI.xs", line 171: error 1002: Unexpected character: '/'.
make: *** [FCGI.o] Error 1
The Redefinition warning is due to the problems with the FILE definition on
HPUX with sfio.
Lines 58/59 are:
sfdcnewfcgi(stream)
FCGX_Stream *stream;
{
FCGI_Disc* disc;
New(1000,disc,1,FCGI_Disc);
if (!disc) return (Sfdisc_t *)disc;
disc->disc.exceptf = (Sfexcept_f)NULL;
disc->disc.seekf = (Sfseek_f)NULL;
disc->disc.readf = sffcgiread; >>>>> Line 58 <<<<<<
disc->disc.writef = sffcgiwrite;
disc->stream = stream;
return (Sfdisc_t *)disc;
}
As for the Line 171 error:
/* add magic for future assignments */
// sv_magic(sv, sv, 'e', p, p1 - p);
/* call magic for this value ourselves */
Isn't // supposed to be a one line comment? Easy enough to fix but I want
to make sure before I yank that line.
I notice that the other folks who got FCGI w/sfio working on HPUX were on
10, but I'm stuck on 9 since our company is entrenched with cluster nodes
(not supported on 10)
Any help is greatly appreciated!
Mike Baptiste
NORTEL, Inc.
baptiste@nortel.ca