on my compile for the GD portion, I get this error:

php_gd.h:69: warning: static declaration for gdImageColorResolve' follows non-static
gd.c:92: conflicting types for
gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory
/opt/php-4.1.1/ext/gd'
make[2]: [all-recursive] Error 1
make[2]: Leaving directory /opt/php-4.1.1/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
/opt/php-4.1.1/ext'
make:
[all-recursive] Error 1

What is Error 1, how can I fix it.

ty

    It looks like you haven't installed GD library. I think you need to install freetype2 as well.

    My short experience:

    I tried to PHP 4.1.1 & Apache 1.3.23 & MySQL with pre-installed GD library. I didn't work. I installed source distribution of GD and required libraries (png, jpeg and so on).

    NOW It works.

    I Installed with...

    Mandrake Linux 8.0 - Kernel 2.4.3

    1. MySQL 3.23.47 - binaray
    2. libpng 1.2.1 - requires for GD
    3. zlib 1.0.4 - requires for GD
    4. FreeType 2.0.6 - true type font support
    5. GD library 1.8.4
    6. Apache 1.3.23
    7. PHP 4.1.1

    kemp wrote:

    on my compile for the GD portion, I get this error:

    php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static

    gd.c:92: conflicting types for `gdIOCtx'

    /usr/include/gd_io.h:18: previous declaration of `gdIOCtx'

    make[3]: *** [gd.lo] Error 1

    make[3]: Leaving directory `/opt/php-4.1.1/ext/gd'

    make[2]: *** [all-recursive] Error 1

    make[2]: Leaving directory `/opt/php-4.1.1/ext/gd'

    make[1]: *** [all-recursive] Error 1

    make[1]: Leaving directory `/opt/php-4.1.1/ext'

    make: *** [all-recursive] Error 1

    What is Error 1, how can I fix it.

    ty

      Thanks for your response. I have installed GD 2.0.1 beta over any preinstalled versions of GD. The GD install goes well. If i am not mistaken, the php/ext/gd componants are not GD code, but PHP only code - would this still be the case - perhaps PHP is not finding the GD componants. (even though the ./configure program does)

      I really don't understand gcc errors - perhaps there is another issue here.

      -s

        Many people have reported this error with versions of GD1.8 on PHP4.0.x+
        By installing all dependant libraries again, they have achieved sucess.

        However, this is not the case on this install - this is GD2.0.1 and reinstallation of libraries does not work - also, is the gdIOCtx conflict potentially the error?

        Anyone?
        -s

          Scott is right. I could not install with GD 2.0.x too. And it's a beta version, unstable!

          Here is my short config.

          GD library

          cd /tmp

          tar xvzf gd-1.8.4.tar.gz

          mv ./gd-1.8.4/ /usr/lib/gd/

          cd /usr/lib/gd/

          make

          make install

          That's right. GD lib. has to be /usr/lib/gd/. I installed in /usr/local/gd/ for the first time. It wam't working at all. I think I tried to install more than 20 times.

          Don't worry about libpng, zlib, and freetype2. If you've installed Xwindows, these already on your Linux machine.

          PHP

          ./configure --with-mysql=/usr/local/mysql \

          --with-apache=/usr/local/apache \
          --with-gd=/usr/lib \
          --enable-gd-native-ttf \
          --with-gd=/usr/lib \
          --with-freetype-dir=/usr/include/freetype2 \
          --with-zlib \
          --enable-shared

          good luck...

            Write a Reply...