i don't know if this will help, but you might try changing your gdlib Makefile 'LIBS=' line to have it start with LIBS=libgd.a ...... then do a 'make libgd.a' from shell
now when you compile PHP, reference the gdlib source directory '--with-gd=../gd-2xx/' (for me) or something like that. it always works for me when i do that with gd2, don't need to with 1. dave ps - i know rasmus wrote a page somewhere on how to do it right. i'm typing this from memory. "Denis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I don't know how anyone manages it to compile php from source. I tried it > know with the last 3 versions of php and it always fails. > configure goes ok, but when I do make it stops with: > > In file included from gd.c:83: > gd_ctx.c: In function `_php_image_output_ctx': > gd_ctx.c:70: structure has no member named `free' > gd_ctx.c:98: structure has no member named `free' > gd.c: In function `_php_image_type': > gd.c:1014: structure has no member named `free' > gd.c:1017: structure has no member named `free' > gd.c: In function `_php_image_create_from': > gd.c:1209: structure has no member named `free' > make[3]: *** [gd.lo] Error 1 > make[3]: Leaving directory `/backup/sources/php-4.2.3/ext/gd' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/backup/sources/php-4.2.3/ext/gd' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/backup/sources/php-4.2.3/ext' > make: *** [all-recursive] Error 1 > > Maybe someone can help me? > I use RedHat 8.0 but compiled apache 1.3.27 by hand (cause I use Modules > which don't work with apache 2). > To use php I did: > > pdflib-4.0.3 > ---------------------- > > $ tar -xvzf pdflib-4.0.3.tar.gz > $ cd pdflib-4.0.3 > $ ./configure --prefix=/usr --enable-shared-pdflib --enable-cxx > $ make > $ make test > $ make install > $ ldconfig > > freetyp (http://www.freetype.org/download.html#stable) > > ------------------------- > ./configure --prefix=/usr > make > make install > > libpng-1.2.5.tar.gz (http://www.libpng.org/pub/png/) > ------------------------ > > $ mv scripts/makefile.linux ../makefile > > edit makefile and change paths > > $ make test > $make install > > > zlib (ftp://ftp.info-zip.org/pub/infozip/zlib/zlib.html) > ----------------------- > > $ tar .. > $ cd > $ ./configure --prefix=/usr > $ make > $ make test > $ make install > > libjpeg (ftp://ftp.uu.net/graphics/jpeg/) > ----------------------------------- > > ./configure --prefix=/usr \ > --sysconfdir=/etc \ > --mandir=/usr/share/man \ > --infodir=/usr/share/info \ > --localstatedir=/var \ > --enable-shared \ > > make > make install > > gd http://www.boutell.com/gd/ > ---------------- > > ./configure --prefix=/usr > make > make install > > bzip2-1.0.2.tar.gz (http://sources.redhat.com/bzip2/#bzip2-doco) > ------------- > > make > make install > > mm > ------------------------- > $ tar -xvzf mm-1.2.1.tar.gz > $ cd mm-1.2.1 > > $ ./configure --prefix=/usr \ > --sysconfdir=/etc \ > --mandir=/usr/share/man \ > --infodir=/usr/share/info \ > --localstatedir=/var \ > --enable-shared \ > > $ make > $ make test > > > php-4.2.3 > --------------------- > > $ tar -xvzf php-4.2.3.tar.gz > $ cd php-4.2.3 > > ./configure --with-apxs=/usr/sbin/apxs \ > --prefix=/usr \ > --sysconfdir=/etc \ > --datadir=/usr/share \ > --includedir=/usr/include \ > --localstatedir=/var \ > --mandir=/usr/share/man \ > --infodir=/usr/share/info \ > --with-config-file-path=/etc \ > --enable-force-cgi-redirect \ > --disable-debug \ > --enable-dbg=shared \ > --with-dbg-profiler \ > --enable-pic \ > --disable-rpath \ > --enable-inline-optimization \ > --with-bz2 \ > --with-db3 \ > --with-curl \ > --with-dom=/usr \ > --with-exec-dir=/usr/bin \ > --with-freetype-dir=/usr \ > --with-png-dir=/usr \ > --with-gd \ > --enable-gd-native-ttf \ > --with-ttf \ > --with-gdbm \ > --with-gettext \ > --with-ncurses \ > --with-gmp \ > --with-iconv \ > --with-jpeg-dir=/usr \ > --with-mm \ > --with-openssl \ > --with-png \ > --with-regex=system \ > --with-xml \ > --with-expat-dir=/usr \ > --with-zlib \ > --with-layout=GNU \ > --enable-bcmath \ > --enable-debugger \ > --enable-exif \ > --enable-ftp \ > --enable-magic-quotes \ > --enable-safe-mode \ > --enable-sockets \ > --enable-sysvsem \ > --enable-sysvshm \ > --enable-discard-path \ > --enable-track-vars \ > --enable-trans-sid \ > --enable-yp \ > --enable-wddx \ > --without-oci8 \ > --with-kerberos=/usr/kerberos \ > --with-ldap=shared \ > --with-mysql=shared,/usr \ > --with-snmp=shared,/usr \ > --with-pdflib=shared,/usr \ > --enable-ucd-snmp-hack \ > --with-unixODBC=shared \ > --enable-memory-limit \ > --enable-bcmath \ > --enable-shmop \ > --enable-versioning \ > --enable-calendar \ > --enable-dbx \ > --enable-dio \ > --enable-mcal \ > --enable-mbstring \ > --enable-mbstr-enc-trans \ > > > make > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php