BIHR
2005-Nov-21 08:51 UTC
[Fontconfig] fontconfig-2.2.1 compile problem (i686 / Linux 2.4.20-31.9 / RedHat 9.0)
Dear all,
After the installation of freetype-2.19 (both in /usr and /usr/local), I
try to install in my system (i686 / Linux 2.4.20-31.9 / RedHat 9.0) the
fontconfig-2.2.1, but unsuccessfully (make)
After some modification in fcfreetype.h:27, src/fcint.h:39,
fc-lang/fc-lang.c:25 with
#include <ft2build.h>
#include FT_FREETYPE_H
and changing src/fcfreetype.c, 60 with
#include <freetype/config/ftmodule.h>
(because freetype put this file in this directory and not in the parent)
I get another "make" problem to which I cannot find any solution.
Someone could help me?
Thank you very much
fjse65
Here th shell output:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/freetype2
-I/usr/local/include -DFONTCONFIG_PATH=\"/etc/fonts\" -I.. -I../src -g
-O2 -c fcfreetype.c -fPIC -o .libs/fcfreetype.o
In file included from fcfreetype.c:60:
/usr/local/include/freetype2/freetype/config/ftmodule.h:2: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:3: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:4: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:5: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:6: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:7: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:8: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:9: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:10: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:11: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:12: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:13: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:14: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:15: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:16: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:17: parse error
before "FT_USE_MODULE"
/usr/local/include/freetype2/freetype/config/ftmodule.h:18: parse error
before "FT_USE_MODULE"
fcfreetype.c: In function `FT_USE_MODULE'':
fcfreetype.c:78: warning: structure defined inside parms
fcfreetype.c:78: storage class specified for parameter
`FcCodePageRange''
fcfreetype.c:78: parameter `FcCodePageRange'' is initialized
fcfreetype.c:79: warning: braces around scalar initializer
fcfreetype.c:79: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:79: warning: initialization makes pointer from integer
without a cast
fcfreetype.c:79: warning: excess elements in scalar initializer
fcfreetype.c:79: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:80: warning: braces around scalar initializer
fcfreetype.c:80: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:80: warning: initialization makes pointer from integer
without a cast
fcfreetype.c:80: warning: excess elements in scalar initializer
fcfreetype.c:80: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:80: warning: excess elements in scalar initializer
fcfreetype.c:80: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:81: warning: braces around scalar initializer
fcfreetype.c:81: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:81: warning: initialization makes pointer from integer
without a cast
fcfreetype.c:81: warning: excess elements in scalar initializer
fcfreetype.c:81: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:81: warning: excess elements in scalar initializer
fcfreetype.c:81: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:82: warning: braces around scalar initializer
fcfreetype.c:82: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:82: warning: initialization makes pointer from integer
without a cast
fcfreetype.c:82: warning: excess elements in scalar initializer
fcfreetype.c:82: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:82: warning: excess elements in scalar initializer
fcfreetype.c:82: warning: (near initialization for `FcCodePageRange'')
fcfreetype.c:89: parse error before ''{'' token
fcfreetype.c:89: declaration for parameter `FcFreeTypeIsExclusiveLang''
but no such parameter
fcfreetype.c:78: declaration for parameter `FcCodePageRange'' but no
such
parameter
fcfreetype.c:94: `lang'' undeclared (first use in this function)
fcfreetype.c:94: (Each undeclared identifier is reported only once
fcfreetype.c:94: for each function it appears in.)
fcfreetype.c: In function `FcFreeTypeQuery'':
fcfreetype.c:664: `FcCodePageRange'' undeclared (first use in this
function)
fcfreetype.c:873: warning: assignment makes pointer from integer without
a cast
fcfreetype.c: At top level:
fcfreetype.c:1573: warning: type mismatch with previous implicit declaration
fcfreetype.c:873: warning: previous implicit declaration of
`FcFreeTypeCharSetAndSpacing''
fcfreetype.c:1573: warning: `FcFreeTypeCharSetAndSpacing'' was
previously
implicitly declared to return `int''
make[2]: *** [fcfreetype.lo] Erreur 1
make[2]: Quitte le r?pertoire `/home/fjse65/src/fontconfig-2.2.1/src''
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le r?pertoire `/home/fjse65/src/fontconfig-2.2.1''
make: *** [all-recursive-am] Erreur 2