[Bug 6243] New: AC_CHECK_LIB not recognizing FreeType on Kubuntu
AMD64
Wine Bugs
wine-bugs at winehq.org
Wed Sep 20 19:40:12 CDT 2006
http://bugs.winehq.org/show_bug.cgi?id=6243
Summary: AC_CHECK_LIB not recognizing FreeType on Kubuntu AMD64
Product: Wine
Version: CVS
Platform: PC-x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-binary
AssignedTo: wine-bugs at winehq.org
ReportedBy: wine at eternaldusk.com
Compiling Wine on my Kubuntu AMD64 system produces the following Warning/Error:
--------------------
configure: WARNING: Your system appears to have the FreeType 2 runtime libraries
configure: WARNING: installed, but 'freetype-config' is not in your PATH. Install
configure: WARNING: the freetype-devel package (or its equivalent on your
distribution)
configure: WARNING: to enable Wine to use TrueType fonts.
configure: WARNING: FreeType is missing.
configure: WARNING: Fonts will not be built. Dialog text may be invisible or
unaligned.
Configure finished. Do 'make depend && make' to compile Wine.
--------------------
I do not get the error if I compile it in a 32-bit chroot. When ignoring the
warning and compiling 64-bit, everything other than fonts in some apps seems to
run fine.
I did some digging into configure.ac and found the cause of the warning:
---------------------
checking for freetype-config... freetype-config
checking for FT_Init_FreeType in -lfreetype... no
******************* JJL - ft_lib = no, FREETYPELIBS=-L/usr/local/lib -Wl,--rpath
-Wl,/usr/local/lib -lfreetype -lz, FREETYPEINCL=-I/usr/local/include/freetype2
-I/usr/local/include
checking for parport header/ppdev.h... yes
...
evil at pluto:~/install/wine$ ll /usr/local/lib/libfreetype*
-rw-r--r-- 1 root root 3571116 2006-09-20 14:30 /usr/local/lib/libfreetype.a
-rwxr-xr-x 1 root root 842 2006-09-20 14:30 /usr/local/lib/libfreetype.la
lrwxrwxrwx 1 root root 21 2006-09-20 14:30 /usr/local/lib/libfreetype.so ->
libfreetype.so.6.3.10
lrwxrwxrwx 1 root root 21 2006-09-20 14:30 /usr/local/lib/libfreetype.so.6
-> libfreetype.so.6.3.10
-rwxr-xr-x 1 root root 2075854 2006-09-20 14:30 /usr/local/lib/libfreetype.so.6.3.10
---------------------
Apparently the AC_CHECK_LIB call for FT_Init_FreeType is failing
As you can see: Not only do I have FreeType2 (which seems to work fine
compiling every other app that needs it), I even upgraded from the latest CVS to
see if it corrected the problem. It didn't.
I know almost nothing of autotools/autoconf. Is this a bug in the 64-bit
AC_CHECK_LIB, or could there something wrong with the parameters being passed to
it that would still work on 32-bit?
Here's how the output of freetype-config --cflags and --lib varies between my
32-bit chroot and my 64-bit environments:
32-bit:
------------
evil at pluto:~$ freetype-config --cflags
-I/usr/include/freetype2
evil at pluto:~$ freetype-config --libs
-lfreetype -lz
64-bit:
-----------
evil at pluto:~$ freetype-config --cflags
-I/usr/local/include/freetype2 -I/usr/local/include
evil at pluto:~$ freetype-config --libs
-L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz
I'm wondering if all that extra stuff in the libs variable is messing with
AC_CHECK_LIB's results. I tried to override the libraries myself, but I have
another problem in that whenever I make changes to configure.ac and run
"autoconf configure.ac > configure", I get a lot of SED errors like this:
...
config.status: creating dlls/ws2_32/tests/Makefile
sed: file ./confstattYvqXN/subs-4.sed line 14: unterminated `s' command
config.status: creating dlls/wsock32/Makefile
sed: file ./confstattYvqXN/subs-4.sed line 14: unterminated `s' command
...
I'm guessing there's a parameter that I'm unaware of that I need to be using on
the autoconf command.
-J
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list