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
