Libgd compilation with PHP

Libgd compilation with PHP

Post by Lakshmi Narasimh » Sat, 19 Jan 2002 02:25:35



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

 
 
 

Libgd compilation with PHP

Post by Max Dittric » Sun, 20 Jan 2002 00:55:47



> 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.

So what version of libgd are you using ?

See the output of "phpinfo()" for details or use ImageTypes() to check for
a particular format ( IMG_PNG ).

.max

 
 
 

1. Can't compile Apachie + PHP + libgd

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

2. identd

3. libgd.so.1 and php mod?

4. x86 Solaris 8 Installation Problems

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

6. SSC: Re: from the archives: another flame from greg

7. PHP and Apache compilation trouble !

8. RedHat 6.0 and GDM help?

9. failed compilation apache & php on Tru64 5.1

10. Apache PHP MySQL and mod_auth_mysql compilation error

11. code errors in php compilation

12. ./configure options explanation and behavior in general esp. PHP compilation

13. Latest PHP compilation on RH9 fails