Hello,

I've tried to install GD 1.8.4 with FreeType 2.1.2 and PHP 4.2.2 on FreeBSD.

first i've compiled FreeType with this options:

make CFG="--prefix=/usr/local"
./configure --prefix=/usr/local
make
make install

it worked fine "after" i've installed gnu make ;)

Ok but now the problem when i try to compile GD.
This are my Makefile configurations:

comment CFLAGS and LIBS
uncomment the alternativs

i've added to
INCLUDEDIRS:
-I/usr/local/include/freetype2
and to LIBDIRS:
-L/usr/local/lib

after editing the file, i try compile with "make" and get this output:
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11
-I/usr/X11R6/includ e/X11 -I/usr/local/include
-I/usr/local/include/freetype2 -O -DHAVE_LIB XPM -DHAVE_LIBPNG
-DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -c gdft.c
In file included from gdcache.h:43,
from gdft.c:35: /usr/include/malloc.h:2:
warning: #warning "this file includes <malloc. h> which is
deprecated, use <stdlib.h> instead" In file included from
gdft.c:37: /usr/local/include/freetype2/freetype/ftglyph.h:104:
syntax error befor e `FT_Library'
/usr/local/include/freetype2/freetype/ftglyph.h:106: syntax error
befor e `FT_Glyph_Format'
/usr/local/include/freetype2/freetype/ftglyph.h:157: syntax error
befor e `FT_Int'
/usr/local/include/freetype2/freetype/ftglyph.h:205: syntax error
befor e `FT_Outline'
/usr/local/include/freetype2/freetype/ftglyph.h:228: syntax error
befor e `FT_Get_Glyph'
/usr/local/include/freetype2/freetype/ftglyph.h:228: syntax error
befor e `slot'
/usr/local/include/freetype2/freetype/ftglyph.h:229: warning:
data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:251: syntax error
befor e `FT_Glyph_Copy'
/usr/local/include/freetype2/freetype/ftglyph.h:252: warning:
data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:281: syntax error
befor e `FT_Glyph_Transform'
/usr/local/include/freetype2/freetype/ftglyph.h:282: syntax error
befor e `FT_Matrix'
/usr/local/include/freetype2/freetype/ftglyph.h:283: warning:
data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:360: syntax error
befor e `FT_Glyph_Get_CBox'
/usr/local/include/freetype2/freetype/ftglyph.h:361: syntax error
befor e `FT_UInt'
/usr/local/include/freetype2/freetype/ftglyph.h:362: warning:
data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:437: syntax error
befor e `FT_Glyph_To_Bitmap'
/usr/local/include/freetype2/freetype/ftglyph.h:438: syntax error
befor e `FT_ULong'
/usr/local/include/freetype2/freetype/ftglyph.h:440: warning:
data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:455: syntax error
befor e `FT_Done_Glyph'
/usr/local/include/freetype2/freetype/ftglyph.h:455: warning:
data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:486: syntax error
befor e `FT_Matrix_Multiply'
/usr/local/include/freetype2/freetype/ftglyph.h:486: syntax error
befor e `*' /usr/local/include/freetype2/freetype/ftglyph.h:487:
warning: data defi nition has no type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:506: syntax error
befor e `FT_Matrix_Invert'
/usr/local/include/freetype2/freetype/ftglyph.h:506: syntax error
befor e `*' /usr/local/include/freetype2/freetype/ftglyph.h:506:
warning: data defi nition has no type or storage class
gdft.c:81: syntax error before `FT_Library' gdft.c:92: syntax
error before `FT_Library' gdft.c: In function `fontFetch':
gdft.c:307: syntax error before `err' gdft.c:313: structure has
no member named `library' gdft.c:313: structure has no member
named `library' gdft.c:354: `err' undeclared (first use in this
function) gdft.c:354: (Each undeclared identifier is reported
only once gdft.c:354: for each function it appears in.)
gdft.c:354: structure has no member named `library' gdft.c:354:
structure has no member named `face' gdft.c:363: structure has no
member named `have_char_map_unicode' gdft.c:364: structure has no
member named `have_char_map_big5' gdft.c:365: structure has no
member named `have_char_map_sjis' gdft.c:366: structure has no
member named `have_char_map_apple_roman' gdft.c:367: structure
has no member named `face' gdft.c:368: `charmap' undeclared
(first use in this function) gdft.c:368: structure has no member
named `face' gdft.c:589: `matrix' undeclared (first use in this
function) gdft.c:589: `FT_Fixed' undeclared (first use in this
function) gdft.c:594: `pen' undeclared (first use in this
function) gdft.c:596: `use_kerning' undeclared (first use in this
function) gdft.c:597: `previous' undeclared (first use in this
function) gdft.c:599: `advance_x' undeclared (first use in this
function) gdft.c:599: `advance_y' undeclared (first use in this
function) gdft.c:602: structure has no member named
`have_char_map_sjis' gdft.c:640: structure has no member named
`have_char_map_unicode' gdft.c:644: structure has no member named
`have_char_map_sjis' gdft.c:687: `glyph_index' undeclared (first
use in this function) gdft.c:692: `ft_kerning_default' undeclared
(first use in this function) gdft.c:692: `delta' undeclared
(first use in this function) gdft.c:697: `err' undeclared (first
use in this function) gdft.c:697: `FT_LOAD_RENDER' undeclared
(first use in this function) gdft.c:721: `ll_x' undeclared (first
use in this function) gdft.c:722: `ll_y' undeclared (first use in
this function) gdft.c:723: `ur_x' undeclared (first use in this
function) gdft.c:724: `ur_y' undeclared (first use in this
function) *** Error code 1
Stop in /usr/opt/php_sources/gd-1.8.4.

