[HarfBuzz] mingw compilation problem with 811eefe

Behdad Esfahbod behdad at behdad.org
Mon Sep 17 12:45:47 PDT 2012


On 09/17/2012 03:40 PM, Werner LEMBERG wrote:
> 
>>>   hb-ot-shape.cc:603: undefined reference to `__chkstk_ms'
>>>   harfbuzz-indic.cpp:1199: undefined reference to `__chkstk_ms'
>>>
>>> This is minGW; gcc version 4.5.2.
>>
>> Interesting.  How do you invoke configure?
> 
> Via ./autogen.sh, with no arguments.
> 
>> Where did you get your FreeType binary from?
> 
> I compiled and installed it by myself.
> 
>> Oh, is this mingw on msys on an actual Windows machine?
> 
> Yes.  It's soo painful to work with :-)
> 
> According to various google comments, it seems to be a problem with my
> mingw installation of gcc.  Hmm.  IIRC, I've compiled Qt 4.8.0 just
> fine without problems, so I wonder what triggers the problem in
> harfbuzz...

In HarfBuzz we override the linker to use a C linker, not C++, and we don't
link with libstdc++.  This works with GCC and mingw on Linux.  Not sure on
Windows.  Try overriding the linker.  Ie. remove this line from src/Makefile.am:

libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)


b



More information about the HarfBuzz mailing list