problems building FCGI.pm

Bowen Dwelle (bowen@hotwired.com)
Tue, 18 Feb 1997 21:32:33 -0800

Message-Id: <3.0.1.32.19970218213233.00e951e4@get.hotwired.com>
Date: Tue, 18 Feb 1997 21:32:33 -0800
To: fastcgi-developers@OpenMarket.com
From: Bowen Dwelle <bowen@hotwired.com>
Subject: problems building FCGI.pm

I am trying to build the fastCGI perl module, using either perl 5.003(_0)
or perl 5.003_26 (perl 5.004b4). This is on Solaris 2.5.1. I have the
latest fastCGI distribution from www.fastcgi.com. There are two ways of
integrating FCGI described in the fcgi-perl.html in the docset: a) use
sfio, and b) use stdio. 

After much hacking, I can't get either to build successfully. sfio builds
ok by itself, but fails like this:

%[486]gossip:~/perl/FCGI-0.26% make
Makefile built with ExtUtils::MakeMaker v 5.34 Current Version is 5.39.
/usr/people/bowen/perl5/bin/perl -I/usr/people/bowen/perl/perl5.003_26/lib
-I/usr/people/bowen/perl/perl5.003_26/lib
/usr/people/bowen/perl/perl5.003_26/lib/ExtUtils/xsubpp  -typemap
/usr/people/bowen/perl/perl5.003_26/lib/ExtUtils/typemap FCGI.xs >FCGI.tc
&& mv FCGI.tc FCGI.c
Please specify prototyping behavior for FCGI.xs (see perlxs manual)
gcc -c  -I/usr/people/bowen/perl/sfio/include -O    -DVERSION=\"0.26\"
-DXS_VERSION=\"0.26\" -fpic -I/usr/people/bowen/perl/perl5.003_26  FCGI.c
FCGI.xs:20: parse error before `Sfdisc_t'
FCGI.xs:20: warning: no semicolon at end of struct or union
FCGI.xs:22: warning: data definition has no type or storage class
FCGI.xs:23: parse error before `}'
FCGI.xs:27: parse error before `Sfio_t'
FCGI.xs:27: warning: data definition has no type or storage class
FCGI.xs:28: parse error before `*'
FCGI.xs:28: conflicting types for `Perl_buf'
/usr/people/bowen/perl/perl5.003_26/perl.h:1329: previous declaration of
`Perl_buf'
FCGI.xs:28: warning: data definition has no type or storage class
FCGI.xs:30: parse error before `*'
FCGI.xs:30: warning: data definition has no type or storage class
FCGI.xs:31: parse error before `{'
FCGI.xs:37: parse error before `Sfio_t'
FCGI.xs:37: warning: data definition has no type or storage class
FCGI.xs:38: parse error before `*'
FCGI.xs:38: warning: data definition has no type or storage class
FCGI.xs:40: parse error before `*'
FCGI.xs:40: warning: data definition has no type or storage class
FCGI.xs:41: parse error before `{'
FCGI.xs: In function `sfdcnewfcgi':
FCGI.xs:49: invalid operands to binary *
FCGI.xs:51: parse error before `)'
FCGI.xs:51: parse error before `)'
FCGI.xs:52: `Sfdisc_t' undeclared (first use this function)
FCGI.xs:52: (Each undeclared identifier is reported only once
FCGI.xs:52: for each function it appears in.)
FCGI.xs:52: parse error before `)'
FCGI.xs:54: request for member `disc' in something not a structure or union
FCGI.xs:54: `Sfexcept_f' undeclared (first use this function)
FCGI.xs:55: request for member `disc' in something not a structure or union
FCGI.xs:55: `Sfseek_f' undeclared (first use this function)
FCGI.xs:56: request for member `disc' in something not a structure or union
FCGI.xs:56: `sffcgiread' undeclared (first use this function)
FCGI.xs:57: request for member `disc' in something not a structure or union
FCGI.xs:57: `sffcgiwrite' undeclared (first use this function)
FCGI.xs:58: request for member `stream' in something not a structure or union
FCGI.xs:59: parse error before `)'
FCGI.xs: At top level:
FCGI.xs:62: parse error before `*'
FCGI.xs:64: parse error before `Sfdisc_t'
FCGI.xs:64: warning: data definition has no type or storage class
FCGI.xs:65: parse error before `{'
FCGI.xs: In function `FCGI_Accept':
FCGI.xs:93: `SF_POPDISC' undeclared (first use this function)
FCGI.xs: In function `FCGI_Finish':
FCGI.xs:120: `SF_POPDISC' undeclared (first use this function)
make: *** [FCGI.o] Error 1
Exit 2
%[487]gossip:~/perl/FCGI-0.26%

when I try to make the FCGI module. 

and the stdio version fails like this:

gcc  -L/usr/people/bowen/fastcgi/devkit/libfcgi -L/usr/local/lib -o
miniperl miniperlmain.o libperl.a -lfcgi
Undefined                       first referenced
 symbol                             in file
accept
/usr/people/bowen/fastcgi/devkit/libfcgi/libfcgi.a(fcgiapp.o)
log                                 libperl.a(pp.o)
pow                                 libperl.a(pp.o)
socketpair                          libperl.a(pp_sys.o)
sqrt                                libperl.a(pp.o)
inet_addr
/usr/people/bowen/fastcgi/devkit/libfcgi/libfcgi.a(fcgiapp.o)
atan2                               libperl.a(pp.o)
exp                                 libperl.a(pp.o)
sin                                 libperl.a(pp.o)
cos                                 libperl.a(pp.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
make: *** [miniperl] Error 1
Exit 2
[262]gossip:~/perl/perl5.003%

when I try to make perl itself. 

It seems the last fastCGI-perl distribution was targeted at perl5.002,
which makes it a bit of a pain to build against 5.003, needless to say. 

We usually have _very little_ trouble building perl and various modules on
this platform... 

Any help would be greatly appreciated. 

Thx in advance.

|---- Bowen Dwelle              HotWired - Engineering --|
|-- (415) 276-8607              bowen@hotwired.com ------|