Rasmus,

Thanks for the suggestion. We tried to compile php 4.2.2 with freetype 2.1.2
and gd 2.0.1, but during the configuration, we kept getting the following 
error messages:

configure: error: Unable to find required gettext library

And the following lines in config.log:

configure:26000: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 
-DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DEAPI_MM -DUSE_EXPAT -DSHARED_CORE  
-R/usr/ucblib -L/usr/ucblib -R/depot/package/openssl_0.9.6b/vendor/lib 
-L/depot/package/openssl_0.9.6b/vendor/lib 
-R/depot/package/gcc_3.0/lib/gcc-lib/sparc-sun-solaris2.8/3.0 
-L/depot/package/gcc_3.0/lib/gcc-lib/sparc-sun-solaris2.8/3.0 
-R/depot/package/zlib_1.1.4/lib -L/depot/package/zlib_1.1.4/lib 
-R/depot/package/bzip2_1.0.1/lib -L/depot/package/bzip2_1.0.1/lib 
-R/depot/package/cracklib_2.7/vendor/lib -L/depot/package/cracklib_2.7/vendor/lib 
-R/depot/package/curl_7.9.2/lib -L/depot/package/curl_7.9.2/lib -R/depot/lib 
-L/depot/lib -R/depot/package/rsaref_2.0/lib -L/depot/package/rsaref_2.0/lib 
-R/depot/package/openssl_0.9.6b/lib -L/depot/package/openssl_0.9.6b/lib 
-R/depot/package/gdbm_1.8/lib -L/depot/package/gdbm_1.8/lib 
-R/depot/package/berkeley_db_3.2.9/lib -L/depot/package/berkeley_db_3.2.9/lib 
-R/depot/package/libxml_2.4.13/vendor/lib -L/depot/package/libxml_2.4.13/vendor/lib 
-R/depot/package/zlib_1.1.3/lib -L/depot/package/zlib_1.1.3/lib 
-R/depot/package/libiconv_1.7/lib -L/depot/package/libiconv_1.7/lib
-R/depot/package/jpeg_6b/lib -L/depot/package/jpeg_6b/lib 
-R/depot/package/libpng_1.2.3/lib -L/depot/package/libpng_1.2.3/lib 
-R/depot/package/xpm_3.4k/lib -L/depot/package/xpm_3.4k/lib 
-R/depot/package/t1lib_1.1.1/vendor/lib -L/depot/package/t1lib_1.1.1/vendor/lib 
-R/depot/package/gd_2.0.1/lib -L/depot/package/gd_2.0.1/lib 
-L/depot/package/gettext_0.10.40/vendor/lib conftest.c -lc  -lgd -lt1 -lX11 -lXpm 
-lpng -lz -ljpeg -lz -lnsl -lsocket -lm -liconv -lz -lxml2 -ldb-3 -lgdbm -lcurl -lnsl 
-lsocket -ldl -lcrypto -lssl -lrsaref -lcurl -lcrack -lbz2 -lz -lcrypt -lssl -lcrypto 
-lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc -lcrypt 1>&5
Undefined                       first referenced
 symbol                             in file
FT_Init_FreeType                    /depot/lib/libgd.so
FT_Set_Char_Size                    /depot/lib/libgd.so
FT_Done_Face                        /depot/lib/libgd.so
FT_Glyph_Get_CBox                   /depot/lib/libgd.so
FT_Glyph_To_Bitmap                  /depot/lib/libgd.so
FT_Get_Kerning                      /depot/lib/libgd.so
FT_Glyph_Transform                  /depot/lib/libgd.so
FT_Done_Glyph                       /depot/lib/libgd.so
FT_Load_Glyph                       /depot/lib/libgd.so
FT_Get_Char_Index                   /depot/lib/libgd.so
FT_New_Face                         /depot/lib/libgd.so
FT_Get_Glyph                        /depot/lib/libgd.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 25989 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char bindtextdomain();

