tech-x11 archive

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

lib Xft errors



I was building the latest swi-prolog (http://www.swi-prolog.org/) with
the XtSetLanguageProc, Xt initializing the display problem with the C
locale in NetBSD 6.0_BETA? yet to be resolved.  (Broke from swipl-6.1.2
on NetBSD 5.1.2 to NetBSD 6.0 BETA?.  Don't yet know why.  Book order of
the Xt initialization code is out of order, but that by it self is not
sufficient to solve it.  O'reilly Xt book example code does work on
NetBSD 6.0 BETA.)

I ran across this problem with Xft, which has occasionally happened with
other programs which use it.  I know the exact version of the latest
x.org libXft varies wrt what is deemed most suitable for the netbsd tree
requirements somehow.  I did try to obtain and build libXft from x.org
but the configure; gmake compilation broke.

On checking with compilation-minor mode of emacs, the C code of the
included Xft file is not syntactically wrong and there is nothing cpp
wise tricky about how it gets included.  What is the best solution for
this --- gcc version; Xft version; fixes?

Thanks,
John R. Towler

----
Compilation started at Wed Jun 27 16:50:49

gmake
for p in clib cpp odbc table xpce sgml RDF semweb http chr clpqr nlp ssl tipc 
pldoc plunit zlib R protobufs PDT utf8proc archive; do \
    if [ -r $p/Makefile ]; then gmake -C $p || exit 1; fi; \
        done
gmake[1]: Entering directory `/usr/local/src/pl-devel/packages/clib'
gmake[1]: Nothing to be done for `top'.
gmake[1]: Leaving directory `/usr/local/src/pl-devel/packages/clib'
gmake[1]: Entering directory `/usr/local/src/pl-devel/packages/cpp'
Nothing to do for this package
gmake[1]: Leaving directory `/usr/local/src/pl-devel/packages/cpp'
gmake[1]: Entering directory `/usr/local/src/pl-devel/packages/odbc'
gmake[1]: Nothing to be done for `top'.
gmake[1]: Leaving directory `/usr/local/src/pl-devel/packages/odbc'
gmake[1]: Entering directory `/usr/local/src/pl-devel/packages/table'
gmake[1]: Nothing to be done for `top'.
gmake[1]: Leaving directory `/usr/local/src/pl-devel/packages/table'
gmake[1]: Entering directory `/usr/local/src/pl-devel/packages/xpce'
gmake[2]: Entering directory `/usr/local/src/pl-devel/packages/xpce/src'
****************
Making XPCE 6.6.66, July 2009 for i386-netbsdelf6.0.
****************
gcc -c -O2 -Wall -fno-strict-aliasing -pthread 
-I/usr/local/src/pl-devel/src/../include -I/usr/X11R7/include 
-I/usr/local/include -g -rdynamic -L/usr/X11R7/lib -L/usr/local/lib -pthread 
-I. -I/usr/local/src/pl-devel/packages/xpce/src -DHAVE_CONFIG_H 
-D__SWI_PROLOG__ -I/usr/include -D_REENTRANT -I/usr/X11R7/include 
-I/usr/X11R7/include/freetype2   x11/xcommon.c -o x11/xcommon.o
In file included from x11/include.h:72:0,
                 from x11/xcommon.c:28:
/usr/X11R7/include/X11/Xft/Xft.h:60:19: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '_XftFTlibrary'
/usr/X11R7/include/X11/Xft/Xft.h:94:5: error: expected specifier-qualifier-list 
before 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:101:5: error: expected 
specifier-qualifier-list before 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:188:17: warning: type defaults to 'int' in 
declaration of 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:188:25: error: expected ';', ',' or ')' before 
'*' token
/usr/X11R7/include/X11/Xft/Xft.h:293:12: warning: type defaults to 'int' in 
declaration of 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:293:23: error: expected ';', ',' or ')' before 
'*' token
/usr/X11R7/include/X11/Xft/Xft.h:352:1: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'XftLockFace'
/usr/X11R7/include/X11/Xft/Xft.h:391:14: warning: type defaults to 'int' in 
declaration of 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:391:23: error: expected ';', ',' or ')' before 
'*' token
/usr/X11R7/include/X11/Xft/Xft.h:397:16: warning: type defaults to 'int' in 
declaration of 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:397:24: error: expected ';', ',' or ')' before 
'*' token
/usr/X11R7/include/X11/Xft/Xft.h:406:6: error: expected declaration specifiers 
or '...' before 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:407:6: error: expected declaration specifiers 
or '...' before 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:416:1: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'XftCharIndex'
/usr/X11R7/include/X11/Xft/Xft.h:449:11: warning: type defaults to 'int' in 
declaration of 'FT_UInt'
/usr/X11R7/include/X11/Xft/Xft.h:449:19: error: expected ';', ',' or ')' before 
'*' token
gmake[2]: *** [x11/xcommon.o] Error 1
gmake[2]: Leaving directory `/usr/local/src/pl-devel/packages/xpce/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/src/pl-devel/packages/xpce'
gmake: *** [objects] Error 1

Compilation exited abnormally with code 2 at Wed Jun 27 16:50:50
In file included from x11/include.h:72:0,
                 from x11/xcommon.c:28:


#include <h/kernel.h>
#include <h/graphics.h>
#include <math.h>
#include "include.h"
#include <X11/keysym.h>
#include <X11/Xproto.h>                 /* get request codes */
#include <locale.h>

#ifdef USE_XFT
#include <ft2build.h>
#include FT_FREETYPE_H
#include <X11/Xft/Xft.h>
#endif





Home | Main Index | Thread Index | Old Index