i was unable to fix this so ich started to compile PHP without GD

./configure --with-mysql
            --with-apxs2=/usr/opt/apache/bin/apxs
            --with-zlib
            --with-ftp
            --with-jpeg-dir=/usr/local/lib
           --enable-sysvshm=yes
           --enable-sysvsem=yes
           --with-config-file-path=/etc

then i also tried to compile with "make" and a few minutes later
while compiling i get this

...
Making all in sapi
Making all in apache2filter
/bin/sh /usr/opt/php_sources/php-4.2.2/libtool --silent --mode=compile
cc  -I. -I/usr/opt/php_sources/php-4.2.2/sapi/apache2filter -I/usr/opt/php_s
ources/php-4.2.2/main -I/usr/opt/php_sources/php-4.2.2 -I/usr/opt/apache/inc
lude -I/usr/opt/php_sources/php-4.2.2/Zend -I/usr/opt/php_sources/php-4.2.2/
ext/mysql/libmysql -I/usr/opt/php_sources/php-4.2.2/ext/xml/expat  -D_REENTR
ANT -D_THREAD_SAFE -I/usr/opt/php_sources/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -
pthread -DZTS -prefer-pic  -c sapi_apache2.c
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter'
makes pointer from integer without a cast
sapi_apache2.c:534: too few arguments to function
`ap_register_output_filter'
sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter'
makes pointer from integer without a cast
sapi_apache2.c:535: too few arguments to function `ap_register_input_filter'
*** Error code 1

Stop in /usr/opt/php_sources/php-4.2.2/sapi/apache2filter.
*** Error code 1

Stop in /usr/opt/php_sources/php-4.2.2/sapi/apache2filter.
*** Error code 1

Stop in /usr/opt/php_sources/php-4.2.2/sapi.
*** Error code 1

Stop in /usr/opt/php_sources/php-4.2.2.


and if it's necessary the compile options for the apache 2.0.40:

./configure --prefix=/usr/opt/apache --enable-so
make
make install


I'm grateful for each assistance

greet
Martin

-----------------------------------------------------------------
Martin Adler                                CGI, Perl, PHP, MySQL

Continum AG                                  Tel. +49 761 4794090
Bötzinger Straße 29a                         Fax. +49 761 4794099
79111 Freiburg i. Br.                     http://www.continum.net
-----------------------------------------------------------------


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to