Re: [ft] Errors when compiling freetype 2.3.5 on tru64 5.1b

2008-05-04 Thread Werner LEMBERG

> >   cpp -I/usr/local/include \
> >   -I/usr/local/freetype2/freetype-2.3.5/objs \
> >   -I./builds/unix \
> >   -I/usr/local/freetype2/freetype-2.3.5/include \
> >   -DFT_CONFIG_OPTION_SYSTEM_ZLIB \
> >   "-DFT_CONFIG_CONFIG_H=" \
> >   -DFT2_BUILD_LIBRARY \
> >   "-DFT_CONFIG_MODULES_H=" \
> >   builds/unix/ftsystem.c \
> >   -DPIC \
> >   > ftsystem.cpp
> >
> > Inspect this file and check where `FT_Int' is defined.  There should
> > be a line
> >
> >   typedef signed int FT_Int;
> >
> > be defined before any usage of it.
>
> It is defined and before being used.

No, it isn't!  The first occurrence of FT_Int is in line 7960:

  extern FT_Int
  FT_Trace_Get_Count( void );

but FT_Int is defined in line 10470:

  typedef signed int  FT_Int;


I'm now sure that there's a severe mangling of FreeType 1 and
FreeType 2 header files: If you do a `grep /usr/local/', you see this:

  # 1 "/usr/local/include/ft2build.h"
  # 1 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftheader.h"
  # 1 "/usr/local/freetype2/freetype-2.3.5/include/freetype/internal/internal.h"
  # 723 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftheader.h"
  # 57 "/usr/local/include/ft2build.h"
  # 1 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftoption.h"
  # 1 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 1 "/usr/local/include/standards.h"
  # 56 "/usr/local/include/standards.h"
  # 37 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 67 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 82 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 106 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 124 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 162 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 175 "/usr/local/freetype2/freetype-2.3.5/include/freetype/config/ftstdlib.h"
  # 1 "/usr/local/freetype2/freetype-2.3.5/include/freetype/internal/ftdebug.h"
  # 1 "/usr/local/include/freetype/freetype.h"
  # 1 "/usr/local/include/freetype/fterrid.h"
  # 34 "/usr/local/include/freetype/freetype.h"
  # 1 "/usr/local/include/freetype/ftnameid.h"
  # 35 "/usr/local/include/freetype/freetype.h"


The problematic line is after inclusion of `ftdebug.h': This header
file loads FT_FREETYPE_H, which expands to , and
since you have `/usr/local/include' before
`/usr/local/freetype2/freetype-2.3.5/include', the wrong `freetype.h'
(from FreeType 1) gets loaded.

With other words, `-I/usr/local/include' must come after
`-I/usr/local/freetype2/freetype-2.3.5/include'.


Werner


___
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype


Re: [ft] Errors when compiling freetype 2.3.5 on tru64 5.1b

2008-05-02 Thread Werner LEMBERG

> I get many errors when compiling freetype 2.3.5 on tru64 5.1b:
>
> /usr/local/freetype2/freetype-2.3.5/objs/.libs/ftsystem.o
> cc: Error:
> /usr/local/freetype2/freetype-2.3.5/include/freetype/internal/ftdebug.h,
> line 116: In this declaration, "FT_Int" appears to be used as if it named a
> type, but there is no declared type of that name visible. (typedefnotdef)
>   FT_BASE( FT_Int )
>
>
> The configure command I used was:
>
> CC="cc" CFLAGS="-O4 -g3 -pthread" \
> CPPFLAGS="-I/usr/local/include -L/usr/local/lib" \

It's not clear to me why you add the `-L' switch to CPPFLAGS...

> LIBS="-L/usr/local/lib" \
> INCLUDES="-I/usr/local/include" \

This isn't needed since you use the configure script.

> GNUMAKE="/usr/local/bin/gmake" \
> ./configure --with-zlib=/usr/local
>
> I do have an older freetype1 installed in
> /usr/local/include/freetype but it doesn't seem to be the source of
> some collision.

Indeed.  The compiler says that it can't find a proper definition of
`FT_Int'.  Are you sure that your OS is properly supported by the
configure scripts?  It probably makes sense to install the latest
autoconf package and call `sh autogen.sh' to regenerate them.


Werner


___
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype


[ft] Errors when compiling freetype 2.3.5 on tru64 5.1b

2008-05-02 Thread Didier Godefroy
Hi all,

I get many errors when compiling freetype 2.3.5 on tru64 5.1b:

cc -I/usr/local/include -L/usr/local/lib
-I/usr/local/freetype2/freetype-2.3.5/objs -I./builds/unix
-I/usr/local/freetype2/freetype-2.3.5/include -c -std1 -g3
-DFT_CONFIG_OPTION_SYSTEM_ZLIB "-DFT_CONFIG_CONFIG_H="
-DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H="
builds/unix/ftsystem.c  -DPIC -o
/usr/local/freetype2/freetype-2.3.5/objs/.libs/ftsystem.o
cc: Error: 
/usr/local/freetype2/freetype-2.3.5/include/freetype/internal/ftdebug.h,
line 116: In this declaration, "FT_Int" appears to be used as if it named a
type, but there is no declared type of that name visible. (typedefnotdef)
  FT_BASE( FT_Int )
--^
cc: Error: 
/usr/local/freetype2/freetype-2.3.5/include/freetype/internal/ftdebug.h,
line 144: In this parameter list, "FT_Int" must either be a type or must be
followed by a ",". (badparseparam)
  FT_Trace_Get_Name( FT_Int  idx );
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 27: #error "freetype.h of FreeType 1 has been loaded!" (errormessage)
#error "freetype.h of FreeType 1 has been loaded!"
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 28: #error "Please fix the directory search order for header files"
(errormessage)
#error "Please fix the directory search order for header files"
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 29: #error "so that freetype.h of FreeType 2 is found first."
(errormessage)
#error "so that freetype.h of FreeType 2 is found first."
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 82: In this parameter list, "FT_Module" must either be a type or must
be followed by a ",". (badparseparam)
  (*FT_Module_Constructor)( FT_Module  module );
^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 85: In this parameter list, "FT_Module" must either be a type or must
be followed by a ",". (badparseparam)
  (*FT_Module_Destructor)( FT_Module  module );
---^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 88: In this parameter list, "FT_Module" must either be a type or must
be followed by a ",". (badparseparam)
  (*FT_Module_Requester)( FT_Modulemodule,
--^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 163: In this parameter list, "FT_Library" must either be a type or must
be followed by a ",". (badparseparam)
  FT_Add_Module( FT_Library  library,
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 187: In this declaration, "FT_Module" appears to be used as if it named
a type, but there is no declared type of that name visible. (typedefnotdef)
  FT_EXPORT( FT_Module )
--^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 213: In this parameter list, "FT_Library" must either be a type or must
be followed by a ",". (badparseparam)
  FT_Remove_Module( FT_Library  library,
^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 238: Ill-formed parameter type list. (parmtyplist)
  FT_Library  *alibrary );
--^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 257: In this parameter list, "FT_Library" must either be a type or must
be followed by a ",". (badparseparam)
  FT_Done_Library( FT_Library  library );
---^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 293: In this parameter list, "FT_Library" must either be a type or must
be followed by a ",". (badparseparam)
  FT_Set_Debug_Hook( FT_Library library,
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 312: In this parameter list, "FT_Library" must either be a type or must
be followed by a ",". (badparseparam)
  FT_Add_Default_Modules( FT_Library  library );
--^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftmodapi.h,
line 395: In this parameter list, "FT_Library" must either be a type or must
be followed by a ",". (badparseparam)
  FT_Get_TrueType_Engine_Type( FT_Library  library );
---^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftglyph.h,
line 40: #error "freetype.h of FreeType 1 has been loaded!" (errormessage)
#error "freetype.h of FreeType 1 has been loaded!"
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftglyph.h,
line 41: #error "Please fix the directory search order for header files"
(errormessage)
#error "Please fix the directory search order for header files"
-^
cc: Error: /usr/local/freetype2/freetype-2.3.5/include/freetype/ftglyph.h,
line 42: #error "so that freetype.h of FreeType 2 is found first."
(er