Subject: Re: bug#21133: Fwd: [Bug 555622] app-editors/emacs-vcs-25.0.50_pre20150630 : ftcrfont.c:109:5: error:‘ftfont_driver’ undeclared (first use in this function)

From: Eli Zaretskii <[email-masked]>
Date: Sun, 26 Jul 2015 18:01:32 +0300

> Date: Sun, 26 Jul 2015 14:14:06 +0200
> From: Ulrich Mueller <[email-masked]>
> Cc: Toralf Förster <[email-masked]>
> 
> There is a similar problem with --with-cairo --without-png, by the
> way. When linking temacs:
> image.o:(.data+0x90): undefined reference to `png_load'

The culprit seems to be this condition around line 5645 of image.c:

  #if defined HAVE_PNG && !defined HAVE_NS

It should say this instead, I think:

  #if (defined HAVE_PNG && !defined HAVE_NS) || defined USE_CAIRO

But I cannot test that.