New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 42824 - DirectoryWatcher-linux.cpp fails to build on SLES11
Summary: DirectoryWatcher-linux.cpp fails to build on SLES11
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: 9.0
Hardware: PC Windows NT
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks: release-9.0.0
  Show dependency tree
 
Reported: 2019-07-30 06:24 PDT by Brian Cain
Modified: 2019-08-06 01:23 PDT (History)
6 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Cain 2019-07-30 06:24:25 PDT
IN_EXCL_UNLINK is supported by this kernel (`3.0.101-108.77-default`) but the symbol's not provided.

SLES11 has glibc-devel-2.11.3-17.110.19.2

9.0 rc1 clang build fails like so:

/local/mnt/workspace/bcain_0721/llvm/utils/release/rc1/llvm.src/tools/clang/lib/DirectoryWatcher
/linux/DirectoryWatcher-linux.cpp:339:9: error: use of undeclared identifier 'IN_EXCL_UNLINK'
      | IN_EXCL_UNLINK
Comment 1 Hans Wennborg 2019-07-30 06:31:48 PDT
+jkorous

Needs more #ifdef?
Comment 2 Hans Wennborg 2019-08-05 01:35:44 PDT
Ping?
Comment 3 Jan Korous 2019-08-05 11:48:59 PDT
Should be fixed by 57f4bacf65a.

I just replaced the kernel version check by #ifdef IN_EXCL_UNLINK.
Comment 4 Hans Wennborg 2019-08-06 01:23:11 PDT
(In reply to Jan Korous from comment #3)
> Should be fixed by 57f4bacf65a.
> 
> I just replaced the kernel version check by #ifdef IN_EXCL_UNLINK.

Thanks! Merged to release_90 in r367995.