[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undefined reference to ftfont_variation_glyphs
From: |
Sebastian Rose |
Subject: |
Re: undefined reference to ftfont_variation_glyphs |
Date: |
Fri, 27 Mar 2009 18:19:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
Sorry for answering my own mail here.
This is the fix I used (and that works fine):
<sh:/home/sebastian/emacs-CVS/emacs> cvs diff src/ftfont.c
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
</#part>
- Sebastian
Sebastian Rose <address@hidden> 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
>
Re: undefined reference to ftfont_variation_glyphs, Chong Yidong, 2009/03/27
Re: undefined reference to ftfont_variation_glyphs, Kenichi Handa, 2009/03/30