freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] wrong headers from freetype-2.1.4rc1


From: Martin MOKREJŠ
Subject: [Devel] wrong headers from freetype-2.1.4rc1
Date: Wed, 8 Oct 2003 14:35:00 +0200 (CEST)

Hi,
  the compiler on Tru64Unix 5.1A has problems to compile
against freetype2. The same problem is in older freetype2 releases.
The following is demonstrated when compiling mozilla, but also gd-1.8.4 can
substitute.

make[1]: Entering directory `/afs/gsf.de/sources/mozilla/gfx/src/ps'
nsDeviceContextPS.cpp
Building deps for nsDeviceContextPS.cpp
cxx -o nsDeviceContextPS.o -c -DOSTYPE=\"OSF1V5\" -DOSARCH=\"OSF1\" 
-DHAVE_DEPENDENT_LIBS -I../.. -I./..  -I../../../dist/include/xpcom 
-I../../../dist/include/string -I../../../dist/include/widget 
-I../../../dist/include/pref -I../../../dist/include/caps 
-I../../../dist/include/locale -I../../../dist/include/uconv 
-I../../../dist/include/view -I../../../dist/include/necko 
-I../../../dist/include/imglib2 -I../../../dist/include/gfx 
-I../../../dist/include -I/afs/gsf.de/sources/mozilla/dist/include/nspr     -I. 
-I/software/@sys/usr/include -I/software/@sys/usr/include/freetype2      
-I/software/@sys/usr/include -I/usr/local2/include -I/usr/local/include 
-I/usr/local2/openssl/include  -O0 -arch ev56 -g2 -noexceptions -ieee -ptr 
../../../dist/cxx_repository -pthread  -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING 
-g -I/software/@sys/usr/include/gtk-1.2 -I/software/@sys/usr/include/glib-1.2 
-I/software/@sys/usr/lib/glib/include  -I/software/@sys/usr/include 
-I/usr/local2/include -I/usr!
 /local/include -I/usr/local2/openssl/include  
-DNSCAP_DISABLE_TEST_DONTQUERY_CASES=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 
-DNEED_USLEEP_PROTOTYPE=1 -DD_INO=d_ino -DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 
-DHAVE_SIGINFO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NC_DNS=1 -DJS_THREADSAFE=1 -DNS_PRINT_PREVIEW=1 
-DNS_PRINTING=1 -DMOZ_REFLOW_PERF=1 -DMOZ_REFLOW_PERF_DSP=1 
-DMOZILLA_VERSION=\"1.6a\"  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT 
nsDeviceContextPS.cpp
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 86:
          identifier "FT_Library" is undefined
    FT_Library             library;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 88:
          identifier "FT_Glyph_Format" is undefined
    FT_Glyph_Format        format;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 89:
          identifier "FT_Vector" is undefined
    FT_Vector              advance;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 127:
          identifier "FT_Int" is undefined
    FT_Int       left;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 128:
          identifier "FT_Int" is undefined
    FT_Int       top;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 129:
          identifier "FT_Bitmap" is undefined
    FT_Bitmap    bitmap;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 163:
          identifier "FT_Outline" is undefined
    FT_Outline   outline;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 185:
          this declaration has no storage class or type specifier
  FT_EXPORT( FT_Error )  FT_Get_Glyph( FT_GlyphSlot  slot,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 185:
          identifier "FT_Error" is undefined
  FT_EXPORT( FT_Error )  FT_Get_Glyph( FT_GlyphSlot  slot,
-------------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 185:
          expected a ";"
  FT_EXPORT( FT_Error )  FT_Get_Glyph( FT_GlyphSlot  slot,
-------------------------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 207:
          this declaration has no storage class or type specifier
  FT_EXPORT( FT_Error )  FT_Glyph_Copy( FT_Glyph   source,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 207:
          declaration has already been defined by variable "FT_EXPORT"
          (declared at line 185)
  FT_EXPORT( FT_Error )  FT_Glyph_Copy( FT_Glyph   source,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 207:
          expected a ";"
  FT_EXPORT( FT_Error )  FT_Glyph_Copy( FT_Glyph   source,
-------------------------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 236:
          this declaration has no storage class or type specifier
  FT_EXPORT( FT_Error )  FT_Glyph_Transform( FT_Glyph    glyph,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 236:
          declaration has already been defined by variable "FT_EXPORT"
          (declared at line 185)
  FT_EXPORT( FT_Error )  FT_Glyph_Transform( FT_Glyph    glyph,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 236:
          expected a ";"
  FT_EXPORT( FT_Error )  FT_Glyph_Transform( FT_Glyph    glyph,
-------------------------^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 314:
          omission of explicit type is nonstandard ("int" assumed)
  FT_EXPORT( void )  FT_Glyph_Get_CBox( FT_Glyph  glyph,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 314:
          declaration is incompatible with "int FT_EXPORT" (declared at line
          185)
  FT_EXPORT( void )  FT_Glyph_Get_CBox( FT_Glyph  glyph,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 314:
          expected a "{"
  FT_EXPORT( void )  FT_Glyph_Get_CBox( FT_Glyph  glyph,
---------------------^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 462:
          parsing restarts here after previous syntax error
FT_END_HEADER
^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 462:
          missing return statement at end of non-void function "FT_EXPORT"
FT_END_HEADER
^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 83:
          identifier "FT_Pointer" is undefined
  typedef FT_Pointer  FTC_FaceID;
----------^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 113:
          omission of explicit type is nonstandard ("int" assumed)
  typedef FT_Error  (*FTC_Face_Requester)( FTC_FaceID  face_id,
----------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 113:
          type "FT_Error" may not be initialized
  typedef FT_Error  (*FTC_Face_Requester)( FTC_FaceID  face_id,
----------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 113:
          identifier "FTC_Face_Requester" is undefined
  typedef FT_Error  (*FTC_Face_Requester)( FTC_FaceID  face_id,
----------------------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 113:
          expected a ";"
  typedef FT_Error  (*FTC_Face_Requester)( FTC_FaceID  face_id,
-----------------------------------------^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 116:
          parsing restarts here after previous syntax error
                                           FT_Face*    aface );
--------------------------------------------------------------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 139:
          identifier "FT_UShort" is undefined
    FT_UShort   pix_width;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 140:
          identifier "FT_UShort" is undefined
    FT_UShort   pix_height;
----^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 212:
          omission of explicit type is nonstandard ("int" assumed)
  FT_EXPORT( FT_Error )  FTC_Manager_New( FT_Library          library,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 212:
          more than one instance of overloaded function "FT_EXPORT" has "C"
          linkage
  FT_EXPORT( FT_Error )  FTC_Manager_New( FT_Library          library,
--^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 212:
          expected a "{"
  FT_EXPORT( FT_Error )  FTC_Manager_New( FT_Library          library,
-------------------------^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 347:
          parsing restarts here after previous syntax error
FT_END_HEADER
^
cxx: Warning: /software/@sys/usr/include/freetype2/freetype/ftcache.h, line 347:
          missing return statement at end of non-void function
          "FT_EXPORT(FT_Error) C"
FT_END_HEADER
^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/cache/ftlru.h, line 
70:
          identifier "FT_Pointer" is undefined
  typedef FT_Pointer  FT_LruKey;
----------^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/cache/ftlru.h, line 
76:
          identifier "FT_ListNodeRec" is undefined
    FT_ListNodeRec  root;
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/cache/ftlru.h, line 
89:
          identifier "FT_UInt" is undefined
    FT_UInt  lru_size;      /* object size in bytes */
----^
cxx: Error: /software/@sys/usr/include/freetype2/freetype/cache/ftlru.h, line 
110:
          expected a type specifier
    FT_Bool  (*compare_element)( FT_LruNode  node,
--------------^
cxx: Info: Error limit reached.
cxx: Info: 30 errors detected in the compilation of "nsDeviceContextPS.cpp".
cxx: Info: Compilation terminated.
make[1]: *** [nsDeviceContextPS.o] Error 1
make[1]: Leaving directory `/afs/gsf.de/sources/mozilla/gfx/src/ps'


I can compile with gcc. Is there a possibility to adjust the source code 
headers?

-- 
Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585



reply via email to

[Prev in Thread] Current Thread [Next in Thread]