int main() {
bindtextdomain()
; return 0; }


The configure options that we use are:

    sh ./configure \
          --prefix=/depot/package/php_4.2.2/vendor \
          --with-apxs=/depot/package/apache_1.3.22/vendor/bin/apxs \
          --enable-safe-mode \
          --enable-discard-path \
          --with-exec-dir=/depot/package/apache_1.3.22/vendor/php-bin \
          --with-config-file-path=/depot/package/php_4.2.2/vendor \
          --with-openssl=/depot/package/openssl_0.9.6b/vendor \
          --enable-libgcc \
          --disable-short-tags \
          --with-zlib=/depot/package/zlib_1.1.4 \
          --enable-bcmath \
          --with-bz2=/depot/package/bzip2_1.0.1 \
          --enable-calendar \
          --with-jpeg-dir=/depot/package/jpeg_6b \
          --with-tiff-dir=/depot/package/tiff_3.5.7 \
          --with-crack=/depot/package/cracklib_2.7/vendor \
          --with-curl=/depot/package/curl_7.9.2 \
          --with-gdbm=/depot/package/gdbm_1.8 \
          --with-db3=/depot/package/berkeley_db_3.2.9 \
          --with-dom=/depot/package/libxml_2.4.13/vendor \
          --with-fribidi=/depot/package/fribidi_0.10.0 \
          --enable-ftp \
          --with-gd=/depot/package/gd_2.0.1 \
          --enable-gd-native-tt \
          --enable-gd-imgstrttf \
          --with-png-dir=/depot/package/libpng_1.2.3 \
          --with-xpm-dir=/depot/package/xpm_3.4k \
          --with-imap-ssl=/depot/package/imap_2001a \
          --with-mysql=/depot/package/mysql_3.23.46 \
          --with-ncurses=/depot/package/ncurses_5.2/vendor \
          --with-pdflib=/depot/package/pdflib_4.0.1 \
          --enable-wddx \
          --enable-sockets \
          --enable-sysvsem \
          --enable-sysvshm \
          --with-ttf=/depot/package/freetype_2.1.2/vendor \
          --with-xml \
          --with-t1lib=/depot/package/t1lib_1.1.1/vendor \
          --with-gettext=/depot/package/gettext_0.10.40/vendor \
          --with-iconv=/depot/package/libiconv_1.7/vendor \
          --with-java=/usr/java \
          --enable-mailparse \
          --with-mcrypt=/depot/package/libmcrypt_2.4.19/vendor \
          --enable-versioning \
          --with-system-regex \
          --enable-debug


When we compiled and installed gd 2.0.1, we specifically defined freetype 2.1.2
as the library. Why will the configuration still fail? 

Also, does php have any unicode normalization functions?

Thanks,
Ziying Sherwin



On Tue, 17 Sep 2002, Rasmus Lerdorf wrote:

> That's done in Freetype.  First thing I would try would be upgrading to
> GD2/Freetype2 and see if it is handled better with that combination.
> 
> -Rasmus
> 
> On Tue, 17 Sep 2002, Ziying Sherwin wrote:
> 
> >
> > We installed php 4.2.2 with freetype 1.3.1 on our solaris 2.8 machine.  We
> > are using function imagettftext to convert UTF8 string to image file for
> > Internet display. However, it seems that this function does not handle the
> > combining characters properly.  For instance, the sequence of unicode
> > characters U+0061(a) and U+0308 (combining diacritics) is display as two
> > characters: a and a square indicating not displayable. The correct result should
> > be a character identical to U+00E4.
> >
> > We are wondering where the normalization is handled in this case, freetype
> > library or inside imagettftext php function? Is it a bug in freetype library?
> > If not, how can we fix it?
> >
> > Thanks,
> >
> > Ziying Sherwin
> >
> > P.S. I am not on the mailing list, please send your response to
> > [EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> 


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

Reply via email to