From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [23.0.60] fails to build with "--without-x " option Date: Fri, 16 May 2008 14:23:59 +0300 Message-ID: References: <1210812843.2778.10.camel@localhost.localdomain> <1210906262.13406.2.camel@brad.home.bradmwalker.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1210937089 17822 80.91.229.12 (16 May 2008 11:24:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 11:24:49 +0000 (UTC) Cc: sangu.xorg@gmail.com, emacs-devel@gnu.org To: me@bradmwalker.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 13:25:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jwy3o-00065n-2W for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 13:25:16 +0200 Original-Received: from localhost ([127.0.0.1]:52637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwy34-0006ij-JW for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 07:24:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwy2b-00069U-HN for emacs-devel@gnu.org; Fri, 16 May 2008 07:24:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwy2a-00068d-Ev for emacs-devel@gnu.org; Fri, 16 May 2008 07:24:00 -0400 Original-Received: from [199.232.76.173] (port=33528 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwy2a-000684-2x for emacs-devel@gnu.org; Fri, 16 May 2008 07:24:00 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:33894) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jwy2Z-0006EN-Js for emacs-devel@gnu.org; Fri, 16 May 2008 07:23:59 -0400 Original-Received: from HOME-C4E4A596F7 ([83.130.255.47]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K0Y00FENLO8WTI0@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Fri, 16 May 2008 14:38:33 +0300 (IDT) In-reply-to: <1210906262.13406.2.camel@brad.home.bradmwalker.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97260 Archived-At: > From: Brad Walker > Date: Thu, 15 May 2008 20:51:02 -0600 > Cc: emacs-devel@gnu.org > > On Thu, 2008-05-15 at 09:54 +0900, sangu wrote: > > emacs]$ configure --without-x > > > gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I. > > -I/home/sangu/Work/cvs/emacs/src -D_BSD_SOURCE -I/usr/include/freetype2 > > -I/usr/include/alsa -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > > -g -O2 -Wno-pointer-sign -I/usr/include/freetype2 xfaces.c > > xfaces.c: In function `merge_face_vectors': > > xfaces.c:2524: error: `FONT_SIZE_INDEX' undeclared (first use in this > > function) > > I have this problem on Fedora 9 x86_64. Confirmed. It looks like the latest font backend was not coded with the --without-x build in mind, because it doesn't have the necessary font-related substitutes for the tty-only case, like the old code did. I fixed a few obvious problems in xfaces.c, which gets me through the compilation stage, but fails during linking thusly: xfaces.o: In function `merge_face_ref':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:2700: undefined reference to `FONT_WEIGHT_NAME_NUMERIC' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:2712: undefined reference to `FONT_SLANT_NAME_NUMERIC' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:2795: undefined reference to `FONT_WIDTH_NAME_NUMERIC' xfaces.o: In function `Finternal_set_lisp_face_attribute':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:3123: undefined reference to `FONT_WEIGHT_NAME_NUMERIC' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:3137: undefined reference to `FONT_SLANT_NAME_NUMERIC' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:3307: undefined reference to `FONT_WIDTH_NAME_NUMERIC' xfaces.o: In function `Finternal_set_font_selection_order':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5389: undefined reference to `font_update_sort_order' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5389: undefined reference to `font_update_sort_order' xfaces.o: In function `realize_tty_face':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:6061: undefined reference to `FONT_WEIGHT_NAME_NUMERIC' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:6062: undefined reference to `FONT_SLANT_NAME_NUMERIC' xfaces.o: In function `tty_supports_face_attributes_p':/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5119: undefined reference to `FONT_WEIGHT_NAME_NUMERIC' :/home/e/eliz/emacs.cvs/emacs/src/xfaces.c:5122: undefined reference to `FONT_WEIGHT_NAME_NUMERIC' print.o: In function `print_object':/home/e/eliz/emacs.cvs/emacs/src/print.c:2147: undefined reference to `font_style_symbolic' collect2: ld returned 1 exit status Perhaps someone else could pick up where I left off.