#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Veenendaal, The Netherlands
    Posts
    3
    Rep Power
    0
    I installed gd-1.8.3, jpeg-6b and zlib-1.1.3
    I configured php-4.0.1pl2 with following:
    ./configure --with-apache=../apache_1.3.12 --with-gd=../gd-1.8.3 --with-jpeg-dir=../jpeg-6b --with-zlib=/usr/local
    --with-xml --with-ftp

    make
    install

    Then I compiled apache-1.3.12 to use php as a shared modude.
    The ./configure with all the correct options works fine.
    make returns in an error:
    size of symbol gdImageColorResolve changed from 274 to 266 in gd.o.(gd.c)
    Aparently the variable gdImageColorResolve is defined two times but with different sizes.

    Does anyone have ideas on how to get rid of this error?

    It perhaps has to do with the gd.c file in php-4.0.1pl2/ext/gd directory and the gd.c file in gd-1.8.3 directory.
  2. #2
  3. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    61
    Your configuration of PHP was meant for static linking to apache, not shared object. For shared object compiling, it should look like:

    ./configure --with-apxs=/usr/local/apache/bin/apxs
    --with-gd=../gd-1.8.3 --with-jpeg-dir=../jpeg-6b --with-zlib=/usr/local --with-xml --with-ftp

    As for your GD error, I spent my counless frustrating hours with GD, Freetype, and PHP, to come up with a documented method. I'm not saying it's the only method but it works in FreeBSD, and (I think) Linux:

    I posted it in the "Image Functions" section of the PHP annotated manual. http://www.php.net/manual/ref.image.php

    Look for the post at the bottom by rick@e-possibility.com

IMN logo majestic logo threadwatch logo seochat tools logo