freetype
[Top][All Lists]
Advanced

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

[Freetype] Problem compiling GD with TTF support


From: John Nix
Subject: [Freetype] Problem compiling GD with TTF support
Date: Sat, 15 Jun 2002 11:44:10 -0500 (CDT)

This might not be the right list to ask this question, but I'm going to 
try anyway.  I'm running a RedHat 7.2 box and I'm trying to get GD to 
compile with TTF support.  I keep getting errors from gdttf.c.  Here are 
the errors:

address@hidden SPECS]# rpm -bb gd.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.56594
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf gd-1.8.4
+ /bin/gzip -dc /usr/src/redhat/SOURCES/gd-1.8.4.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gd-1.8.4
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.56594
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd gd-1.8.4
+ make
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd.o gd.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_gd.o gd_gd.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_gd2.o gd_gd2.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_io.o gd_io.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_io_dp.o gd_io_dp.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_io_file.o gd_io_file.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_ss.o gd_ss.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_io_ss.o gd_io_ss.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_png.o gd_png.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gd_jpeg.o gd_jpeg.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdxpm.o gdxpm.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdfontt.o gdfontt.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdfonts.o gdfonts.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdfontmb.o gdfontmb.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdfontl.o gdfontl.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdfontg.o gdfontg.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdtables.o gdtables.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdft.o gdft.c
gcc -I. -I/usr/include/freetype2 -O2 -march=i386 -mcpu=i686 
-L/usr/X11R6/lib -fPIC -O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG 
-DHAVE_LIBTTF   -c -o gdttf.o gdttf.c
gdttf.c:66: parse error before `TT_Engine'
gdttf.c:66: warning: no semicolon at end of struct or union
gdttf.c:67: warning: data definition has no type or storage class
gdttf.c:68: parse error before `properties'
gdttf.c:68: warning: data definition has no type or storage class
gdttf.c:69: parse error before `instance'
gdttf.c:69: warning: data definition has no type or storage class
gdttf.c:70: parse error before `char_map_Unicode'
gdttf.c:70: warning: data definition has no type or storage class
gdttf.c:72: parse error before `matrix'
gdttf.c:72: warning: data definition has no type or storage class
gdttf.c:73: parse error before `imetrics'
gdttf.c:73: warning: data definition has no type or storage class
gdttf.c:75: parse error before `}'
gdttf.c:75: warning: data definition has no type or storage class
gdttf.c:81: parse error before `TT_Engine'
gdttf.c:81: warning: no semicolon at end of struct or union
gdttf.c:82: warning: data definition has no type or storage class
gdttf.c:87: parse error before `TT_Glyph'
gdttf.c:87: warning: no semicolon at end of struct or union
gdttf.c:88: warning: data definition has no type or storage class
gdttf.c:89: parse error before `outline'
gdttf.c:89: warning: data definition has no type or storage class
gdttf.c:90: parse error before `oldx'
gdttf.c:90: warning: data definition has no type or storage class
gdttf.c:91: parse error before `Bit'
gdttf.c:91: warning: data definition has no type or storage class
gdttf.c:95: parse error before `}'
gdttf.c:95: warning: data definition has no type or storage class
gdttf.c:100: parse error before `font_t'
gdttf.c:100: warning: no semicolon at end of struct or union
gdttf.c:101: warning: data definition has no type or storage class
gdttf.c:112: parse error before `glyph_t'
gdttf.c:112: warning: no semicolon at end of struct or union
gdttf.c:113: warning: data definition has no type or storage class
gdttf.c: In function `fontTest':
gdttf.c:315: `a' undeclared (first use in this function)
gdttf.c:315: (Each undeclared identifier is reported only once
gdttf.c:315: for each function it appears in.)
gdttf.c:315: parse error before `)'
gdttf.c:316: `b' undeclared (first use in this function)
gdttf.c:316: parse error before `)'
gdttf.c: In function `fontFetch':
gdttf.c:326: `TT_Error' undeclared (first use in this function)
gdttf.c:326: parse error before `err'
gdttf.c:327: `a' undeclared (first use in this function)
gdttf.c:328: `b' undeclared (first use in this function)
gdttf.c:328: parse error before `)'
gdttf.c:332: parse error before `)'
gdttf.c:340: `err' undeclared (first use in this function)
gdttf.c:341: `TT_Err_Could_Not_Open_File' undeclared (first use in this 
function)
gdttf.c:363: `TT_F26Dot6' undeclared (first use in this function)
gdttf.c:373: `n' undeclared (first use in this function)
gdttf.c:375: `map_found' undeclared (first use in this function)
gdttf.c:380: `i' undeclared (first use in this function)
gdttf.c:381: `platform' undeclared (first use in this function)
gdttf.c:381: `encoding' undeclared (first use in this function)
gdttf.c:412: `TT_Fixed' undeclared (first use in this function)
gdttf.c: In function `fontRelease':
gdttf.c:426: `a' undeclared (first use in this function)
gdttf.c:426: parse error before `)'
gdttf.c: In function `glyphTest':
gdttf.c:441: `a' undeclared (first use in this function)
gdttf.c:441: parse error before `)'
gdttf.c:442: `b' undeclared (first use in this function)
gdttf.c:442: parse error before `)'
gdttf.c: In function `glyphFetch':
gdttf.c:451: `a' undeclared (first use in this function)
gdttf.c:452: `b' undeclared (first use in this function)
gdttf.c:452: parse error before `)'
gdttf.c:458: parse error before `)'
gdttf.c:470: `flags' undeclared (first use in this function)
gdttf.c:470: `TTLOAD_SCALE_GLYPH' undeclared (first use in this function)
gdttf.c:472: `TTLOAD_HINT_GLYPH' undeclared (first use in this function)
gdttf.c:475: `glyph_code' undeclared (first use in this function)
gdttf.c:483: `err' undeclared (first use in this function)
gdttf.c:500: `cos_a' undeclared (first use in this function)
gdttf.c:501: `sin_a' undeclared (first use in this function)
gdttf.c:502: `crect' undeclared (first use in this function)
gdttf.c:518: `TT_Flow_Up' undeclared (first use in this function)
gdttf.c: In function `glyphRelease':
gdttf.c:538: `a' undeclared (first use in this function)
gdttf.c:538: parse error before `)'
gdttf.c: In function `bitmapTest':
gdttf.c:552: `b' undeclared (first use in this function)
gdttf.c:552: parse error before `)'
gdttf.c: In function `bitmapFetch':
gdttf.c:565: `b' undeclared (first use in this function)
gdttf.c:565: parse error before `)'
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: break statement not within loop or switch
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: break statement not within loop or switch
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: break statement not within loop or switch
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: case label not within a switch statement
gdttf.c:572: break statement not within loop or switch
gdttf.c: At top level:
gdttf.c:647: parse error before `font_t'
gdttf.c: In function `gdttfchar':
gdttf.c:660: `glyph' undeclared (first use in this function)
gdttf.c:661: parse error before `glyphkey'
gdttf.c:669: `tweenColorCache' undeclared (first use in this function)
gdttf.c:674: `font' undeclared (first use in this function)
gdttf.c:675: `next' undeclared (first use in this function)
gdttf.c:717: `glyphkey' undeclared (first use in this function)
gdttf.c:720: parse error before `)'
gdttf.c:724: `bbox' undeclared (first use in this function)
gdttf.c:725: `advance' undeclared (first use in this function)
gdttf.c:728: `im' undeclared (first use in this function)
gdttf.c:728: `fg' undeclared (first use in this function)
gdttf.c:732: `bitmapkey' undeclared (first use in this function)
gdttf.c:732: `x1' undeclared (first use in this function)
gdttf.c:733: invalid operands to binary &
gdttf.c:738: `x' undeclared (first use in this function)
gdttf.c:739: `y' undeclared (first use in this function)
gdttf.c:739: invalid operands to binary &
gdttf.c:740: `tweencolorkey' undeclared (first use in this function)
gdttf.c:764: `tweencolor' undeclared (first use in this function)
gdttf.c: In function `gdImageStringTTF':
gdttf.c:781: `TT_F26Dot6' undeclared (first use in this function)
gdttf.c:781: parse error before `ur_x'
gdttf.c:783: `TT_BBox' undeclared (first use in this function)
gdttf.c:783: `bbox' undeclared (first use in this function)
gdttf.c:784: parse error before `double'
gdttf.c:786: `font' undeclared (first use in this function)
gdttf.c:787: parse error before `fontkey'
gdttf.c:796: `fontCache' undeclared (first use in this function)
gdttf.c:797: `engine' undeclared (first use in this function)
gdttf.c:806: `fontkey' undeclared (first use in this function)
gdttf.c:810: parse error before `)'
gdttf.c:814: `sin_a' undeclared (first use in this function)
gdttf.c:815: `cos_a' undeclared (first use in this function)
gdttf.c:817: `advance_x' undeclared (first use in this function)
gdttf.c:817: `advance_y' undeclared (first use in this function)
gdttf.c:822: `tmpstr' undeclared (first use in this function)
gdttf.c:824: `next' undeclared (first use in this function)
gdttf.c:832: `ch' undeclared (first use in this function)
gdttf.c:848: `x1' undeclared (first use in this function)
gdttf.c:851: `error' undeclared (first use in this function)
gdttf.c:851: `advance' undeclared (first use in this function)
gdttf.c:854: `i' undeclared (first use in this function)
gdttf.c:855: `ll_x' undeclared (first use in this function)
gdttf.c:856: `ll_y' undeclared (first use in this function)
gdttf.c:857: `ur_x' undeclared (first use in this function)
gdttf.c:858: `ur_y' undeclared (first use in this function)
make: *** [gdttf.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.56594 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.56594 (%build)
address@hidden SPECS]# 


It looks like a programming error in the .c file.  Can someone possibly 
help me figure out what is going on with this?  Thanks...

John




reply via email to

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