Username Password
Bookmark and Share

WRE-Building on Gentoo 64bit Hardened


Please note that I am not a programmer nor an expert. The following insturctions are my own experience on my server. There is no gurrentee that this is correct. Since this is a wiki, I am hoping that someone who has better experience would correct any mistakes if any, then remove this disclaimer.



Please stick to 32bit until PlainBlack releases a version for 64bit.


Now for the rest of you on 64bit machines, especially on Gentoo hardened, here are some pointers.

1. Use the vanilla gcc. When I used the hardened gcc, the perl module, Apache2::Request, did not work.

To use the vanilla gcc, do the following on the command line as root,

#gcc-config -l

This will list all the types of gcc you have with a number on the end like so.

 [1] x86_64-pc-linux-gnu-3.4.6 *
 [2] x86_64-pc-linux-gnu-3.4.6-hardenednopie
 [3] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
 [4] x86_64-pc-linux-gnu-3.4.6-hardenednossp
 [5] x86_64-pc-linux-gnu-3.4.6-vanilla

The star shows the current selected gcc. In this example, the full hardened gcc is selected.

To change to the vanilla gcc do the following command for the list above.

#gcc-config -P 5

Now the gcc is set to the vanilla gcc. And follow the instructions given about activiting the gcc for the current shell. Or you may just log out and log in again. This will ensure that the new gcc is active for any compiling.

Please ensure that you are a normal user when you are compiling wre. That means you are not root.


2. For 64bit machines, all the source has to be compiled with "pic" flag. Most of the source do not need to be flaged as it is already included by default. I am just panaroid, so I included "pic" flag for everywhere I could include it.


3. Since my machine is also a 4 core Xeon, I have also included the -j5 flag to the make command so that compiling will use all the four cores. This will make the compiling much much faster.


4. If you have a lot of ram, untar the source wre into /dev/shm. Then compile it there. This will be faster because it would be doing everything in ram.


5. The modified is attached.



If you encounter an error at compiling libaprq, just do the following command. --perlmodules --awstats --wre

This would correct that error. Then you would have a working wre.0.8.5 on a Gentoo Hardened 64bit.

I am currently using this 64bit wre for about three days and all seems to be working


Keywords: 64bit gentoo

Search | Most Popular | Recent Changes | Wiki Home
© 2022 Plain Black Corporation | All Rights Reserved