ID: 37359
User updated by: john at jcoppens dot com
Reported By: john at jcoppens dot com
-Status: Feedback
+Status: Open
Bug Type: *Configuration Issues
Operating System: Linux
PHP Version: 5.1.4
Assigned To: pajoye
New Comment:
adding:
--with-t1lib=/usr/local
same error:
checking for FreeType 1 support... no - FreeType 2.x is to be used
instead
checking for T1_StrError in -lt1... no
configure: error: Problem with libt1.(a|so). Please check config.log
for more information.
The --with-t1lib-dir directive you asked for does not appear in
./configure --help, so I suspect it has to be the above directive
(--with-t1lib=...)
Then, disabling --without-t1lib, I get the error:
checking for iconv in -liconv... no
configure: error: Please reinstall the iconv library.
which, again, is not the fault of not finding iconv, but
not finding freetype (according to the config.log):
configure:45338: gcc -o conftest -g -O2 -Wl,-rpath,/opt/gnome/lib
-L/opt/gnome
/lib conftest.c -liconv -lfreetype -lpng -lz -lbz2 -lz -lresolv -lm
-ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lfreetype
Previous Comments:
------------------------------------------------------------------------
[2006-05-08 16:05:00] [EMAIL PROTECTED]
Please use the t1lib directive and run the configure without LD_FLAGS.
"If I disablet1lib in the config, the same problem appears with another
library (also because of not finding freetype)"
Can you be more clear? Please paste the exact errors here, and which
libraries do not work, for which extensions.
------------------------------------------------------------------------
[2006-05-08 16:00:03] john at jcoppens dot com
Below is the config command. I did not use --with-t1lib-dir for two
reasons:
1) I thought that was for only for t1lib, which is found
2) It's not only a problem compiling t1lib. If I disable
t1lib in the config, the same problem appears with
another library (also because of not finding freetype)
LDFLAGS=-L/usr/X11/lib ./configure --with-mysql=/opt/mysql --with-apxs
--with-ming --with-zlib --with-bz2 --enable-exif --enable-ftp --with-gd
--enable-gd-native-ttf --with-ttf=/usr/X11 --with-freetype-dir=/usr/X11
--enable-sockets --with-t1lib --with-truetype --prefix=/usr
--enable-mbstring --with-libxml-dir=/opt/gnome
------------------------------------------------------------------------
[2006-05-08 14:46:51] [EMAIL PROTECTED]
What's your configure line?
Did you use --with-t1lib-dir?
------------------------------------------------------------------------
[2006-05-08 14:42:16] john at jcoppens dot com
I've solved the problem for the moment adding LDFLAGS:
LDFLAGS=-L/usr/X11/lib ./configure --with-mysql=/opt/ ...
but I doubt that is the elegant solution.
------------------------------------------------------------------------
[2006-05-08 05:08:51] john at jcoppens dot com
Description:
------------
I (tried) to run configure with
--with-freetype-dir=/usr/X11
(among other options, of course). This works fine for libfreetype
itself, but the config process stops
on (failing) to detect libt1:
If configure fails try --with-xpm-dir=<DIR>
checking for FreeType 1 support... no - FreeType 2.x is to be used
instead
checking for T1_StrError in -lt1... no
configure: error: Problem with libt1.(a|so). Please check config.log
for more information.
It says 'no' here, not because t1 doesn't exist, but because it cannot
find freetype. From the config.log:
configure:35897: checking for T1_StrError in -lt1
configure:35916: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib
-L/usr/local/lib -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib conftest.c
-lt1 -lfreetype -lpng -lz -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz
-lm -lxml2 -lz -lm 1>&5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lfreetype
Probably because the /usr/X11 path is not included.
Expected result:
----------------
I'd expect the path from --with-freetype-dir to be included in all
places where it is needed.
Sorry if I'm incorrect here... I'm not an expert programmer.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37359&edit=1