Skip to content

make error on macos #150

@IlIllIl

Description

@IlIllIl

make version: GNU Make 3.81 built for i386-apple-darwin11.3.0

run make and get these error:

clang: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument]
In file included from ffmpegfs.cc:54:
In file included from ./ffmpegfs.h:116:
./ffmpeg_utils.h:283:18: error: too few template arguments for class template 'map'
    typedef std::map<SAMPLE_FMT, const FORMAT> FORMAT_MAP;   /**< @brief Map of formats. One entry per format derivative. */
                 ^
/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__tree:55:66: note: template is declared here
template <class, class, class, class> class _LIBCPP_TEMPLATE_VIS map;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                            ^
In file included from ffmpegfs.cc:54:
In file included from ./ffmpegfs.h:116:
./ffmpeg_utils.h:393:18: error: too few template arguments for class template 'map'
    typedef std::map<FILETYPE, const Format_Options> OPTIONS_MAP;   /**< @brief Map of options. One entry per supported destination type. */
                 ^
/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__tree:55:66: note: template is declared here
template <class, class, class, class> class _LIBCPP_TEMPLATE_VIS map;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                            ^
In file included from ffmpegfs.cc:54:
In file included from ./ffmpegfs.h:116:
./ffmpeg_utils.h:1026:15: error: too few template arguments for class template 'map'
typename std::map<const std::string, const T, comp>::const_iterator search_by_value(const std::map<const std::string, const T, comp> & mapOfWords, T value)
              ^
/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__tree:55:66: note: template is declared here
template <class, class, class, class> class _LIBCPP_TEMPLATE_VIS map;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                            ^
In file included from ffmpegfs.cc:54:
In file included from ./ffmpegfs.h:116:
./ffmpeg_utils.h:1026:96: error: too few template arguments for class template 'map'
typename std::map<const std::string, const T, comp>::const_iterator search_by_value(const std::map<const std::string, const T, comp> & mapOfWords, T value)
                                                                                               ^
/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__tree:55:66: note: template is declared here
template <class, class, class, class> class _LIBCPP_TEMPLATE_VIS map;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                            ^
In file included from ffmpegfs.cc:54:
In file included from ./ffmpegfs.h:116:
./ffmpeg_utils.h:1028:19: error: too few template arguments for class template 'map'
    typename std::map<const std::string, const T, comp>::const_iterator it = mapOfWords.cbegin();
                  ^
/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__tree:55:66: note: template is declared here
template <class, class, class, class> class _LIBCPP_TEMPLATE_VIS map;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                            ^
In file included from ffmpegfs.cc:54:
In file included from ./ffmpegfs.h:116:
./ffmpeg_utils.h:1086:24: error: implicit instantiation of undefined template 'std::basic_ostringstream<char>'
    std::ostringstream stream;
                       ^
/Applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iosfwd:131:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_ostringstream;
                               ^
ffmpegfs.cc:58:10: fatal error: 'sys/sysinfo.h' file not found
#include <sys/sysinfo.h>
         ^~~~~~~~~~~~~~~
7 errors generated.
make[2]: *** [ffmpegfs.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions