Bug 436 - compiling mkfontscale breaks down
Summary: compiling mkfontscale breaks down
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/mkfont* (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium minor
Assignee: Jim Gettys
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-09 04:56 UTC by marcel.runte
Modified: 2011-10-15 17:08 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description marcel.runte 2004-04-09 04:56:04 UTC
Hi, well I tried to compile and got this

make[4]: Entering directory `<somepath>/gnome/xc-build/programs/mkfontscale'
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing -ansi -pedantic -Wall
-Wpointer-arith -Wundef   -I/usr/include/freetype2
-I/usr/include/freetype2/config  -I../../exports/include/X11  -I../..
-I../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L         
                -D_POSIX_SOURCE -D_XOPEN_SOURCE                                
-D_BSD_SOURCE -D_SVID_SOURCE                                -D_GNU_SOURCE      
                     -DFUNCPROTO=15 -DNARROWPROTO   -DFREETYPE2  -DXFREE86_FT2 
-DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'   -c -o
mkfontscale.o mkfontscale.c
mkfontscale.c: In function `getName':
mkfontscale.c:325: warning: comparison between signed and unsigned
mkfontscale.c: In function `nameWidth':
mkfontscale.c:416: warning: comparison between signed and unsigned
mkfontscale.c: In function `doDirectory':
mkfontscale.c:857: error: `BDF_PropertyRec' undeclared (first use in this function)
mkfontscale.c:857: error: (Each undeclared identifier is reported only once
mkfontscale.c:857: error: for each function it appears in.)
mkfontscale.c:857: error: parse error before "prop"
mkfontscale.c:858: warning: implicit declaration of function `FT_Get_BDF_Property'
mkfontscale.c:858: error: `prop' undeclared (first use in this function)
mkfontscale.c:859: error: `BDF_PROPERTY_TYPE_ATOM' undeclared (first use in this
function)
mkfontscale.c: In function `notice_foundry':
mkfontscale.c:1200: warning: comparison between signed and unsigned
mkfontscale.c: In function `vendor_foundry':
mkfontscale.c:1224: warning: comparison between signed and unsigned
make[4]: *** [mkfontscale.o] Fehler 1

I use

gcc --version
gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux)

on

uname -sr
Linux 2.4.20-4GB

(Suse Professional 8.2)

any hints?
Comment 1 Takaaki Nomura 2004-04-12 02:31:51 UTC
I managed to solve the problem with the following patch.
Linux doesn't have freetype if freetype isn't installed. :-)

--- xc/config/cf/linux.cf.org   2004-04-03 06:47:10.000000000 +0900
+++ xc/config/cf/linux.cf       2004-04-12 18:12:21.000000000 +0900
@@ -487,11 +487,11 @@
 #ifndef HasExpat
 # define HasExpat              YES
 #endif
-
+/*
 #ifndef HasFreetype2
 # define HasFreetype2          YES
 #endif
-
+*/
 #define AvoidNullMakeCommand   YES
 #ifndef DebuggableLibraries
 #define DebuggableLibraries    NO


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.