LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Apache2 compilation problems FC3 and FC4 (https://www.linuxquestions.org/questions/fedora-35/apache2-compilation-problems-fc3-and-fc4-361811/)

sat86 09-09-2005 12:53 PM

Apache2 compilation problems FC3 and FC4
 
I have been trying without success to compile apache2 (2.0.46 and 2.0.48) on FC3. I was sure that I had done this earlier this year though it now appears not to work. A suspicious compile-time error is this:
Code:

mpm_common.c: In function `ap_mpm_rewrite_args':
mpm_common.c:884: warning: function called through a non-compatible type
mpm_common.c:884: note: if this code is reached, the program will abort
core.c: In function `register_hooks':
core.c:4282: warning: function called through a non-compatible type
core.c:4282: note: if this code is reached, the program will abort
mod_include.c: In function `register_hooks':
mod_include.c:3572: warning: function called through a non-compatible type
mod_include.c:3572: note: if this code is reached, the program will abort
mod_include.c:3573: warning: function called through a non-compatible type
mod_include.c:3573: note: if this code is reached, the program will abort
mod_include.c:3574: warning: function called through a non-compatible type
mod_include.c:3574: note: if this code is reached, the program will abort
mod_log_config.c: In function `register_hooks':
mod_log_config.c:1421: warning: function called through a non-compatible type
mod_log_config.c:1421: note: if this code is reached, the program will abort
mod_log_config.c:1422: warning: function called through a non-compatible type
mod_log_config.c:1422: note: if this code is reached, the program will abort
mod_log_config.c:1423: warning: function called through a non-compatible type
mod_log_config.c:1423: note: if this code is reached, the program will abort

httpd reports a segmentation fault when running. Suspecting a broken library somewhere, I tried a fresh install of FC4 and the same problem occured. Debian Sarge (testing) had no problem with this, so I suspect this may be something Fedora specific.

Any help would be appreciated. My configure command was
Code:

./configure --prefix=/usr/local/apache2
though I'd tried more options to begin with.

Thanks

LLS 09-09-2005 09:39 PM

Re: Apache2 compilation problems FC3 and FC4
 
Quote:

Code:

./configure --prefix=/usr/local/apache2

This only places apache in your disired location--

make sure you su to root when compiling, "doing make and make install and when doing the configure" and see if that helps.

add
Code:

--enable-mods-shared=most
and then comment out the mods you don't need.

ShatteredArm 09-09-2005 10:03 PM

The add/remove packages interface that comes with FC4 does this without any problems at all. I tried configuring it from source, and it failed if I tried anything other than the most basic settings. I don't know what you're trying to do with it, but you might try using that interface.

sat86 09-12-2005 12:48 PM

Re: Re: Apache2 compilation problems FC3 and FC4
 
Quote:

Originally posted by LLS
This only places apache in your disired location--

make sure you su to root when compiling, "doing make and make install and when doing the configure" and see if that helps.

add
Code:

--enable-mods-shared=most
and then comment out the mods you don't need.

I had actually tried this as root from a console without much success. I will double check to make sure I tried the configure as root, but I think it was done as root anyway.

I'm aware the make install must be done as root to write the files to /usr/local, though in the past doing the configure and make as myself was never a problem...

LLS 09-13-2005 08:44 AM

How is your SELinux configured? That could also be a source of problems and make sure you have all the proper development tools installed.
If all else fails as ShatteredArm posts suggests the GUI works,
http://cit.wta.swin.edu.au/cit/subje...ling-LAMP.html
as does an rpm install.
Or you can try an install using yum
http://users.tkk.fi/~tkarvine/lamp-l...mysql-php.html


All times are GMT -5. The time now is 04:00 AM.