Errors in fccache.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
This was first reported by Vincent Torri (
http://lists.freedesktop.org/archives/fontconfig/2006-September/002494.html ),
but doesn't appear to have been answered. Using the MinGW compiler on Win32
we're getting:

fccache.c: In function `random_level':
fccache.c:226: warning: implicit declaration of function `random'
fccache.c:226: warning: nested extern declaration of `random'
fccache.c: In function `FcDirCacheMapFd':
fccache.c:446: error: `size' undeclared (first use in this function)
fccache.c:446: error: (Each undeclared identifier is reported only once
fccache.c:446: error: for each function it appears in.)
fccache.c: In function `FcMakeDirectory':
fccache.c:694: error: too many arguments to function `mkdir'
fccache.c:696: error: too many arguments to function `mkdir'

I believe the mkdir() problem is fixed by simply deleting the second
argument from the code.

As regards the problem with 'size', I took a punt and replaced it with
'fd_stat->st_size'. Is that the appropriate thing to do ? At least it
enabled compilation to proceed to a linking failure because 'random' is an
'undefined reference'.
Where is random() defined, and what's the workaround to replace it on Win32
?

Cheers,
Rob

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux