On 03/20/2017 12:12 PM, Eli Zaretskii wrote: >> From: joakim@verona.se >> Date: Mon, 20 Mar 2017 19:10:54 +0100 >> >> I get funny linkage problems. I used to be able to build emacs fine on >> this machine. >> >> I suppose theres something wrong with fedora. >> >> CCLD temacs >> /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../lib64/libgtk-3.so: undefined reference to `cairo_surface_set_device_scale' >> /usr/lib64/libpangoft2-1.0.so.0: undefined reference to `FcWeightToOpenType' >> /usr/lib64/libpangoft2-1.0.so.0: undefined reference to `FcWeightFromOpenType' >> /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../lib64/libgtk-3.so: undefined reference to `cairo_surface_get_device_scale' > Looks like some development packages are missing, nothing to do with > Emacs per se (because the unresolved references are in GTK and Pango, > not in Emacs). > For what it's worth I have no problem building Emacs master on Fedora 25 x86-64. I configured with './configure --enable-gcc-warnings --with-cairo'. The command 'ldd -v src/temacs' outputs the attached file. The symbol cairo_surface_set_device_scale is defined in the file /lib64/libcairo.so.2.11400.8.The other two symbols you had trouble with are defined in the file /lib64/libfontconfig.so.1.9.2. These are supplied by the packages cairo-1.14.8-1.fc25.x86_64 and fontconfig-2.12.1-1.fc25.x86_64, respectively. So perhaps the following command will help fix your problem: dnf install cairo-devel fontconfig-devel