Subject: 24.2.92; x_last_font_name undefined without HAVE_FREETYPE
From: Rainer Orth <[email-masked]>
To: [email-masked]
Date: Thu, 10 Jan 2013 14:47:33 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Compiling emacs 24.2.92 with Oracle Studio 12.3 cc and HAVE_FREETYPE not
defined failed:

"/vol/src/gnu/emacs/emacs-24.2.92/src/gtkutil.c", line 4997: undefined symbol: x_last_font_name

The following trivial patch fixes the issue:

--- src/gtkutil.c~	2013-01-01 21:37:17.000000000 +0100
+++ src/gtkutil.c	2013-01-10 13:46:38.226440022 +0100
@@ -4994,7 +4994,9 @@ xg_initialize (void)
                                 "cancel", 0);
   update_theme_scrollbar_width ();
 
+#ifdef HAVE_FREETYPE
   x_last_font_name = NULL;
+#endif
 }
 
 #endif /* USE_GTK */

In GNU Emacs 24.2.92.1 (i386-pc-solaris2.10, GTK+ Version 2.19.4)
 of 2013-01-10 on zingana
Windowing system distributor `Oracle Corporation, based on X.Org Foundation sources', version 11.0.11202000
Configured using:
 `configure '--prefix=/vol/gnu' '--infodir=/vol/gnu/info'
 '--mandir=/vol/gnu/man' '--libexecdir=/vol/gnu/lib'
 '--localstatedir=/vol/gnu/share/emacs/var' '--with-x-toolkit=gtk'
 'CC=/vol/studio-12.3/bin/cc' 'LDFLAGS=-L/vol/graphics/lib
 -R/vol/graphics/lib' 'CPPFLAGS=-I/vol/graphics/include''

Important settings:
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
n f C-x k <return> C-x k <return> p p p p p p p p p 
p p p p p f C-v C-v C-v C-x k <return> C-x k <return> 
n n n n n n f C-x k <return> n n n n n n n n n n n 
n n n n n n n p f n n n n n n n n n n n n n n n n f 
C-x k <return> C-x k <return> C-x C-g p p p p p p p 
p p p p p p C-x k <return> g <escape> < n n n f C-x 
k <return> n f g C-x k <return> g C-x k <return> g 
C-x 5 2 <switch-frame> <help-echo> <help-echo> C-x 
C-f a d m / T <tab> <return> <escape> > <help-echo> 
<help-echo> C-x 5 2 <help-echo> <switch-frame> C-x 
d / v o l / g c c / s r c / d o c <return> C-x C-f 
p a t <tab> <return> <escape> > <escape> v <escape> 
v <escape> v <escape> v <escape> v C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-p <help-echo> <help-echo> 
<switch-frame> <switch-frame> C-x 5 2 <help-echo> <switch-frame> 
<help-echo> <switch-frame> <switch-frame> <help-echo> 
<help-echo> C-x d B <tab> <return> C-x 5 2 <switch-frame> 
C-x d <backspace> <escape> <backspace> m a i <tab> 
<return> <switch-frame> <help-echo> <switch-frame> 
<help-echo> <switch-frame> <switch-frame> <help-echo> 
<switch-frame> C-x d / v o l / s r c / g n u / e m 
<tab> d o <tab> <return> f C-x b * G r <tab> <return> 
<escape> x r e p o r t - e m a <tab> <return> <switch-frame> 
C-x b C-g <switch-frame> C-x b <return> <switch-frame> 
<escape> x r e p o r <tab> <return>

Recent messages:
Reading active file via nndraft...done
Checking new news...done
Mark set [2 times]
Checking new news...
Reading active file via nnnil...done
nnimap read 0k from imap.CeBiTec.Uni-Bielefeld.DE
nnimap read 387k from imap.CeBiTec.Uni-Bielefeld.DE
Reading active file via nndraft...done
Checking new news...done
byte-code: Command attempted to use minibuffer while in minibuffer
Quit

Load-path shadows:
/vol/gnu/share/emacs/site-lisp/psgml/psgml-info hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-info
/vol/gnu/share/emacs/site-lisp/psgml/psgml-parse hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-parse
/vol/gnu/share/emacs/site-lisp/psgml/psgml-other hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-other
/vol/gnu/share/emacs/site-lisp/psgml/psgml-edit hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-edit
/vol/gnu/share/emacs/site-lisp/psgml/psgml-charent hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-charent
/vol/gnu/share/emacs/site-lisp/psgml/psgml hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml
/vol/gnu/share/emacs/site-lisp/psgml/psgml-api hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-api
/vol/gnu/share/emacs/site-lisp/psgml/psgml-dtd hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.0/psgml-dtd
/vol/gnu/share/emacs/site-lisp/psgml/psgml-parse hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-parse
/vol/gnu/share/emacs/site-lisp/psgml/psgml-edit hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-edit
/vol/gnu/share/emacs/site-lisp/psgml/psgml-dtd hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-dtd
/vol/gnu/share/emacs/site-lisp/psgml/psgml-charent hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-charent
/vol/gnu/share/emacs/site-lisp/psgml/psgml-info hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-info
/vol/gnu/share/emacs/site-lisp/psgml/psgml hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml
/vol/gnu/share/emacs/site-lisp/psgml/psgml-api hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-api
/vol/gnu/share/emacs/site-lisp/psgml/psgml-other hides /vol/gnu/share/emacs/site-lisp/psgml/1.2.5/psgml-other
/vol/gnu/share/emacs/site-lisp/info-look hides /vol/src/gnu/emacs/emacs-24.2.92/lisp/info-look

Features:
(shadow emacsbug vc-rcs cperl-mode sh-script smie executable noutline
outline easy-mmode misearch multi-isearch dired gnus-draft help-mode
mule-util sort smiley ansi-color gnus-cite flow-fill mm-archive
mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table gnus-topic nndraft
nnmh gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg
gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap
utf-7 rfc2104 gnutls network-stream auth-source eieio byte-opt bytecomp
byte-compile cconv password-cache starttls nnimap parse-time tls utf7
netrc nnfolder gnus-cache gnus-sum nnnil gnus-demon nntp gnus-group
gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int
gnus-range message idna sendmail format-spec rfc822 mml easymenu mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit tex-site
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dynamic-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University