Re: make fails on perlio.c

2000-12-21 Thread Doug MacEachern

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.




make fails on perlio.c

2000-11-13 Thread Bob Foster



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.cperlio.c:90: parse error before `Sfdisc_t'perlio.c:90: warning: 
no semicolon at end of struct or unionperlio.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

2000-11-13 Thread G.W. Haywood

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: mod_perl-1.24 - Make FAILS!

2000-08-21 Thread Doug MacEachern

On Thu, 17 Aug 2000, Stephen Marriott wrote:

 /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2546: redefinition of 
 `union semun'
 
 Perl version 5.005_03 built for i386-linux (2.0.36)

this problem has been reported in the past, upgrading to a newer kernel
has cured.




mod_perl-1.24 - Make FAILS!

2000-08-17 Thread Stephen Marriott


Last few lines of make 
...
MOD_PERL mod_auth.c
cc -c  -I../../os/unix -I../../include   -DLINUX=2 -DMOD_PERL 
-DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED -D
MOD_PERL mod_setenvif.c
rm -f libstandard.a
ar cr libstandard.a mod_env.o mod_log_config.o mod_mime.o 
mod_negotiation.o mod_status.o mod_include.o mod_autoindex.o mod_dir.o
 mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o 
mod_alias.o mod_access.o mod_auth.o mod_setenvif.o
ranlib libstandard.a
=== modules/standard
=== modules/perl
cc -O2 -Dbool=char -DHAS_BOOL -I/usr/local/include 
-I/usr/lib/perl5/5.00503/i386-linux/CORE -DMOD_PERL_VERSION=\"1.24\" 
-DMOD_PE
RL_STRING_VERSION=\"mod_perl/1.24\" -DNO_PERL_METHOD_HANDLERS=1 
-DNO_PERL_DIRECTIVE_HANDLERS=1 -DNO_PERL_SECTIONS=1 -DNO_PERL_SS
I=1  -I../../os/unix -I../../include   -DLINUX=2 -DMOD_PERL 
-DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED -DMO
D_PERL -c mod_perl.c
In file included from mod_perl.h:92,
 from mod_perl.c:67:
/usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2546: redefinition of 
`union semun'
make[3]: *** [mod_perl.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/httpd_perl/apache_1.3.12/src'
make: *** [apache_httpd] Error 2


Perl version 5.005_03 built for i386-linux (2.0.36)

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
osname=linux, osvers=2.2.1-ac1, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.1-ac1 #1 smp mon feb 1
17:44:44 est 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
cc='cc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Built under linux
  Compiled at Apr  6 1999 23:34:07
  @INC:
/usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005

Any ideas?


--
Stephen Marriott - [EMAIL PROTECTED]
HiSOFT, The Old School, Greenfield, Bedford, MK45 5DE, UK
Tel: +44 1525 718181 Fax: +44 1525 713716 Freecall: 0500 223 660
http://www.hisoft.co.uk/ PGP public key on request.ICQ#:29793027
http://aist.co.uk/ http://cinema4d.co.uk/ http://speedyshop.com/
AFFILIATES NETWORK - http://www.hisoft.co.uk/cgi-bin/gp?pg=an.main





Re: make fails

1999-12-13 Thread Doug MacEachern

did you ever get this sorted out?  looks like an rpm version of Perl
maybe?  have you tried configuring/build Perl from source?

On Thu, 4 Nov 1999, Eva Neuberger wrote:

 Hallo,
 I'm trying to install mod_perl_1.21 with apache 1.36 perl 5.005_03
 and Linux Kernel 2.2.10
 
 I follow the instructions in INSTALL.apaci
 
 perl Makefile.PL APACHE_SRC=../apache_1.3.6/src DO_HTTPD=1
 PREP_HTTPD=1 USE_APACI=1 EVERYTHING=1
 
 Everything is ok, then typing make
 . 
 cc -c  -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -pipe   
 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fpic
 -I/usr/lib/perl5/5.00503/i586-linux/CORE  Leak.c 
 In file included from Leak.xs:12: 
 /usr/lib/perl5/5.00503/i586-linux/CORE/perl.h:2546: redefinition of
 `union semun' 
 make[1]: *** [Leak.o] Error 1 
 make[1]: Leaving directory`/usr/src/mod_perl-1.21/Leak' 
 make: *** [subdirs] Error 2
 
 and with
 perl Makefile.PL 
 APACHE_SRC=../apache_1.3.6/src APACHE_PREFIX=/usr/local/apache 
 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
 
 I've got
 cc -c -I../..  -I/usr/lib/perl5/5.00503/i586-linux/CORE 
 -I../../os/unix -I../../include   -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI
 -Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX
 `../../apaci` mod_include.c In file included from
 ../../modules/perl/mod_perl.h:41,
  from mod_include.c:85:
 /usr/lib/perl5/5.00503/i586-linux/CORE/perl.h:2546: redefinition of
 `union semun' 
 make[5]: *** [mod_include.o] Error 1 
 make[4]: *** [all] Error 1 
 make[3]: *** [subdirs] Error 1  
 make[3]:Leaving directory`/usr/src/apache_1.3.6/src' 
 make[2]: ***[build-std] Error 2 
 make[2]: Leaving directory`/usr/src/apache_1.3.6' 
 make[1]: ***[build] Error 2 
 make[1]: Leaving directory`/usr/src/apache_1.3.6' 
 make: *** [apaci_httpd] Error 2
 
 the same "redefinition of union semun"
 I've no idea, what's wrong.
 
 Eva Neuberger
 



make fails

1999-01-02 Thread Eva Neuberger

Hallo,
I'm trying to install mod_perl_1.21 with apache 1.36 perl 5.005_03
and Linux Kernel 2.2.10

I follow the instructions in INSTALL.apaci

perl Makefile.PL APACHE_SRC=../apache_1.3.6/src DO_HTTPD=1
PREP_HTTPD=1 USE_APACI=1 EVERYTHING=1

Everything is ok, then typing make
. 
cc -c  -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -pipe   
-DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fpic
-I/usr/lib/perl5/5.00503/i586-linux/CORE  Leak.c 
In file included from Leak.xs:12: 
/usr/lib/perl5/5.00503/i586-linux/CORE/perl.h:2546: redefinition of
`union semun' 
make[1]: *** [Leak.o] Error 1 
make[1]: Leaving directory`/usr/src/mod_perl-1.21/Leak' 
make: *** [subdirs] Error 2

and with
perl Makefile.PL 
APACHE_SRC=../apache_1.3.6/src APACHE_PREFIX=/usr/local/apache 
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

I've got
cc -c -I../..  -I/usr/lib/perl5/5.00503/i586-linux/CORE 
-I../../os/unix -I../../include   -DLINUX=2 -DMOD_PERL -DUSE_PERL_SSI
-Dbool=char -DHAS_BOOL -I/usr/local/include -DUSE_HSREGEX
`../../apaci` mod_include.c In file included from
../../modules/perl/mod_perl.h:41,
 from mod_include.c:85:
/usr/lib/perl5/5.00503/i586-linux/CORE/perl.h:2546: redefinition of
`union semun' 
make[5]: *** [mod_include.o] Error 1 
make[4]: *** [all] Error 1 
make[3]: *** [subdirs] Error 1  
make[3]:Leaving directory`/usr/src/apache_1.3.6/src' 
make[2]: ***[build-std] Error 2 
make[2]: Leaving directory`/usr/src/apache_1.3.6' 
make[1]: ***[build] Error 2 
make[1]: Leaving directory`/usr/src/apache_1.3.6' 
make: *** [apaci_httpd] Error 2

the same "redefinition of union semun"
I've no idea, what's wrong.

Eva Neuberger