You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bob Foster <bo...@hotresponse.com> on 2000/11/14 01:56:10 UTC

make fails on perlio.c

Hello Folks,

I'm trying to compile mod_perl-1.24_01with apache_1.3.14 on Solaris 2.6.  Everything works OK until it hits src/modules/perl/perlio.c and then it fails with the following:

gcc -O -I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE -I/usr/local/include -I/opt/gnu/include -DMOD_PERL_VERSION=\"1.24_01\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\" -I../.. -I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE -I../../os/unix -I../../include   -DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI -I/usr/local/include -I/opt/gnu/include -DNO_DL_NEEDED `../../apaci` -c perlio.c
perlio.c:90: parse error before `Sfdisc_t'
perlio.c:90: warning: no semicolon at end of struct or union
perlio.c:92: parse error before `}'
perlio.c:92: warning: data definition has no type or storage class

And after that practically every line has an error.  I'm using gcc 2.95.2 but I got the same error with other gcc versions.

Help, please!

Thanks!

Bob Foster



Re: make fails on perlio.c

Posted by "G.W. Haywood" <ge...@www.jubileegroup.co.uk>.
Hi there,

On Mon, 13 Nov 2000, Bob Foster wrote:

> gcc -O -I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE\
> -I/usr/local/include -I/opt/gnu/include -DMOD_PERL_VERSION=\"1.24_01\"\
> -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24_01\"\
> -I../.. -I/usr/local/lib/perl5/5.00502/sun4-solaris/CORE\
> -I../../os/unix -I../../include -DSOLARIS2=260 -DMOD_PERL\
> -DUSE_PERL_SSI -I/usr/local/include -I/opt/gnu/include -DNO_DL_NEEDED\
> `../../apaci` -c perlio.c
> 
> perlio.c:90: parse error before `Sfdisc_t'
> perlio.c:90: warning: no semicolon at end of struct or union
> perlio.c:92: parse error before `}'
> perlio.c:92: warning: data definition has no type or storage class

Does that bit of your file (perlio.c) look like this?

----------------------------------------------------------------------
#ifdef USE_SFIO

typedef struct {
    Sfdisc_t     disc;   /* the sfio discipline structure */
    request_rec *r;
} Apache_t;
----------------------------------------------------------------------

If so then maybe (a header file is missing|a header file is in the
wrong place|you need to play with EXTRA_INCLUDES in src/Configuration)

73,
Ged.



Re: make fails on perlio.c

Posted by Doug MacEachern <do...@covalent.net>.
On Mon, 13 Nov 2000, Bob Foster wrote:

> Hello Folks,
> 
> I'm trying to compile mod_perl-1.24_01with apache_1.3.14 on Solaris 2.6.  Everything works OK until it hits src/modules/perl/perlio.c and then it fails with the following:
> 
> perlio.c:90: parse error before `Sfdisc_t'
> perlio.c:90: warning: no semicolon at end of struct or union
> perlio.c:92: parse error before `}'
> perlio.c:92: warning: data definition has no type or storage class

your 'perl -V' would help.  it looks like you're using a botched sfio
enabled Perl.