[Webkit-unassigned] [Bug 208858] Compilation failure: ‘struct stat’ has no member named ‘st_birthtime’
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 10 08:29:33 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=208858
Carlos Alberto Lopez Perez <clopez at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clopez at igalia.com
--- Comment #1 from Carlos Alberto Lopez Perez <clopez at igalia.com> ---
The code that is failing to build for you should not be compiled on Linux because its inside a pre-processor block of "if HAVE(STAT_BIRTHTIME)".
And CMake should detect that and don't define HAVE_STAT_BIRTHTIME to true.
Can you check in the file CMakeCache.txt file inside your build the value of HAVE_STAT_BIRTHTIME? If it is defined to true (1), then we need to look at what caused cmake to define that to true.
The check that defines this is in the file Source/cmake/OptionsCommon.cmake in the call WEBKIT_CHECK_HAVE_STRUCT(HAVE_STAT_BIRTHTIME "struct stat" st_birthtime sys/stat.h) that calls the macro defined in Source/cmake/WebKitFeatures.cmake which ends calling cmake function check_struct_has_member() which its available at least since cmake 3.0 https://cmake.org/cmake/help/v3.0/module/CheckStructHasMember.html
Can you paste here the output of the following command:
grep -C25 -r HAVE_STAT_BIRTHTIME ${build-directory}/CMake*
?
it should show the value that cmake picked for this, as well as how it performed the check
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200310/9588fcff/attachment.htm>
More information about the webkit-unassigned
mailing list