2.12.91 fails to build on mingw?

[email protected]
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
On 17.12.2017 14:27, [email protected] wrote:
> I tried cross compiling fontconfig for windows but it fails with this 
> error:
> 
> CC       fc-cache.o CCLD     fc-cache.exe 
> ../src/.libs/libfontconfig.a(fccfg.o):fccfg.c:(.text+0x5282): undefined 
> reference to `readlink'

readlink() is a POSIX function for reading symbolic links (i.e. obtaining the
filename that a link is linking to). It isn't part of MS CRT, nor does MinGW
provide it (last time i checked), although with improved Vista-and-later
symlink support it is now actually possible to implement this function on
Windows.

A stop-gap measure that might be adequate in some circumstances is to simply
obtain file information for the file in question (specifically, obtain its
name), relying on the fact that W32 API and/or CRT will resolve the symlink
(which is the documented behaviour in most cases) and give you the name of
the target file, thus acting as a poor man's readlink().

> Also, is there a way to avoid using libuuid?

Why? Last time i checked, libuuid was part of the Windows SDK that MinGW
provides. Why would there be need to avoid using it?

_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc (application/pgp-signature, 858 B)
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCAAwFiEE4MWzR43wYaAzEA49ja3pJ2dZunQFAlo2mG8SHGxybjE5ODZA
Z21haWwuY29tAAoJEI2t6SdnWbp0gNcP90bnn07BPXSI6C5HcOBf82pcsI7gP+QG
CXAH+FQ+f8A8mJZA3vffaec7Riba88xuAfK8aU2iaNq0HgzzwuAf9YGYUxsyLnKg
xdn382FT9n6awqHjyjp4Pu4SwSYAJc223yfbH4h/Qt0novf3XeBdKYPchoWi2a1J
ot0RVqyZ0kG1jQ7y0vO/nFOQOUmgUyMkOl7V9eo4LsOF5c3M8caQExlXPk3OMFs+
1Ib1B73EKnI7Srv3TWEBx7G6l00Yz9od1gYn1oJFGPQCu+oPPG2RqFk0+Ps1XWW1
ShBUced6yP3xOuxOG/PDYUcBgruP48D5KcSTmaapIAkaFBk4VYlfg7gZITmYm9kt
n1mw3CLPMzJLEgEc1dNe0cVpzSCeO4JlOa3U79SK9/jXqtu5/6BVNmert8G7k0pI
QEAUjE4w+9hO8TeYn7+luwEug8DvEIkALBTGEYCAWxm/ahxzj2R18IxULFiH9uMQ
cVXTL6MV/G7MZ4heDNpl7oSHDRJCh3XOCW/CdZPKUOeZIaI//BY8muMdGCfZBOkD
rTpcY4bQ+HiTg4g35/kjHTA7CbzU0WFmjljfqmK7NyrBhAxwuqtl7T7JAcwYlH6s
f+SB3B/c5UIoSsyI97rb2xpsCt0yS4mm5K4J88aT/CMzdY2k4HE/DxrVmjc7buNj
5zr2b78Rk2E=
=N+4U
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.