Gentoo Archives: gentoo-hardened

From: "P.V.Anthony" <pvantony@×××××××××××.sg>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] [Solved but]problem with Apache2::Request
Date: Fri, 03 Oct 2008 01:39:46
Message-Id: 48E577E0.5070903@singnet.com.sg
In Reply to: [gentoo-hardened] problem with Apache2::Request by "P.V.Anthony"
1 P.V.Anthony wrote:
2 > Hi,
3 >
4 > Currently just not able to get Apache2::Request to work on Gentoo
5 > hardened amd64.
6 >
7 > Did an emerge of www-apache/libapreq2-2.08-r2 and all compiled fine.
8 >
9 > Did the following test using a simple perl script as follows,
10 >
11 > perl test.pl
12 >
13 > The contents of test.pl is as follows.
14 >
15 > ----------- start ------------------
16 >
17 > use strict;
18 >
19 > use Apache2::Request;
20 >
21 > ------------ end -------------------
22 >
23 >
24 >
25 > Got the following error,
26 >
27 > ------------ start ----------------------
28 >
29 > Can't load
30 > '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/
31 > Request/Apache2/Apache2.so'
32 > for module APR::Request::Apache2: /usr/lib64/perl5/s
33 >
34 > ite_perl/5.8.8/x86_64-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
35 > un defined symbol:
36 > modperl_xs_sv2request_rec at /usr/lib64/perl5/5.8.8/x86_64-linux
37 > -thread-multi/DynaLoader.pm line 230.
38 > at
39 > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Apache2/Request.p
40 > m line 3
41 > Compilation failed in require at
42 > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-t
43 > hread-multi/Apache2/Request.pm line 3.
44 > BEGIN failed--compilation aborted at
45 > /usr/lib64/perl5/site_perl/5.8.8/x86_64-lin
46 > ux-thread-multi/Apache2/Request.pm line 3.
47 > Compilation failed in require at test.pl line 3.
48 > BEGIN failed--compilation aborted at test.pl line 3.
49 >
50 > -------------- end ----------------------
51 >
52 > Next tried the same on a not hardened machine, all compiled fine and the
53 > test.pl also worked without any error.
54 >
55 > What am I doing wrong?
56
57 Managed to solve the problem by using a different profile for gcc. Used
58 the following gcc, x86_64-pc-linux-gnu-3.4.6-vanilla.
59
60 Now the question is, is this a bug for gentoo-hardened? Should it not
61 work with gcc profile, x86_64-pc-linux-gnu-3.4.6, the hardened gcc?
62
63 Please share your comments.
64
65 P.V.Anthony