Build with Apache on Linux

From: Date: Sun, 21 Jan 2001 16:06:54 +0000
Subject: Build with Apache on Linux
Groups: php.general 
Request: Send a blank email to php-general+get-35903@lists.php.net to get a copy of this message
OK, I've built Apache and PHP on Linux 50 times already. Now it's causing me problems. I've rebuilt my server, I've tried PHP 4.0.3 and PHP 4.0.4. It keeps causing me problems. I could not find libphp4.a and found on the net where someone suggested to rename libmodphp4.a to libphp4.a. During configure, I'm getting an error: /usr/bin/ld: cannot find -lmodphp4 collect2: ld returned 1 exit status It's making me insane. Attached below is a complete transcript (it's small) of the apache configure. PHP configure; make; make install appears to work perfectly, but it's not going so well with Apache. Any suggestions greatly appreciated. Thanks in advance. Chris ---> BEGIN Transcript <--- [root@gumby apache_1.3.14]# ./configure --activate-module=src/modules/php4/libphp4.a Configuring for Apache, Version 1.3.14 make + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src cd ..; gcc -DLINUX=2 -I/home/cmulcahy/transfer/php-4.0.3pl1 -I/home/cmulcahy/trans fer/php-4.0.3pl1/main -I/home/cmulcahy/transfer/php-4.0.3pl1/main -I/home/cm ulcahy/transfer/php-4.0.3pl1/Zend -I/home/cmulcahy/transfer/php-4.0.3pl1/Zen d -I/home/cmulcahy/transfer/php-4.0.3pl1/TSRM -I/home/cmulcahy/transfer/php- 4.0.3pl1/TSRM -I/home/cmulcahy/transfer/php-4.0.3pl1 -DUSE_EXPAT -I./lib/exp at-lite -DNO_DL_NEEDED ./apaci -o helpers/dummy lpers/dummy.c -rdynamic -Lmodules/php4 -L../modules/php4 -L../../modules/p hp4 -lmodphp4 -lpam -ldl -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lres olv -lm -lcrypt /usr/bin/ld: cannot find -lmodphp4 collect2: ld returned 1 exit status make: *** [dummy] Error 1 Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. ======== Error Output for sanity check ======== ============= End of Error Report ============= Aborting!

« previous php.general (#35903) next »