compiling apache 1.3.14 w/php 4.0.3 (longish)

Mike Rambo mrambo@lsd.k12.mi.us
Wed, 29 Nov 2000 12:46:00 -0500


Dpk wrote:
> 
> On Tue, Nov 28, 2000 at 12:39:42PM -0500, Mike Rambo wrote:
> 
>    Dpk wrote:
> 
> Try the following for the make command:
> 
> env CPPFLAGS="-I /usr/local/include" LDFLAGS="-L /usr/local/lib" make
> 
> I have never had to do it this way, could it be that you missed the
> following option for the PHP ./configure ?
> 
>    --with-apache=../apache_1.3.14
> 
> Dennis
> 

I figured out part of the problem.  The book I'm using is for
php3 so I was trying to adjust for things as I went along.
I made a wrong assumption.

The --activate-module line has to be libphp4.a and not libmodphp4.a.
As I was trying to adjust I was looking at directory contents
and wrongly concluded the libmod... filename because it already
existed in the dir.  In reality the compiler is trying to _create_
the libphp4.a file - not read an already existing file.

I now get past that area only to grind to a halt later.
Anyone want to take a shot at this error?


gcc -DLINUX=2 -I/usr/local/src/php-4.0.3pl1
-I/usr/local/src/php-4.0.3pl1/main
-I/usr/local/src/php-4.0.3pl1/main -I/usr/local/src/php-4.0.3pl1/Zend
-I/usr/local/src/php-4.0.3pl1/Zend -I/usr/local/src/php-4.0.3pl1/TSRM
-I/usr/local/src/php-4.0.3pl1/TSRM -I/usr/local/src/php-4.0.03pl1
-DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED './apaci' \
	-o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -W1,-rpath,/usr/local/mysql/lib
-W1,-rpath,/usr/local/iodbc/lib -rdynamic -L/usr/local/mysql/lib
-L/usr/local/iodbc/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -liodbc -lmysqlclient -lgd 
-lresolv
-lm -ldl -lcrypt -lnsl  -lresolv  -lm -lcrypt
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
'my_compress':
my_compress.o(.text+0x97): undefined reference to 'compress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
'my_compress_alloc':
my_compress.o(.text+0x12b): undefined reference to 'compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory '/usr/local/src/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: leaving directory '/usr/local/src/apache_1.3.14'
make: *** [build] Error 2


Looks like it whining about libmysqlclient.a to me.  I am using a
Linux binary I got from php.net.  Should I do this from source too?


-- 
Mike Rambo
mrambo@lsd.k12.mi.us