php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32007 problem with GD + freetype2
Submitted: 2005-02-17 09:32 UTC Modified: 2005-02-22 09:23 UTC
From: bernard dot prevosto at ifremer dot fr Assigned:
Status: Not a bug Package: GD related
PHP Version: 4CVS-2005-02-17 OS: solaris 5.8
Private report: No CVE-ID: None
 [2005-02-17 09:32 UTC] bernard dot prevosto at ifremer dot fr
Description:
------------
When I configure PHP with GD + freetype2
configure stop with an error upon IMAP

with only GD, it's good
with only freetype2, il's good

Reproduce code:
---------------
./configure \
--with-apache=/home2/beniguet/tmsiric/bpre/anonymous/apache/apache_1.3.33 \
--with-gd \
--with-zlib-dir=/home/services/bibli/zlib \
--with-jpeg-dir=/home/services/bibli/jpeglib \
--with-png-dir=/home/services/bibli/pnglib \
--with-tiff-dir=/home/services/bibli/tifflib \
--with-freetype-dir=/home/services/bibli/freetype2 \
--with-imap=/home1/iletudy/www/httpd/imap \
--without-pear \
--disable-cli \
--with-config-file-path=/home1/iletudy/www/httpd/php


Expected result:
----------------
configure work good without freetype2 or gd

checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether SSL libraries are needed for c-client... no
checking whether IMAP works... yes


Actual result:
--------------
result with freetyp2 + gd

checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether SSL libraries are needed for c-client... no
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for details.


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 13:46 UTC] sniper@php.net
Does this work:

# rm config.cache 
# ./configure \
--with-gd \
--with-zlib-dir=/home/services/bibli/zlib \
--with-jpeg-dir=/home/services/bibli/jpeglib \
--with-png-dir=/home/services/bibli/pnglib \
--with-tiff-dir=/home/services/bibli/tifflib \
--with-freetype-dir=/home/services/bibli/freetype2
# make clean && make


 [2005-02-17 14:19 UTC] bernard dot prevosto at ifremer dot fr
Sorry

without IMAP i have:

checking for extended DES crypt... no
checking for MD5 crypt... no
Killed
checking for Blowfish crypt... no
checking whether flush should be called explicitly after a buffered io... yes

without freetype2 or GD i have not tke ligne KILLED

at the end of configure in this case i have:
+--------------------------------------------------------------------+
|                       *** ATTENTION ***                            |
|                                                                    |
| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.                         |
|                                                                    |
| If you are unable to fix this, send the file debug.log to the      |
| php-install@lists.php.net mailing list and include appropiate      |
| information about your setup.                                      |

i have not without freetype2 or  GD



but the make work fine
 [2005-02-21 19:43 UTC] sniper@php.net
Well, what was in the debug.log file...?

 [2005-02-22 08:44 UTC] bernard dot prevosto at ifremer dot fr
The debug.log file:
------------------

CONFIGURE:   './configure' '--with-gd' '--with-zlib-dir=/home/services/bibli/zlib' '--with-jpeg-dir=/home/services/bibli/jpeglib' '--with-png-dir=/home/services/bibli/pnglib' '--with-tiff-dir=/home/services/bibli/tifflib' '--with-freetype-dir=/home/services/bibli/freetype2'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -D_POSIX_PTHREAD_SEMANTICS
CXX:        
CXXFLAGS:   
INCLUDES:    -I$(top_builddir)/Zend -I/home/services/bibli/zlib/include -I/home/services/bibli/jpeglib/include -I/home/services/bibli/pnglib/include -I/home/services/bibli/freetype2/include -I/home/services/bibli/freetype2/include/freetype2
LDFLAGS:     -R/usr/ucblib -L/usr/ucblib -R/home/services/logiciels/compilateurs/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.7/3.3 -L/home/services/logiciels/compilateurs/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.7/3.3 -R/home/services/bibli/zlib/lib -L/home/services/bibli/zlib/lib -R/home/services/bibli/jpeglib/lib -L/home/services/bibli/jpeglib/lib -R/home/services/bibli/pnglib/lib -L/home/services/bibli/pnglib/lib -R/home/services/bibli/freetype2/lib -L/home/services/bibli/freetype2/lib
LIBS:       -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lsocket  -lgcc
DLIBS:      
SAPI:       cgi
PHP_RPATHS:  /usr/ucblib /home/services/logiciels/compilateurs/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.7/3.3 /home/services/bibli/zlib/lib /home/services/bibli/jpeglib/lib /home/services/bibli/pnglib/lib /home/services/bibli/freetype2/lib
uname -a:   SunOS iletudy 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-880

gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib -R/home/services/logiciels/compilateurs/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.7/3.3 -L/home/services/logiciels/compilateurs/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2.7/3.3 -R/home/services/bibli/zlib/lib -L/home/services/bibli/zlib/lib -R/home/services/bibli/jpeglib/lib -L/home/services/bibli/jpeglib/lib -R/home/services/bibli/pnglib/lib -L/home/services/bibli/pnglib/lib -R/home/services/bibli/freetype2/lib -L/home/services/bibli/freetype2/lib conftest.c -lfreetype -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lsocket  -lgcc 1>&5
ld.so.1: ./conftest: fatal: libgcc_s.so.1: open failed: No such file or directory
 [2005-02-22 08:55 UTC] sniper@php.net
You will find couple of solutions by using this search:

http://www.google.com/search?q=%22libgcc_s.so.1%3A+open+failed%22+solaris

This is NOT any bug in PHP, just a broken installation of gcc on your system. 

 [2005-02-22 08:56 UTC] sniper@php.net
This bug system cut that url, but you'll see easily what letter is missing from word solaris in it. :)

 [2005-02-22 09:23 UTC] bernard dot prevosto at ifremer dot fr
I add the path from this library and it'good
whith gd+freetype2+imap

you can close the call

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 06:01:28 2024 UTC