Compilation of Apache Net Server supply code is at all times pleasure.
It’s uncommon for Apache to be compiled on the primary run on a model new server.
The actual fact is that loads of it’s wanted situation and if any of them are lacking or the model is suitable, you will have to spend so much of time fixing them.
I used to be engaged on the model new Linux 6.4 server to put in Apache 2.4.6 and bumped into the next error.
exports.c:1929:
error: redefinition of 'ap_hack_apr_allocator_create'
exports.c:921: word: earlier definition of 'ap_hack_apr_allocator_create' was right here exports.c:1930:
error: redefinition of 'ap_hack_apr_allocator_destroy'
exports.c:922: word: earlier definition of 'ap_hack_apr_allocator_destroy' was right here exports.c:1931:
error: redefinition of 'ap_hack_apr_allocator_alloc' exports.c:923: word: earlier definition of 'ap_hack_apr_allocator_alloc' was right here exports.c:1932:
error: redefinition of 'ap_hack_apr_allocator_free' exports.c:924: word: earlier definition of 'ap_hack_apr_allocator_free' was right here exports.c:1933:
error: redefinition of 'ap_hack_apr_allocator_owner_set'
exports.c:925: word: earlier definition of 'ap_hack_apr_allocator_owner_set' was right here exports.c:1934:
error: redefinition of 'ap_hack_apr_allocator_owner_get' exports.c:926: word: earlier definition of 'ap_hack_apr_allocator_owner_get' was right here exports.c:1935:
error: redefinition of 'ap_hack_apr_allocator_max_free_set' exports.c:927: word: earlier definition of 'ap_hack_apr_allocator_max_free_set' was right here exports.c:1937:
error: redefinition of 'ap_hack_apr_allocator_mutex_set' exports.c:929: word: earlier definition of 'ap_hack_apr_allocator_mutex_set' was right here exports.c:1938:
error: redefinition of 'ap_hack_apr_allocator_mutex_get' exports.c:930: word: earlier definition of 'ap_hack_apr_allocator_mutex_get' was right here exports.c:1944:
error: redefinition of 'ap_hack_apr_atomic_init' exports.c:936: word: earlier definition of 'ap_hack_apr_atomic_init' was right here exports.c:1945:
error: redefinition of 'ap_hack_apr_atomic_read32' exports.c:937: word: earlier definition of 'ap_hack_apr_atomic_read32' was right here exports.c:1946:
error: redefinition of 'ap_hack_apr_atomic_set32' exports.c:938: word: earlier definition of 'ap_hack_apr_atomic_set32' was right here exports.c:1947:
error: redefinition of 'ap_hack_apr_atomic_add32' exports.c:939: word: earlier definition of 'ap_hack_apr_atomic_add32' was right here exports.c:1948:
error: redefinition of 'ap_hack_apr_atomic_sub32' exports.c:940: word: earlier definition of 'ap_hack_apr_atomic_sub32' was right here exports.c:1949:
error: redefinition of 'ap_hack_apr_atomic_inc32' exports.c:941: word: earlier definition of 'ap_hack_apr_atomic_inc32' was right here exports.c:1950:
error: redefinition of 'ap_hack_apr_atomic_dec32' exports.c:942: word: earlier definition of 'ap_hack_apr_atomic_dec32' was right here exports.c:1951:
error: redefinition of 'ap_hack_apr_atomic_cas32' exports.c:943: word: earlier definition of 'ap_hack_apr_atomic_cas32' was right here exports.c:1952:
error: redefinition of 'ap_hack_apr_atomic_xchg32' exports.c:944: word: earlier definition of 'ap_hack_apr_atomic_xchg32' was right here exports.c:1953:
error: redefinition of 'ap_hack_apr_atomic_casptr' exports.c:945: word: earlier definition of 'ap_hack_apr_atomic_casptr' was right here exports.c:1954:
error: redefinition of 'ap_hack_apr_atomic_xchgptr' exports.c:946: word: earlier definition of 'ap_hack_apr_atomic_xchgptr' was right here exports.c:1960:
error: redefinition of 'ap_hack_apr_dso_load' exports.c:1085: word: earlier definition of 'ap_hack_apr_dso_load' was right here exports.c:1961:
error: redefinition of 'ap_hack_apr_dso_unload' exports.c:1086: word: earlier definition of 'ap_hack_apr_dso_unload' was right here exports.c:1962:
error: redefinition of 'ap_hack_apr_dso_sym' exports.c:1087: word: earlier definition of 'ap_hack_apr_dso_sym' was right here exports.c:1963:
error: redefinition of 'ap_hack_apr_dso_error' exports.c:1088: word: earlier definition of 'ap_hack_apr_dso_error' was right here exports.c:1969:
error: redefinition of 'ap_hack_apr_env_get' exports.c:1094: word: earlier definition of 'ap_hack_apr_env_get' was right here exports.c:1970:
error: redefinition of 'ap_hack_apr_env_set' exports.c:1095: word: earlier definition of 'ap_hack_apr_env_set' was right here exports.c:1971:
error: redefinition of 'ap_hack_apr_env_delete' exports.c:1096: word: earlier definition of 'ap_hack_apr_env_delete' was right here exports.c:1976:
error: redefinition of 'ap_hack_apr_strerror' exports.c:1101: word: earlier definition of 'ap_hack_apr_strerror' was right here export.c:1981:
error: redefinition of 'ap_hack_apr_stat' exports.c:1106: word: earlier definition of 'ap_hack_apr_stat' was right here exports.c:1982:
error: redefinition of 'ap_hack_apr_dir_open' exports.c:1107: word: earlier definition of 'ap_hack_apr_dir_open' was right here exports.c:1983:
error: redefinition of 'ap_hack_apr_dir_close' exports.c:1108: word: earlier definition of 'ap_hack_apr_dir_close' was right here
If you’re getting an identical error, you possibly can repair it like I did by doing the next.
Resolution
After taking a look at a number of parameters, I observed that that is what occurs whenever you’ve achieved that apr-util
decrease model than 1.4.1
- Examine your apr-util model. Should you discover a decrease model, you have to set up 1.4.1 or greater
- Obtain apr-util supply code from http://mirror.nus.edu.sg/apache/apr/
- Extract the downloaded file
Compile and set up as follows
./configure
make
make set up
By default it’s put in beneath /usr/native/apr/bin/apu-1-config
Now you possibly can full apache with newly put in apr-util
and it needs to be high-quality.
./configure --with-apr-util=/usr/native/apr/bin/apu-1-config
It helped me and I hope you too.