Installation problem of 4.3.0 using built in gd library but works fine with speparate gd library
| From: | gregory dot stewart at magma dot ca | Date: | Mon, 27 Jan 2003 19:29:00 +0000 |
| Subject: | Installation problem of 4.3.0 using built in gd library but works fine with speparate gd library | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-9859@lists.php.net to get a copy of this message | ||
A rehash of a problem I had earlier on Solaris7/Sparc - explained more
clearly
If I use the configure line below, I can configure no problem, but my make
dies with the issues below, however if I compile with the gd that was
installed previously on this system by specifiying --with-gd=/usr/local,
everything goes smoothly. Why could I compile using the GD that was
installed previously and separately, but when using the GD in the PHP
4.3.0 distribution things fail? - Isn't that odd? Is there something I
should look for and remove on the system that is confusing things?
Seaching google didn't turn up much for me at all other than some things
in German which I couldn't understand.
./configure --enable-force-cgi-redirect=yes --enable-memory-limit=yes
--enable-safe-mode=yes --enable-sysvsem=yes --enable-sysvshm=yes
--with-gd --with-jpeg-dir=/usr/local --with-zlib=/usr/local
--enable-wddx --enable-calendar --enable-ftp --with-db
--enable-gdbm=/usr/local/lib --with-freetype-dir=/usr/local/lib
--with-ttf=/usr/local/lib --with-png-dir=/usr/local
make
gcc -I/home/gregstew/php-4.3.0/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG
-DHAVE_LIBFREETYPE -Iext/gd/ -I/home/gregstew/php-4.3.0/ext/gd/
-DPHP_ATOM_INC -I/home/gregstew/php-4.3.0/include
-I/home/gregstew/php-4.3.0/main -I/home/gregstew/php-4.3.0
-I/home/gregstew/php-4.3.0/Zend -I/usr/local/include
-I/usr/local/include/freetype2 -I/home/gregstew/php-4.3.0/ext/xml/expat
-D_POSIX_PTHREAD_SEMANTICS -I/home/gregstew/php-4.3.0/TSRM -g -O2 -c
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c -o ext/gd/libgd/gdft.o &&
echo > ext/gd/libgd/gdft.lo
In file included from /home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:50:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error before
`FT_Library'
/usr/local/include/freetype2/freetype/ftglyph.h:104: warning: no semicolon
at end of struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:106: parse error before
`format'
/usr/local/include/freetype2/freetype/ftglyph.h:106: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:107: parse error before
`advance'
/usr/local/include/freetype2/freetype/ftglyph.h:107: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:109: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:156: parse error before
`FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:156: warning: no semicolon
at end of struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:157: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:158: parse error before
`top'
/usr/local/include/freetype2/freetype/ftglyph.h:158: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:159: parse error before
`bitmap'
/usr/local/include/freetype2/freetype/ftglyph.h:159: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:161: warning: data
definition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:204: parse error before
`FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:204: warning: no semicolon
at end of struct or union
---- snip ----
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontTest':
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:327: `a' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:327: (Each undeclared
identifier is reported only once
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:327: for each function it
appears in.)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:327: parse error before `)'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:328: `b' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:328: parse error before `)'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c: In function `fontFetch':
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:336: `a' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:337: `b' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:337: parse error before `)'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:345: `FT_Error' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:346: `FT_CharMap' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:349: parse error before `)'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:356: `fontsearchpath'
undeclared (first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:359: `fontlist' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:364: `name' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:364: `strtok_ptr' undeclared
(first use in this function)
--- snip ---
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:637: request for member
`pitch' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:638: request for member
`pixel_mode' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:647: request for member
`width' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:649: request for member
`pixel_mode' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:656: request for member
`buffer' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:657: request for member
`num_grays' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:658: request for member
`num_grays' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:660: request for member
`pixel_mode' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:662: request for member
`buffer' in something not a structure or union
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:690: `tc_cache' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c: At top level:
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:700: parse error before `v1'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c: In function `gdroundupdown':
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:702: `updown' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:703: `v1' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c: At top level:
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:712: parse error before
`library'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:712: warning: data definition
has no type or storage class
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c: In function
`gdImageStringFTEx':
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:738: `FT_BBox' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:738: parse error before
`bbox'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:739: `FT_Matrix' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:740: `FT_Vector' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:743: `FT_GlyphSlot'
undeclared (first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:743: parse error before
`slot'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:744: `FT_Error' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:745: `FT_Bool' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:746: `FT_UInt' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:751: `font' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:752: `fontkey_t' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:752: parse error before
`fontkey'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:771: `tc_cache' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:789: `fontkey' undeclared
(first use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:791: parse error before `)'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:798: `slot' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:798: invalid type argument of
`->'
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:800: `FT_F26Dot6' undeclared
(first use in this function)
--- snip ---
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:1001: `bm' undeclared (first
use in this function)
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:1011: dereferencing pointer
to incomplete type
/home/gregstew/php-4.3.0/ext/gd/libgd/gdft.c:1012: dereferencing pointer
to incomplete type
make: *** [ext/gd/libgd/gdft.lo] Error 1
root@gregbox:~gregstew/php-4.3.0:# exit