You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by ex...@poland.com on 2000/09/13 06:09:43 UTC

/usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2546: redefinition of `union semun'

Hi all, 

I have some problems with installig mod_perl, 
environment: 
Redhat 6.1 
perl 5.005_03 (i386 from RPM)
mod_perl-1.24 (source)
apache-1.3.12 (source)

I do everything as descibed in mod_perl-xx/INSTALL.simple. It means 
# perl Makefile.PL DO_HTTPD=1 USE_APACI=1 APACHE_PREFIX=/usr/local/apache
then 
make test TEST_VERBOSE=1 and I get :

(cd ../apache_1.3.12 && make)
make[1]: Entering directory `/root/install/apache_1.3.12'
===> src
make[2]: Entering directory `/root/install/apache_1.3.12'
make[3]: Entering directory `/root/install/apache_1.3.12/src'
===> src/regex
make[4]: Nothing to be done for `all'.
<=== src/regex
===> src/os/unix
make[4]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[4]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[4]: Nothing to be done for `all'.
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
make[5]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/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_PERL_STRING_VERSION=\"mod_perl/1.24\" -DNO_PERL_DISPATCH=1 -DNO_PERL_POST_READ_REQUEST=1 -DNO_PERL_TRANS=1 -DNO_PERL_HEADER_PARSER=1 -DNO_PERL_ACCESS=1 -DNO_PERL_AUTHEN=1 -DNO_PERL_AUTHZ=1 -DNO_PERL_TYPE=1 -DNO_PERL_FIXUP=1 -DNO_PERL_LOG=1 -DNO_PERL_INIT=1 -DNO_PERL_CLEANUP=1 -DNO_PERL_STACKED_HANDLERS=1 -DNO_PERL_METHOD_HANDLERS=1 -DNO_PERL_DIRECTIVE_HANDLERS=1 -DNO_PERL_SECTIONS=1 -DNO_PERL_RESTART=1 -DNO_PERL_SSI=1  -I../../os/unix -I../../include   -DLINUX=2 -DMOD_PERL -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` -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[5]: *** [mod_perl.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/root/install/apache_1.3.12/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/root/install/apache_1.3.12'
make[1]: *** [build] Error 2

I found some docs about this problem: 
http://www.mail-archive.com/modperl%40apache.org/msg02400.html (removing rpm with perl and install it from source)
http://www.mail-archive.com/dbi-users%40isc.org/msg00351.html  (install DBI, I did it but still the same )

Have anyone any good idea?? Or similiar problem? 
I will really appreciate any help..

Regards
Michal Bialecki

 

Re: /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2546: redefinition of `union semun'

Posted by Doug MacEachern <do...@covalent.net>.
On Wed, 13 Sep 2000 expert@poland.com wrote:

> 
> Hi all, 
> 
> I have some problems with installig mod_perl, 
> environment: 
> Redhat 6.1 
> perl 5.005_03 (i386 from RPM)
> mod_perl-1.24 (source)
> apache-1.3.12 (source)
> 
> 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'
... 
> I found some docs about this problem: 
> http://www.mail-archive.com/modperl%40apache.org/msg02400.html (removing rpm with perl and install it from source)
> http://www.mail-archive.com/dbi-users%40isc.org/msg00351.html  (install DBI, I did it but still the same )
> 
> Have anyone any good idea?? Or similiar problem? 

your 'perl -V' might help.  also, make sure you start over with freshly
unpacked Apache and mod_perl trees now that your Perl has been
re-intalled.