Skip to content

Failure to compile on fedora rawhide (compiler issue?) #38

@sdegler

Description

@sdegler

I just tried building 0.5.3 on fedora rawhide and got the following errors:

/builddir/build/BUILD/hyprtoolkit-0.5.3-build/hyprtoolkit-0.5.3/src/palette/ConfigManager.cpp:144:96: error: ‘NAME_MAX’ was not declared in this scope
  144 |     constexpr size_t                                     BUFFER_SIZE = sizeof(inotify_event) + NAME_MAX + 1;
      |                                                                                                ^~~~~~~~
/builddir/build/BUILD/hyprtoolkit-0.5.3-build/hyprtoolkit-0.5.3/src/palette/ConfigManager.cpp:146:103: error: request for member ‘data’ in ‘buffer’, which is of non-class type ‘int’
  146 |     const ssize_t                                        bytesRead   = read(m_inotifyFd.get(), buffer.data(), buffer.size());
      |                                                                                                       ^~~~
/builddir/build/BUILD/hyprtoolkit-0.5.3-build/hyprtoolkit-0.5.3/src/palette/ConfigManager.cpp:146:118: error: request for member ‘size’ in ‘buffer’, which is of non-class type ‘int’
  146 |     const ssize_t                                        bytesRead   = read(m_inotifyFd.get(), buffer.data(), buffer.size());
      |                                                                                                                      ^~~~
/builddir/build/BUILD/hyprtoolkit-0.5.3-build/hyprtoolkit-0.5.3/src/palette/ConfigManager.cpp:151:58: error: request for member ‘data’ in ‘buffer’, which is of non-class type ‘int’
  151 |         const auto* ev = rc<const inotify_event*>(buffer.data() + offset);
      |                                                          ^~~~

I'm assuming this means the compiler got smarter and more picky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions