It’s very rare that Apache will be compiled on the first run on a brand new server. The fact is it requires a lot of pre-requisite and if any of them is missing or version compatibility then you may have to spend a lot of time fixing those. I was working on the brand new server Linux 6.4 to install Apache 2.4.6 and encountered the following error. If you are getting a similar error, you can fix it as I did by following.

Solution

After looking into various parameters, I noticed this happens when you have apr-util lower version than 1.4.1

Verify your apr-util version. If you find a lower version, then you must install the 1.4.1 or higher Download apr-util source code from http://mirror.nus.edu.sg/apache/apr/ Extract the downloaded file

Compile and install as following By default, it will install under /usr/local/apr/bin/apu-1-config Now you can compline apache with newly installed apr-util and it should be okay. It helped me and I hope you too.

error  redefinition of ap hack apr allocator create - 59error  redefinition of ap hack apr allocator create - 49error  redefinition of ap hack apr allocator create - 28error  redefinition of ap hack apr allocator create - 44error  redefinition of ap hack apr allocator create - 54error  redefinition of ap hack apr allocator create - 66error  redefinition of ap hack apr allocator create - 63error  redefinition of ap hack apr allocator create - 90error  redefinition of ap hack apr allocator create - 88error  redefinition of ap hack apr allocator create - 46error  redefinition of ap hack apr allocator create - 57error  redefinition of ap hack apr allocator create - 89error  redefinition of ap hack apr allocator create - 66error  redefinition of ap hack apr allocator create - 3error  redefinition of ap hack apr allocator create - 34error  redefinition of ap hack apr allocator create - 18error  redefinition of ap hack apr allocator create - 2error  redefinition of ap hack apr allocator create - 88error  redefinition of ap hack apr allocator create - 91error  redefinition of ap hack apr allocator create - 13error  redefinition of ap hack apr allocator create - 6error  redefinition of ap hack apr allocator create - 42error  redefinition of ap hack apr allocator create - 18