php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27862 freetype2 not found
Submitted: 2004-04-05 01:56 UTC Modified: 2004-04-07 05:44 UTC
From: toni dot viemero at iki dot fi Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.6RC1 OS: Solaris 9 i386
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: toni dot viemero at iki dot fi
New email:
PHP Version: OS:

 

 [2004-04-05 01:56 UTC] toni dot viemero at iki dot fi
Description:
------------
I'm running Solaris 9 (i386) with OpenPKG packages (www.openpkg.org). OpenPKG packages install under /openpkg.

I've got libraries and headers installed with freetype-2.1.7 package.

/openpkg/lib/libfreetype.a
/openpkg/lib/libfreetype.la
/openpkg/include/freetype/*

./configure --with-gd=/openpkg --with-freetype-dir=/openpkg/lib --with-t1lib=/openpkg --with-jpeg-dir=/openpkg --with-png-dir=/openpkg --with-xpm-dir=/openpkg --with-zlib-dir=/openpkg

Last lines of ./configure output:
checking for GD support... yes
checking for the location of libjpeg... /openpkg
checking for the location of libpng... /openpkg
checking for the location of libXpm... /openpkg
checking for FreeType 1.x support... no
checking for FreeType 2... /openpkg/lib
checking for T1lib support... /openpkg
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
configure: error: freetype2 not found!

config.log doesn't reveal anything useful.

Actual result:
--------------
Last lines of config.log:
configure:29567: checking for GD support
configure:29614: checking for the location of libjpeg
configure:29641: checking for the location of libpng
configure:29694: checking for the location of libXpm
configure:29719: checking for FreeType 1.x support
configure:29744: checking for FreeType 2
configure:29769: checking for T1lib support
configure:29794: checking whether to enable truetype string function in GD
configure:29819: checking whether to enable JIS-mapped Japanese font support in GD
configure:31813: checking for jpeg_read_header in -ljpeg
configure:31832: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -R/openpkg/lib -L/openpkg/lib  -R/usr/ucblib -L/usr/ucblib -R/opt/openpkg/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.3 -L/opt/openpkg/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.3 -R/openpkg/lib -L/openpkg/lib conftest.c -ljpeg  -lz -lresolv -lm -lsocket  -lgcc 1>&5
configure:32096: checking for png_write_image in -lpng
configure:32115: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -R/openpkg/lib -L/openpkg/lib -R/openpkg/lib -L/openpkg/lib  -R/usr/ucblib -L/usr/ucblib -R/opt/openpkg/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.3 -L/opt/openpkg/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.3 -R/openpkg/lib -L/openpkg/lib -lz conftest.c -lpng  -ljpeg -lz -lresolv -lm -lsocket  -lgcc 1>&5
configure:32476: checking for XpmFreeXpmImage in -lXpm
configure:32495: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -R/openpkg/lib -L/openpkg/lib  -R/usr/ucblib -L/usr/ucblib -R/opt/openpkg/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.3 -L/opt/openpkg/bin/../lib/gcc-lib/i386-pc-solaris2.9/3.3.3 -R/openpkg/lib -L/openpkg/lib -lX11 conftest.c -lXpm  -lpng -lz -ljpeg -lz -lresolv -lm -lsocket  -lgcc 1>&5

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-05 02:01 UTC] toni dot viemero at iki dot fi
Full config.log is available at:
http://selfdestruct.net/misc/phpbug_27862.txt
 [2004-04-05 03:05 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

--with-freetype-dir=/openpkg, just like the rest...
 [2004-04-05 04:18 UTC] toni dot viemero at iki dot fi
My bad, I copied wrong ./configure line.

I used --with-freetype-dir=/openpkg

Here's my PHP ./configure line:
./configure --with-gd=/openpkg --with-freetype-dir=/openpkg --with-t1lib=/openpkg --with-jpeg-dir=/openpkg --with-png-dir=/openpkg --with-xpm-dir=/openpkg --with-zlib-dir=/openpkg

This has to be some kind of bug in PHP, since I can build GD source fine using the following to include freetype support.

./configure --with-freetype=/openpkg --with-png=/openpkg --with-jpeg=/openpkg --with-xmp=/openpkg --with-libiconv-prefix=/openpkg

GD ./configure output:
checking for freetype-config... /openpkg/bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking freetype/freetype.h usability... yes
checking freetype/freetype.h presence... yes
checking for freetype/freetype.h... yes
checking whether it's freetype 2... yes
 [2004-04-05 11:58 UTC] iliaa@php.net
The config.log you've posted does not contain information 
about freetype2 not being found. Please post a link to the 
one that does. 
 [2004-04-05 13:10 UTC] toni dot viemero at iki dot fi
That URL is for the full config.log, it just stops there.

Here's full ./configure output:
http://selfdestruct.net/misc/phpbug_27862-2.txt

And here's the list of library, gcc etc. versions:
http://selfdestruct.net/misc/phpbug_27862-3.txt
 [2004-04-07 05:44 UTC] sniper@php.net
Your freetype2 headers are in wrong place, they shoud be in:

/openpkg/include/freetype2/freetype/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 00:01:28 2024 UTC