Menu

#243 Indri fails to build on Mac OS X 10.10

v5.x
closed
None
1
2015-09-30
2014-10-23
fsqcds
No

Here is output of make

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lemur/obj -f ../src/Makefile
g++ -DPACKAGE_NAME=\"Indri\" -DPACKAGE_TARNAME=\"indri\" -DPACKAGE_VERSION=\"5.7\" -DPACKAGE_STRING=\"Indri\ 5.7\" -DPACKAGE_BUGREPORT=\"project@lemurproject.org\" -DYYTEXT_POINTER=1 -DINDRI_STANDALONE=1 -DHAVE_LIBM=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_NAMESPACES=/\*\*/ -DISNAN_IN_NAMESPACE_STD=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FSEEKO=1 -DHAVE_EXT_ATOMICITY_H=1 -DP_NEEDS_GNU_CXX_NAMESPACE=1 -DHAVE_MKSTEMP=1 -DHAVE_MKSTEMPS=1 -DNDEBUG=1  -stdlib=libstdc++ -g -O3 -I../include  -I../contrib/lemur/include  -I../contrib/xpdf/include  -I../contrib/antlr/include  -I../../../include -I../include/lemur -o HarvestSortMerge.o -c ../src/HarvestSortMerge.cpp
In file included from ../src/HarvestSortMerge.cpp:13:
In file included from ../include/lemur/HarvestSortMerge.hpp:19:
In file included from ../include/lemur/SortMergeTextFiles.hpp:27:
In file included from ../../../include/indri/Buffer.hpp:23:
../include/lemur/lemur-compat.hpp:223:15: error: expected ')'
inline UINT64 htonll( UINT64 native ) {
              ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
../include/lemur/lemur-compat.hpp:223:15: note: to match this '('
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from ../src/HarvestSortMerge.cpp:13:
In file included from ../include/lemur/HarvestSortMerge.hpp:19:
In file included from ../include/lemur/SortMergeTextFiles.hpp:27:
In file included from ../../../include/indri/Buffer.hpp:23:
../include/lemur/lemur-compat.hpp:227:15: error: expected ')'
inline UINT64 ntohll( UINT64 native ) {
              ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
../include/lemur/lemur-compat.hpp:227:15: note: to match this '('
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from ../src/HarvestSortMerge.cpp:13:
In file included from ../include/lemur/HarvestSortMerge.hpp:19:
In file included from ../include/lemur/SortMergeTextFiles.hpp:27:
In file included from ../../../include/indri/Buffer.hpp:23:
../include/lemur/lemur-compat.hpp:227:15: error: redefinition of '__builtin_constant_p'
inline UINT64 ntohll( UINT64 native ) {
              ^
/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
../include/lemur/lemur-compat.hpp:223:15: note: previous definition is here
inline UINT64 htonll( UINT64 native ) {
              ^
/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'
#define htonll(x)       __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
3 errors generated.
make[2]: *** [HarvestSortMerge.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Discussion

  • David Fisher

    David Fisher - 2014-12-01
    • status: open --> accepted
    • assigned_to: David Fisher
     
  • David Fisher

    David Fisher - 2015-04-21

    To ship in 06/2015 release.

     
  • David Fisher

    David Fisher - 2015-09-30
    • status: accepted --> closed
     

Log in to post a comment.