Bug 7862 - fcfreetype.c has wrong syntax making compilation impossible
Summary: fcfreetype.c has wrong syntax making compilation impossible
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.3
Hardware: x86 (IA32) Linux (All)
: high blocker
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
: 7870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-12 13:10 UTC by Sergei Steshenko
Modified: 2006-09-01 12:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
'configure' log file (8.87 KB, text/plain)
2006-08-12 13:12 UTC, Sergei Steshenko
Details
created by 'configure' Makefile (28.55 KB, text/plain)
2006-08-12 13:13 UTC, Sergei Steshenko
Details
overall build log file (679.96 KB, text/plain)
2006-08-12 13:17 UTC, Sergei Steshenko
Details

Description Sergei Steshenko 2006-08-12 13:10:54 UTC
I am adding targets to be built to default build aub of my

http://appsfromscratch.berlios.de/

project.

The problematic target is fontconfig-2.3.2.

'configure' for it completes successfully, but 'make' fails.

The error messages are:

"
 gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/mnt/removable4/sergei/build_work/install/freetype-2.2.1/include/freetype2
-I/mnt/removable4/sergei/build_work/install/freetype-2.2.1/include -Wall
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing
-DFONTCONFIG_PATH=\"/mnt/removable4/sergei/build_work/install/fontconfig-2.3.2/etc/fonts\"
-I.. -I../src -I/mnt/removable4/sergei/build_work/install/zlib-1.2.3/include -g
-O2 -MT fcfreetype.lo -MD -MP -MF .deps/fcfreetype.Tpo -c fcfreetype.c  -fPIC
-DPIC -o .libs/fcfreetype.o
fcfreetype.c:53:10: error: #include expects "FILENAME" or <FILENAME>
fcfreetype.c:58:10: error: #include expects "FILENAME" or <FILENAME>
fcfreetype.c:59:10: error: #include expects "FILENAME" or <FILENAME>
fcfreetype.c:60:10: error: #include expects "FILENAME" or <FILENAME>
".

Indeed, the source file looks strange:

"
...
     47 #include <stdlib.h>
     48 #include <stdio.h>
     49 #include <string.h>
     50 #include "fcint.h"
     51 #include <ft2build.h>
     52 #include FT_FREETYPE_H
     53 #include FT_INTERNAL_OBJECTS_H
     54 #include FT_TRUETYPE_TABLES_H
     55 #include FT_SFNT_NAMES_H
     56 #include FT_TRUETYPE_IDS_H
     57 #include FT_TYPE1_TABLES_H
     58 #include FT_INTERNAL_STREAM_H
     59 #include FT_INTERNAL_SFNT_H
     60 #include FT_INTERNAL_TRUETYPE_TYPES_H
     61 #if HAVE_FT_GET_X11_FONT_FORMAT
     62 #include FT_XFREE86_H
     63 #endif
     64
     65 #if HAVE_FT_GET_BDF_PROPERTY
     66 #include FT_BDF_H
     67 #include FT_MODULE_H
...
".

Since 'configure' completes without an error I expect 'make' to work
flawlessly too.

Please let me know if need any additional info.
Comment 1 Sergei Steshenko 2006-08-12 13:12:36 UTC
Created attachment 6536 [details]
'configure' log file
Comment 2 Sergei Steshenko 2006-08-12 13:13:30 UTC
Created attachment 6537 [details]
created by 'configure' Makefile
Comment 3 Sergei Steshenko 2006-08-12 13:17:07 UTC
Created attachment 6538 [details]
overall build log file

See how 'configure' and 'make' are called. Almost everything should be 'local',

i.e. from places my script defined, not from system locations.
Comment 4 Sergei Steshenko 2006-08-26 15:40:10 UTC
Anybody ?
Comment 5 Keith Packard 2006-08-28 10:52:19 UTC
This is fixed on the 2.4 branch; freetype changed quite a bit
Comment 6 Sergei Steshenko 2006-08-28 16:18:13 UTC
(In reply to comment #5)
> This is fixed on the 2.4 branch; freetype changed quite a bit

If I understand correctly, it is impossible to compile fontconfig-2.3.2 in
principle - that's because 

FT_FREETYPE_H
FT_INTERNAL_OBJECTS_H
FT_TRUETYPE_TABLES_H
FT_SFNT_NAMES_H
FT_TRUETYPE_IDS_H
FT_TYPE1_TABLES_H
FT_INTERNAL_STREAM_H
FT_INTERNAL_SFNT_H
FT_INTERNAL_TRUETYPE_TYPES_H
FT_XFREE86_H

macros are defined nowhere in the source tarball and there is no '#include ...'
statement in fcfreetype.c file which would make the macros defined.

If it's the case, could you please remove any mentioning of fontconfig-2.3.2
from he project page ? It is really confusing.

If it is not the case, could you please explain how/(where from)


FT_FREETYPE_H
FT_INTERNAL_OBJECTS_H
FT_TRUETYPE_TABLES_H
FT_SFNT_NAMES_H
FT_TRUETYPE_IDS_H
FT_TYPE1_TABLES_H
FT_INTERNAL_STREAM_H
FT_INTERNAL_SFNT_H
FT_INTERNAL_TRUETYPE_TYPES_H
FT_XFREE86_H

macros get their values ?
Comment 7 Keith Packard 2006-09-01 12:41:20 UTC
This is fixed in on the 2.4 branch.
Comment 8 Keith Packard 2006-09-01 12:42:15 UTC
*** Bug 7870 has been marked as a duplicate of this bug. ***


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.