Can't compile Apachie + PHP + libgd

Can't compile Apachie + PHP + libgd

Post by Le » Sun, 25 Jul 1999 04:00:00



Hi,

    I'm having a heck of a time getting apachie to compile with PHP and
libgd...  Has anyone seen this below???

Thanks!

You can email me directly at:

   len  at  <isdi.com>

gcc -c  -I./os/unix -I./include   -DLINUX=2 -DUSE_HSREGEX `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=2 -DUSE_HSREGEX `./apaci` buildmark.c
gcc  -DLINUX=2 -DUSE_HSREGEX `./apaci`    \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a  -Wl,-rpath,/usr/local/lib/mysql -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3  -lpcr
modules/php3/libphp3.a(gd.o): In function `php3_imagecreatefromgif':
/usr/src/php-3.0.11/functions/gd.c:461: undefined reference to `gdImageCreateFromGif'
modules/php3/libphp3.a(gd.o): In function `php3_imagegif':
/usr/src/php-3.0.11/functions/gd.c:820: undefined reference to `gdImageGif'
/usr/src/php-3.0.11/functions/gd.c:838: undefined reference to `gdImageGif'
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/src/apache_1.3.6/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.6'
make: *** [build] Error 2

 
 
 

Can't compile Apachie + PHP + libgd

Post by Rasmus Lerdo » Sun, 25 Jul 1999 04:00:00



>/usr/src/php-3.0.11/functions/gd.c:461: undefined reference to `gdImageCreateFromGif'
>modules/php3/libphp3.a(gd.o): In function `php3_imagegif':
>/usr/src/php-3.0.11/functions/gd.c:820: undefined reference to `gdImageGif'
>/usr/src/php-3.0.11/functions/gd.c:838: undefined reference to `gdImageGif'
>make[2]: *** [target_static] Error 1
>make[2]: Leaving directory `/usr/src/apache_1.3.6/src'
>make[1]: *** [build-std] Error 2
>make[1]: Leaving directory `/usr/src/apache_1.3.6'
>make: *** [build] Error 2

Without seeing your PHP ./configure line there isn't much I can do.  Make sure
you use something like --with-gd=/path/to/gd

And under /path/to/gd you should have lib/ and include/ dirs containing the
.a and .h files respectively.

-Rasmus

 
 
 

Can't compile Apachie + PHP + libgd

Post by roo » Thu, 29 Jul 1999 04:00:00


The problem is that you are linking php with gd version 1.6.2 or higher.
The gd library as of version 1.6.2 no longer produces GIF files. The
author has moved over to PNG image format.

That is why gcc complains about no reference to gdImageGif. The version
of gd you are using does not have a gdImageGif, it has gdImagePng.

Your two choices are get an old copy of gd1.6.1 (Dont go the gd site
they no longer offer it) or wait til php is modified to use the newer
gd library.

You could always patch php yourself ;)

Garth Nielsen
Sys Admin, The Academy of Natural Sciences

 
 
 

Can't compile Apachie + PHP + libgd

Post by Rasmus Lerdo » Thu, 29 Jul 1999 04:00:00



Quote:>The problem is that you are linking php with gd version 1.6.2 or higher.
>The gd library as of version 1.6.2 no longer produces GIF files. The
>author has moved over to PNG image format.

>That is why gcc complains about no reference to gdImageGif. The version
>of gd you are using does not have a gdImageGif, it has gdImagePng.

>Your two choices are get an old copy of gd1.6.1 (Dont go the gd site
>they no longer offer it) or wait til php is modified to use the newer
>gd library.

PHP-3.0.12 will be available this week and the required GD changes are in
there to support this new-style gd library.

-Rasmus

 
 
 

1. Libgd compilation with PHP

I am trying to compile libgd with PHP 4.0.6 on Solaris 2.8 Sparc, had
used libpng for PNG support in gd.

Compilation ran fine without any trouble.

However when I user ImagePNG function I get the error message

"PHP Warning : ImagePNG: No PNG Support in this PHP build in .... "

this is a test program supplied gd

Would appreciate any help.

Thanks & regards,
Lakshmi

2. Libraries can't be found - Red Hat 2.1

3. libgd.so.1 and php mod?

4. A CPU cooler for Linux?

5. Help: 'Malformed option' when trying to compile with PHP/FI as module.

6. Password Synchro

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

8. How to make a shared library?

9. It's not bad canned meat...

10. Need a binary of libgd compiled with support for TTF fonts, real BADLY

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

12. Apache won't compile with PHP