FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Hardened

 
 
LinkBack Thread Tools
 
Old 10-02-2008, 11:07 PM
"P.V.Anthony"
 
Default problem with Apache2::Request

Hi,

Currently just not able to get Apache2::Request to work on Gentoo
hardened amd64.

Did an emerge of www-apache/libapreq2-2.08-r2 and all compiled fine.

Did the following test using a simple perl script as follows,

perl test.pl

The contents of test.pl is as follows.

----------- start ------------------

use strict;

use Apache2::Request;

------------ end -------------------



Got the following error,

------------ start ----------------------

Can't load
'/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/
Request/Apache2/Apache2.so'
for module APR::Request::Apache2: /usr/lib64/perl5/s

ite_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
un defined symbol:
modperl_xs_sv2request_rec at /usr/lib64/perl5/5.8.8/x86_64-linux
-thread-multi/DynaLoader.pm line 230.
at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Request.p
m line 3
Compilation failed in require at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-t
hread-multi/Apache2/Request.pm line 3.
BEGIN failed--compilation aborted at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-lin
ux-thread-multi/Apache2/Request.pm line 3.
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.

-------------- end ----------------------

Next tried the same on a not hardened machine, all compiled fine and the
test.pl also worked without any error.

What am I doing wrong?

P.V.Anthony


!DSPAM:6,48e45106166231820821003!
 
Old 10-03-2008, 01:39 AM
"P.V.Anthony"
 
Default problem with Apache2::Request

P.V.Anthony wrote:
> Hi,
>
> Currently just not able to get Apache2::Request to work on Gentoo
> hardened amd64.
>
> Did an emerge of www-apache/libapreq2-2.08-r2 and all compiled fine.
>
> Did the following test using a simple perl script as follows,
>
> perl test.pl
>
> The contents of test.pl is as follows.
>
> ----------- start ------------------
>
> use strict;
>
> use Apache2::Request;
>
> ------------ end -------------------
>
>
>
> Got the following error,
>
> ------------ start ----------------------
>
> Can't load
> '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/
> Request/Apache2/Apache2.so'
> for module APR::Request::Apache2: /usr/lib64/perl5/s
>
> ite_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
> un defined symbol:
> modperl_xs_sv2request_rec at /usr/lib64/perl5/5.8.8/x86_64-linux
> -thread-multi/DynaLoader.pm line 230.
> at
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Request.p
> m line 3
> Compilation failed in require at
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-t
> hread-multi/Apache2/Request.pm line 3.
> BEGIN failed--compilation aborted at
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-lin
> ux-thread-multi/Apache2/Request.pm line 3.
> Compilation failed in require at test.pl line 3.
> BEGIN failed--compilation aborted at test.pl line 3.
>
> -------------- end ----------------------
>
> Next tried the same on a not hardened machine, all compiled fine and the
> test.pl also worked without any error.
>
> What am I doing wrong?

Managed to solve the problem by using a different profile for gcc. Used
the following gcc, x86_64-pc-linux-gnu-3.4.6-vanilla.

Now the question is, is this a bug for gentoo-hardened? Should it not
work with gcc profile, x86_64-pc-linux-gnu-3.4.6, the hardened gcc?

Please share your comments.

P.V.Anthony
 

Thread Tools




All times are GMT. The time now is 03:22 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org