Menu

#1 Cannot compile on recent versions of Linux distros

1.0
open
Victor
None
2013-11-05
2013-11-05
Victor
No

Compilation error while running the make command.
It concerns the files loggedfs.cpp and the Filter.h.

Possible fix:

filter.h
--- a/src/Filter.h
+++ b/src/Filter.h
@@ -27,0 +28 @@
+
@@ -29,0 +31,2 @@
+#include <string.h>
+
loggedfs.cpp
--- a/src/loggedfs.cpp
+++ b/src/loggedfs.cpp
@@ -46 +46 @@ static void openLogFile(const char* filename)

-    fileLog = open(filename, O_WRONLY | O_CREAT | O_APPEND);
+    fileLog = open(filename, O_WRONLY | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR);
@@ -1322,0 +1323 @@ int main(int argc, char* argv[])
+

Discussion


Log in to post a comment.

MongoDB Logo MongoDB