tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems compiling harfbuzz on MirBSD



Hi all,

these days, harfbuzz is a dependency for many things, including gtk2.
Unfortunately, I cannot get it to build on MirBSD/i386.  The error
message is:

  CXX    libharfbuzz_la-hb-font.lo
In file included from hb-open-file-private.hh:32,
                 from hb-font.cc:35:
hb-open-type-private.hh: In function `const Type& OT::Null() [with
Type = OT::Tag]':
hb-open-type-private.hh:614: error: call of overloaded `CastP(const
char[5])' is ambiguous
hb-open-type-private.hh:56: note: candidates are: const Type*
OT::CastP(const TObject*) [with Type = OT::Tag, TObject = char]
hb-open-type-private.hh:59: note:                 Type*
OT::CastP(TObject*) [with Type = OT::Tag, TObject = const char]
hb-open-type-private.hh: In function `const Type& OT::Null() [with
Type = OT::Index]':
hb-open-type-private.hh:623: error: call of overloaded `CastP(const
char[3])' is ambiguous
hb-open-type-private.hh:56: note: candidates are: const Type*
OT::CastP(const TObject*) [with Type = OT::Index, TObject = char]
hb-open-type-private.hh:59: note:                 Type*
OT::CastP(TObject*) [with Type = OT::Index, TObject = const char]
hb-open-type-private.hh: In static member function `static const Type*
OT::Sanitizer<Type>::lock_instance(hb_blob_t*) [with Type =
OT::OpenTypeFontFile]':
hb-font.cc:595:   instantiated from here
hb-open-type-private.hh:346: error: call of overloaded `CastP(const
char*&)' is ambiguous
hb-open-type-private.hh:56: note: candidates are: const Type*
OT::CastP(const TObject*) [with Type = OT::OpenTypeFontFile, TObject =
char]
hb-open-type-private.hh:59: note:                 Type*
OT::CastP(TObject*) [with Type = OT::OpenTypeFontFile, TObject = const
char]
hb-open-type-private.hh: In static member function `static const Type*
OT::Sanitizer<Type>::lock_instance(hb_blob_t*) [with Type =
OT::head]':
hb-font.cc:746:   instantiated from here
hb-open-type-private.hh:346: error: call of overloaded `CastP(const
char*&)' is ambiguous
hb-open-type-private.hh:56: note: candidates are: const Type*
OT::CastP(const TObject*) [with Type = OT::head, TObject = char]
hb-open-type-private.hh:59: note:                 Type*
OT::CastP(TObject*) [with Type = OT::head, TObject = const char]
hb-open-type-private.hh: In static member function `static const Type*
OT::Sanitizer<Type>::lock_instance(hb_blob_t*) [with Type =
OT::maxp]':
hb-font.cc:771:   instantiated from here
hb-open-type-private.hh:346: error: call of overloaded `CastP(const
char*&)' is ambiguous
hb-open-type-private.hh:56: note: candidates are: const Type*
OT::CastP(const TObject*) [with Type = OT::maxp, TObject = char]
hb-open-type-private.hh:59: note:                 Type*
OT::CastP(TObject*) [with Type = OT::maxp, TObject = const char]
gmake[4]: *** [libharfbuzz_la-hb-font.lo] Error 1
gmake[4]: Leaving directory
`/usr/pkgsrc/fonts/harfbuzz/work/harfbuzz-0.9.16/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/pkgsrc/fonts/harfbuzz/work/harfbuzz-0.9.16/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/usr/pkgsrc/fonts/harfbuzz/work/harfbuzz-0.9.16/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/fonts/harfbuzz/work/harfbuzz-0.9.16'
gmake: *** [all] Error 2
*** Error code 2

Presumably, the gcc version (3.4.6) is too old. Does anyone have an
idea, short of renaming one of the two CastP instances?

--Benny.


Home | Main Index | Thread Index | Old Index