Errors compiling PHP and Apache

Errors compiling PHP and Apache

Post by Ala » Thu, 21 Oct 1999 04:00:00



First off, I'm running Slackware Linux 4.0 upgraded to kernel 2.2.12.

I recently compiled Apache 1.3.9 with php and everything worked fine.
I then decided to compile php with gd and zlib and I've had nothing
but problems when I try to compile php support into Apache.

I have the gd-1.7.3 and zlib-1.1.3 both installed under /usr/local
I am using the following command to configure php.
./configure --with-shared-apache=../apache_1.3.9 \
--with-zlib=/usr/local --with-gd=/usr/local

php compiles just fine and I then run make install and cd to the
apache dir. I then run the following in the apache directory...
./configure --prefix=/www \
--activate-module=src/modules/php3/libphp3.a \
--enable-shared=max

but when I run make I get the followiing errors

gcc -rpath /usr/local/lib -shared -o libphp3.so mod_php3.so-o
libmodphp3-so.a  -Wl,-rpath,/usr/local/lib  -L/usr/local/lib -lgd
-L/usr/local/lib -lz        -lm -ldl   -lm -lgdbm -ldl
gcc: unrecognized option `-rpath'
/usr/local/lib: file not recognized: Is a directory
make[4]: *** [libphp3.so] Error 1
make[3]: *** [all] Error 1

So then I thought I'd install gd and zlib directly under /usr but then
I get the following  errors when compiling apache!!!  I'm assuming the
above errors have something to do with an improper path (any ideas how
to fix that one?) but the following one is something more serious than
that I think. :) Any ideas what I need to do to fix this and has
anyone else encountered this problem? Thanks for any assistance!

===> src/modules/php3
gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DUSE_HSREGEX
-DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE
mod_php3.c && mv mod_php3.o mod_php3.so-o
rm -f libphp3.so
gcc -shared -o libphp3.so mod_php3.so-o libmodphp3-so.a  -lgd
-lz        -lm -ldl   -lm -lgdbm -ldl
/usr/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x2c0): multiple definition of `gdImageColorResolve'
libmodphp3-so.a(gd.o):/var/tmp/php-3.0.12/functions/gd.c:291: first
defined here
/usr/i486-linux/bin/ld: Warning: size of symbol `gdImageColorResolve'
changed from 237 to 229 in gd.o
make[4]: *** [libphp3.so] Error 1

 
 
 

Errors compiling PHP and Apache

Post by myrddi.. » Thu, 11 Nov 1999 04:00:00


I am getting this message as well when trying to
compile PHP as a DSO using APXS.

I will let you know if I figure it out.

Quote:> /usr/i486-linux/bin/ld: Warning: size of symbol

`gdImageColorResolve'

Quote:> changed from 237 to 229 in gd.o
> make[4]: *** [libphp3.so] Error 1

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Errors compiling PHP and Apache

Post by myrddi.. » Fri, 12 Nov 1999 04:00:00


I did some digging in the PHP Mailing list archives.  Seems PHP 3.0.12
is not yet compatible with gd1.7.3.  Rasmus is working on getting PHP
3.0.13 soon (next week or two??).  GD 1.5 and earlier are reported to
work.  Of course if you don't already have gd 1.5 or earlier you may be
S.O.L since you can't get them from the developer anymore do to the
whole Unisys GIF licensing thing.



Quote:> First off, I'm running Slackware Linux 4.0 upgraded to kernel 2.2.12.

> I recently compiled Apache 1.3.9 with php and everything worked fine.
> I then decided to compile php with gd and zlib and I've had nothing
> but problems when I try to compile php support into Apache.

> I have the gd-1.7.3 and zlib-1.1.3 both installed under /usr/local
> I am using the following command to configure php.
> ./configure --with-shared-apache=../apache_1.3.9 \
> --with-zlib=/usr/local --with-gd=/usr/local

> php compiles just fine and I then run make install and cd to the
> apache dir. I then run the following in the apache directory...
> ./configure --prefix=/www \
> --activate-module=src/modules/php3/libphp3.a \
> --enable-shared=max

> but when I run make I get the followiing errors

