gridfs-fuse icon indicating copy to clipboard operation
gridfs-fuse copied to clipboard

Linux build issues...

Open epitron opened this issue 13 years ago • 0 comments

There are a couple problems I had building in Linux.

  1. sys/types.h
  2. boost libraries with -mt suffixes (which aren't necessary -- see the comments on this issue: https://bugs.archlinux.org/task/22471)

This patch fixes the problems:

diff --git a/Makefile b/Makefile
index e73c523..f0c600d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 CC=g++
 CCOPTS=-g -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include
-LDOPTS=-L/usr/local/lib -L. -lmongoclient -lfuse_ino64 -lboost_thread-mt -lboost_filesystem-mt -lboost_system-mt
+LDOPTS=-L/usr/local/lib -L. -lmongoclient -lfuse -lboost_thread -lboost_filesystem -lboost_system

 mount_gridfs : operations.o local_gridfile.o main.o options.o
    $(CC) -o mount_gridfs main.o operations.o options.o local_gridfile.o $(LDOPTS)
diff --git a/local_gridfile.h b/local_gridfile.h
index 2353a1a..70e48b0 100644
--- a/local_gridfile.h
+++ b/local_gridfile.h
@@ -1,6 +1,7 @@
 #ifndef _LOCAL_GRIDFILE_H
 #define _LOCAL_GRIDFILE_H

+#include "sys/types.h"
 #include <vector>
 #include <cstring>
 #include <iostream>

epitron avatar Jun 19 '12 20:06 epitron