Re: failed to built xemacs-devel port on FreeBSD
KIRIYAMA Kazuhiko <[email protected]> Thu, 12 May 2016 06:26:33 +0900
| Newsgroups | gmane.emacs.xemacs.beta |
|---|---|
| Message-ID | <[email protected]> |
At Wed, 11 May 2016 19:54:33 +0900,
my wrote:
>
> At Wed, 11 May 2016 17:33:26 +0900,
> my wrote:
> >
> > Hi, all
> >
> > I'm preparing to send-pr FreeBSD XEmacs ports, and one issue
> > leave to not solved yet that xemacs-devel port build failed
> > problem. `make configure' passed and then `make build',
> > failed to compile src/redisplay-x.c as below:
> >
> >
> > cc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts -Wpacked -Wpointer-arith -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -g -O2 -pipe -I/usr/local/include/libpng16 -I/usr/local/include/freetype2 -fno-strict-aliasing -std=gnu89 -Demacs -I. -I/var/ports/var/ports/homekxj/editors/xemacs-devel/work/xemacs-21.5.34/src -DHAVE_CONFIG_H -I/usr/local/include -I/usr/local/include redisplay-x.c
> > In file included from redisplay-x.c:33:
> > ./redisplay-xlike-inc.c:270:20: error: expected expression
> > *(XftChar16 *)text_storage = ucs;
> > ^
> > ./redisplay-xlike-inc.c:270:9: error: use of undeclared identifier 'XftChar16'
> > *(XftChar16 *)text_storage = ucs;
> > ^
> > ./redisplay-xlike-inc.c:271:31: error: use of undeclared identifier 'XftChar16'
> > text_storage += sizeof (XftChar16);
> > ^
> > ./redisplay-xlike-inc.c:472:12: warning: implicit declaration of function 'FONT_INSTANCE_X_XFTFONT' [-Wimplicit-function-declaration]
> > else if (FONT_INSTANCE_X_XFTFONT (fi))
> > ^
> > ./redisplay-xlike-inc.c:474:14: error: unknown type name 'XGlyphInfo'
> > static XGlyphInfo glyphinfo;
> > ^
> > ./redisplay-xlike-inc.c:478:4: warning: implicit declaration of function 'XftTextExtents16' [-Wimplicit-function-declaration]
> > XftTextExtents16 (dpy,
> > ^
> > ./redisplay-xlike-inc.c:480:20: error: expected expression
> > (XftChar16 *) run->ptr, run->len, &glyphinfo);
> > ^
> > ./redisplay-xlike-inc.c:480:9: error: use of undeclared identifier 'XftChar16'
> > (XftChar16 *) run->ptr, run->len, &glyphinfo);
> > ^
> > ./redisplay-xlike-inc.c:478:22: error: use of undeclared identifier 'dpy'
> > XftTextExtents16 (dpy,
> > ^
> > ./redisplay-xlike-inc.c:484:4: warning: implicit declaration of function 'XftTextExtents8' [-Wimplicit-function-declaration]
> > XftTextExtents8 (dpy,
> > ^
> > ./redisplay-xlike-inc.c:484:21: error: use of undeclared identifier 'dpy'
> > XftTextExtents8 (dpy,
> > ^
> > ./redisplay-xlike-inc.c:1023:10: error: unknown type name 'XftColor'
> > static XftColor fg, bg;
> > ^
> > ./redisplay-xlike-inc.c:1024:3: error: use of undeclared identifier 'XftDraw'
> > XftDraw *xftDraw;
> > ^
> > ./redisplay-xlike-inc.c:1024:12: error: use of undeclared identifier 'xftDraw'
> > XftDraw *xftDraw;
> > ^
> > ./redisplay-xlike-inc.c:1027:8: warning: implicit declaration of function 'FRAME_X_XFTDRAW' [-Wimplicit-function-declaration]
> > if (!FRAME_X_XFTDRAW (f)) {
> > ^
> > ./redisplay-xlike-inc.c:1028:27: warning: implicit declaration of function 'XftDrawCreate' [-Wimplicit-function-declaration]
> > FRAME_X_XFTDRAW (f) = XftDrawCreate (dpy, x_win, visual, cmap);
> > ^
> > ./redisplay-xlike-inc.c:1028:25: error: expression is not assignable
> > FRAME_X_XFTDRAW (f) = XftDrawCreate (dpy, x_win, visual, cmap);
> > ~~~~~~~~~~~~~~~~~~~ ^
> > ./redisplay-xlike-inc.c:1030:3: error: use of undeclared identifier 'xftDraw'
> > xftDraw = FRAME_X_XFTDRAW (f);
> > ^
> > ./redisplay-xlike-inc.c:1174:9: warning: implicit declaration of function 'xft_convert_color' [-Wimplicit-function-declaration]
> > fg = XFT_FROB_LISP_COLOR (cursor_cachel->foreground, 0);
> > ^
> > ./redisplay-xlike-inc.c:1036:3: note: expanded from macro 'XFT_FROB_LISP_COLOR'
> > xft_convert_color (dpy, cmap, visual, \
> > ^
> > ./redisplay-xlike-inc.c:1175:4: error: use of undeclared identifier 'bg'
> > bg = XFT_FROB_LISP_COLOR (cursor_cachel->background, 0);
> > ^
> > ./redisplay-xlike-inc.c:1197:4: error: use of undeclared identifier 'bg'
> > bg = XFT_FROB_LISP_COLOR (cachel->background, 0);
> > ^
> > ./redisplay-xlike-inc.c:1206:4: error: use of undeclared identifier 'bg'
> > bg = XFT_FROB_LISP_COLOR (cachel->background, 0);
> > ^
> > ./redisplay-xlike-inc.c:1213:2: error: use of undeclared identifier 'XftFont'; did you mean 'XSetFont'?
> > XftFont *rf = FONT_INSTANCE_X_XFTFONT (fi);
> > ^~~~~~~
> > XSetFont
> > /usr/local/include/X11/Xlib.h:3215:12: note: 'XSetFont' declared here
> > extern int XSetFont(
> > ^
> > In file included from redisplay-x.c:33:
> > ./redisplay-xlike-inc.c:1213:11: error: use of undeclared identifier 'rf'
> > XftFont *rf = FONT_INSTANCE_X_XFTFONT (fi);
> > ^
> > ./redisplay-xlike-inc.c:1215:6: error: use of undeclared identifier 'rf'
> > if (rf)
> > ^
> > ./redisplay-xlike-inc.c:1225:3: warning: implicit declaration of function 'XftDrawSetClip' [-Wimplicit-function-declaration]
> > XftDrawSetClip (xftDraw, clip_reg);
>
> Solved by [3], and fix by [4] patches, then build passed :-)
>
> [3] http://tracker.xemacs.org/XEmacs/its/msg2323
> [4] http://people.freebsd.org/~kiri/ports/editors/xemacs-devel/files/patch-*-xlike-*
>
> BTW built binaries are b2m, ctags, etags, gnuattach,
> gnuclient, gnudoit, ootags and xemacs-21.5-b34. Is that OK?
>
> root@freebsd-11c:/var/ports/homekxj/editors/xemacs-devel # ll /var/ports/var/ports/homekxj/editors/xemacs-devel/work/stage/usr/local/bin/
> total 15680
> -r-xr-xr-x 1 root wheel 8936 May 11 19:32 b2m*
> -r-xr-xr-x 1 root wheel 132616 May 11 19:32 ctags*
> -r-xr-xr-x 1 root wheel 325919 May 11 19:32 etags*
> -r-xr-xr-x 1 root wheel 776 May 11 19:32 gnuattach*
> -r-xr-xr-x 1 root wheel 42471 May 11 19:32 gnuclient*
> -r-xr-xr-x 1 root wheel 966 May 11 19:32 gnudoit*
> -r-xr-xr-x 1 root wheel 256920 May 11 19:32 ootags*
> lrwxr-xr-x 1 root wheel 15 May 11 19:32 xemacs@ -> xemacs-21.5-b34
> -rwxr-xr-x 1 root wheel 9229260 May 11 19:32 xemacs-21.5-b34*
> -rw-r--r-- 1 root wheel 5956632 May 11 19:32 xemacs-21.5-b34-573939c4.dmp
> lrwxr-xr-x 1 root wheel 15 May 11 19:32 xemacs-script@ -> xemacs-21.5-b34
> root@freebsd-11c:/var/ports/homekxj/editors/xemacs-devel #
I've still some questions about building xemacs-21.5-b34.
(1) Why say "Inhibiting IPv6 canonicalization at startup."
in spite of `--disable-ipv6-cname' ? [1][2]
(2) Why info files installed to
`/usr/local/lib/xemacs-21.5.34/info' instead of
`/usr/local/lib/xemacs-21.5-b34/info' with default? [2]
(3) Why does not show "Compiling in support for GIF images."
in spite of `--with-gif' ? [1][2]
[1] http://people.freebsd.org/~kiri/xemacs/xemacs-devel_build.log
[2] http://people.freebsd.org/~kiri/xemacs/xemacs-21.5.34/config.log
Regards
---
KIRIYAMA Kazuhiko