> gcc -rpath /usr/local/lib -shared -o libphp3.so mod_php3.so-o
> libmodphp3-so.a  -Wl,-rpath,/usr/local/lib  -L/usr/local/lib -lgd
> -L/usr/local/lib -lz        -lm -ldl   -lm -lgdbm -ldl
> gcc: unrecognized option `-rpath'
> /usr/local/lib: file not recognized: Is a directory
> make[4]: *** [libphp3.so] Error 1
> make[3]: *** [all] Error 1

> So then I thought I'd install gd and zlib directly under /usr but then
> I get the following  errors when compiling apache!!!  I'm assuming the
> above errors have something to do with an improper path (any ideas how
> to fix that one?) but the following one is something more serious than
> that I think. :) Any ideas what I need to do to fix this and has
> anyone else encountered this problem? Thanks for any assistance!

> ===> src/modules/php3
> gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DUSE_HSREGEX
> -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE
> mod_php3.c && mv mod_php3.o mod_php3.so-o
> rm -f libphp3.so
> gcc -shared -o libphp3.so mod_php3.so-o libmodphp3-so.a  -lgd
> -lz        -lm -ldl   -lm -lgdbm -ldl
> /usr/lib/libgd.a(gd.o): In function `gdImageColorResolve':
> gd.o(.text+0x2c0): multiple definition of `gdImageColorResolve'
> libmodphp3-so.a(gd.o):/var/tmp/php-3.0.12/functions/gd.c:291: first
> defined here
> /usr/i486-linux/bin/ld: Warning: size of symbol `gdImageColorResolve'
> changed from 237 to 229 in gd.o
> make[4]: *** [libphp3.so] Error 1

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Errors compiling PHP and Apache

Post by Rasmus Lerdo » Sat, 13 Nov 1999 04:00:00



>I did some digging in the PHP Mailing list archives.  Seems PHP 3.0.12
>is not yet compatible with gd1.7.3.  Rasmus is working on getting PHP
>3.0.13 soon (next week or two??).  GD 1.5 and earlier are reported to
>work.  Of course if you don't already have gd 1.5 or earlier you may be
>S.O.L since you can't get them from the developer anymore do to the
>whole Unisys GIF licensing thing.

I am a touch busy with other things, but you can always grab a snapshot
of the current code from http://rsync.php.net

PHP 3.0.13 should be out no later than Monday.

And, not that I advocate this, you could always type gd-1.3 into
http://ftpsearch.lycos.com

It isn't exactly difficult to find.

-Rasmus

 
 
 

1. Apache and PHP as module error on compile.

I'm getting the following error when I try to compile Apache with PHP as
a module.  I completed this once before without errors, but I have
installed alot of other software since then, as was wondering if anyone
knows what the problem is?  TIA.

cp libmodphp3.a libphp3.a
ar r libphp3.a mod_php3.o
ranlib libphp3.a
<=== src/modules/php3
<=== src/modules
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_HSREGEX
-DUSE_EXPAT -I./lib/expat-lite `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DSOLARIS2=270 -DUSE_HSREGEX
-DUSE_EXPAT -I./lib/expat-lite `./apaci` buildmark.c
gcc  -DSOLARIS2=270 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
`./apaci`    \
      -o httpd buildmark.o modules.o modules/php3/libphp3.a
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a
ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a
-R/usr/local/lib/mysql  -lgd -L/usr/local/lib/mysql -lmysqlclient
-Lmodules/php3 -L../modules/php3 -L../../modules/php3
-lmodphp3                        -lpam -lm -ldl -lsocket -lnsl
-lresolv  -lsocket -lnsl
ld: fatal: symbol `gdImageColorResolve' is multiply defined:
        (file modules/php3/libphp3.a(gd.o) and file
/usr/local/lib/libgd.a(gd.o));
ld: fatal: File processing errors. No output written to httpd
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/tcogan/dloads/apache/apache_1.3.9/src'

make[1]: *** [build-std] Error 2

2. Connecting to a Process...

3. Apache-php-mysql compile error.

4. Line Graphics Problem

5. Compiling PHP-3.0.12 with Apache 1.3.9 - apsx error

6. MontherBoard Question

7. apache/php install - compile error

8. Apache as Proxy server..

9. php/apache installation - compile error

10. PHP/Apache/ModSSL Compile Error

11. Apache w/ PHP and SSL: w/ PHP OK - w/out PHP NOK

12. PHP Compile failing with openssl - php news group = rubbish

13. Apache Rewrite domain.com->index.php domain.org->index2.php