Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'S_IRUSR' was not declared in this scope #46

Open
yurivict opened this issue Sep 12, 2021 · 0 comments
Open

error: 'S_IRUSR' was not declared in this scope #46

yurivict opened this issue Sep 12, 2021 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Sep 12, 2021

Describe the bug

/usr/local/bin/g++10  -I/disk-samsung/freebsd-ports/cad/opentimer/work/OpenTimer-18d28ff -O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-omit-frame-pointer  -Wl,-rpath=/usr/local/lib/gcc10 -O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-omit-frame-pointer  -Wl,-rpath=/usr/local/lib/gcc10 -pthread -std=c++17 -MD -MT CMakeFiles/utility.dir/unittest/utility.cpp.o -MF CMakeFiles/utility.dir/unittest/utility.cpp.o.d -o CMakeFiles/utility.dir/unittest/utility.cpp.o -c /disk-samsung/freebsd-ports/cad/opentimer/work/OpenTimer-18d28ff/unittest/utility.cpp
In file included from /disk-samsung/freebsd-ports/cad/opentimer/work/OpenTimer-18d28ff/ot/utility/utility.hpp:5,
                 from /disk-samsung/freebsd-ports/cad/opentimer/work/OpenTimer-18d28ff/unittest/utility.cpp:4:
/disk-samsung/freebsd-ports/cad/opentimer/work/OpenTimer-18d28ff/ot/utility/logger.hpp: In member function 'void ot::Logger::redir(const string&)':
/disk-samsung/freebsd-ports/cad/opentimer/work/OpenTimer-18d28ff/ot/utility/logger.hpp:157:64: error: 'S_IRUSR' was not declared in this scope
  157 |   int fd = ::open(fpath.c_str(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
      |                                                                ^~~~~~~

Reason: #include <sys/stat.h> is missing.

OS: FreeBSD 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant