From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Rose Newsgroups: gmane.emacs.devel Subject: Re: undefined reference to ftfont_variation_glyphs Date: Fri, 27 Mar 2009 18:19:18 +0100 Message-ID: <87vdpu28a1.fsf@kassiopeya.MSHEIMNETZ> References: <873acy3n9m.fsf@kassiopeya.MSHEIMNETZ> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1238174187 3310 80.91.229.12 (27 Mar 2009 17:16:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2009 17:16:27 +0000 (UTC) To: emacs-devel Mailinglist Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 27 18:17:44 2009 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 1LnFgd-0003vB-8g for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2009 18:17:43 +0100 Original-Received: from localhost ([127.0.0.1]:42488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnFfG-0003hO-0o for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2009 13:16:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LnFfB-0003gu-39 for emacs-devel@gnu.org; Fri, 27 Mar 2009 13:16:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnFf5-0003gV-JX for emacs-devel@gnu.org; Fri, 27 Mar 2009 13:16:11 -0400 Original-Received: from [199.232.76.173] (port=51642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnFf5-0003gS-Cj for emacs-devel@gnu.org; Fri, 27 Mar 2009 13:16:07 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:47796) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LnFf4-0003tI-EP for emacs-devel@gnu.org; Fri, 27 Mar 2009 13:16:07 -0400 Original-Received: (qmail invoked by alias); 27 Mar 2009 17:16:04 -0000 Original-Received: from p5B0420CA.dip0.t-ipconnect.de (EHLO kassiopeya.MSHEIMNETZ.gmx.de) [91.4.32.202] by mail.gmx.net (mp064) with SMTP; 27 Mar 2009 18:16:04 +0100 X-Authenticated: #8529601 X-Provags-ID: V01U2FsdGVkX1+3GDQ0w8q3NFdB6SI4WA+7lpMMLRwD8hJhxmuhkT /xGnxwiZofMgoG In-Reply-To: <873acy3n9m.fsf@kassiopeya.MSHEIMNETZ> (Sebastian Rose's message of "Fri, 27 Mar 2009 13:27:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.79 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:109882 Archived-At: --=-=-= Sorry for answering my own mail here. This is the fix I used (and that works fine): cvs diff src/ftfont.c --=-=-= Content-Type: text/x-patch Content-Disposition: inline Index: src/ftfont.c =================================================================== RCS file: /sources/emacs/emacs/src/ftfont.c,v retrieving revision 1.45 diff -r1.45 ftfont.c 383a384,387 > > #ifdef HAVE_LIBOTF > #ifdef HAVE_M17N_FLT > #ifdef HAVE_OTF_GET_VARIATION_GLYPHS 385a390,392 > #endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ > #endif /* HAVE_M17N_FLT */ > #endif /* HAVE_LIBOTF */ 424a432,433 > #ifdef HAVE_LIBOTF > #ifdef HAVE_M17N_FLT 429a439,440 > #endif > #endif - Sebastian Sebastian Rose writes: > Since a few days I cannot build CVS emacs 23 on debian. > > $ gcc --version > gcc (Debian 4.3.3-3) 4.3.3 > > ftfont.o:(.data+0x68): undefined reference to `ftfont_variation_glyphs' > > > This happens after a fresh checkout on current Debian testing. > > > `ftfont_variation_glyphs()' is not always surounded with the same #ifdefs! > > > The function itself is surounded by: > > #ifdef HAVE_M17N_FLT > #ifdef HAVE_LIBOTF > #ifdef HAVE_OTF_GET_VARIATION_GLYPHS > > /* FUNCTION DEFINITION HERE */ > > #endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ > #endif /* HAVE_M17N_FLT */ > #endif /* HAVE_LIBOTF */ > > > While declaration (line 384) and usage (line 431) of the function > `ftfont_variation_glyphs()' are surounded solely by: > > > #ifdef HAVE_OTF_GET_VARIATION_GLYPHS > > /* FUNCTION DECLARATION HERE */ > > #endif /* HAVE_OTF_GET_VARIATION_GLYPHS */ > > > > I'm not able to send a patch though, since I don't know which one is > wrong. Anyway, supplementing the #ifdefs around declaration and usage > with helps and I can build emacs. > > > > Output of `sh$ make' _before_ the change: > > > ftfont.o:(.data+0x68): undefined reference to `ftfont_variation_glyphs' > collect2: ld returned 1 exit status > make[1]: *** [temacs] Fehler 1 > make[1]: Leaving directory `/home/sebastian/develop/emacs-CVS/emacs/src' > make: *** [src] Fehler 2 > > > Best Regards, > > Sebastian > --=-=-=--