Thanks for the follow-up, Joe, but that doesn't seem to be the problem. I tried:

# setsebool httpd_disable_trans 1
# make test

which failed with the same error. I don't think SELinux is even enabled on this
box:

# getsebool -a
getsebool:  SELinux is disabled

I also tried rebuilding completely after a "make clean" and got the same error.
Any other suggestions?

____________________________________________________________
Eamon Daly



----- Original Message ----- From: "Joe Orton" <[EMAIL PROTECTED]>
To: "Eamon Daly" <[EMAIL PROTECTED]>
Cc: <modperl@perl.apache.org>
Sent: Friday, January 20, 2006 7:24 AM
Subject: Re: [mp2] "make test" fails: "failed to map segment from shared object: Operation not permitted"


On Thu, Jan 19, 2006 at 09:35:30PM -0600, Eamon Daly wrote:
1. Problem Description:

Hey, all. I'm trying to build mod_perl against the stock
httpd in RedHat 4ES. The build runs without issue, but
"make test" fails immediately with the following error:

Can't load '/tmp/mod_perl-2.0.2/blib/arch/auto/ModPerl/Const/Const.so' for
module ModPerl::Const:
/tmp/mod_perl-2.0.2/blib/arch/auto/ModPerl/Const/Const.so: failed to map
segment from shared object: Operation not permitted at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at /tmp/mod_perl-2.0.2/blib/lib/Apache2/Const.pm line 17

These types of errors are caused by the SELinux policy being enforced
for /usr/sbin/httpd.  It would be simplest to temporarily disable the
part of the policy applied to httpd whilst running the test suite, by
doing:

  setsebool httpd_disable_trans 1
  make test
  setsebool httpd_disable_trans 0

Regards,

joe


Reply via email to