LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache won't compile... (https://www.linuxquestions.org/questions/linux-software-2/apache-wont-compile-137942/)

kleptophobiac 01-23-2004 05:30 PM

Apache won't compile...
 
I'm trying to use apache, ssl, and php. Here's the error I get when I make apache:

Code:

gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` gen_test_char.c
gcc  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` -L/usr/local/ssl/lib  -o gen_test_char gen_test_char.o  -Wl,-rpath,/usr/local/ssl/lib  -rdynamic -L/usr/local/ssl/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4    -rdynamic -L/usr/local/ssl/lib -lcrypt  -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcrypt -lcrypt  -lm -lcrypt  -lssl -lcrypto -lexpat
./gen_test_char >test_char.h
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` alloc.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` buff.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_config.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_core.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_log.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_main.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_protocol.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_request.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` http_vhost.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` util.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` util_date.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` util_script.c
gcc -c  -I../os/unix -I../include  -DLINUX=22 -DMOD_SSL=208116 -DEAPI -DNO_DL_NEEDED `../apaci` util_uri.c
util_uri.c: In function `ap_parse_uri_components':
util_uri.c:367: `uri_delims' undeclared (first use in this function)
util_uri.c:367: (Each undeclared identifier is reported only once
util_uri.c:367: for each function it appears in.)
make[3]: *** [util_uri.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.29/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.29'
make: *** [build] Error 2


Mega Man X 01-23-2004 05:43 PM

That's bad. Looks more like a gcc incompatibility then anything else. Perhaps you are using one version of gcc which won't work with the program that you are trying to compile. I can see that you are using Slackware 9.0 as me. Get the pre-compiled packages from www.slackware.com/getslack for Apache, ssl, php and mysql. I started learning php yesterday and everything is working in a perfect harmony with a painless installation. If you are willing to use a newer version of those packages, then you may want to use Slack 9.1 packages instead.

Side Note: I've tried to upgrade Apache, mysql and php with swaret, and they all got broken...

Regards!

kleptophobiac 01-23-2004 09:05 PM

This is actually slackware 9.1...

Mega Man X 01-23-2004 09:22 PM

Cool, then go into www.slackware/getslack, download and install swaret (if you already don't have it) then type

swaret --install apache

Or simply use the apache from there :D


All times are GMT -5. The time now is 12:23 PM.