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

Linux build issues... #14

Open
epitron opened this issue Jun 19, 2012 · 0 comments
Open

Linux build issues... #14

epitron opened this issue Jun 19, 2012 · 0 comments

Comments

@epitron
Copy link

epitron commented Jun 19, 2012

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>
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