[tlbuild] failing cjkutilsb (hbf2gf)

Peter Breitenlohner peb at mppmu.mpg.de
Sat May 19 14:21:08 CEST 2012


On Sat, 19 May 2012, Mojca Miklavec wrote:

> after switching back to a version before pmx update, it is now
> cjkutils that fails to build on 64-bit Mac OS X 10.7.3 with clang:
> ...
> /bin/sh ./libtool --tag=CC   --mode=link clang -Wimplicit
> -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -g
> -o hbf2gf hbf2gf-hbf.o hbf2gf-hbf2gf.o
> /Users/mojca/app/tex/tl/source/Work/texk/kpathsea/libkpathsea.la
> libtool: link: clang -Wimplicit -Wreturn-type
> -Wdeclaration-after-statement -Wno-unknown-pragmas -g -o hbf2gf
> hbf2gf-hbf.o hbf2gf-hbf2gf.o
> /Users/mojca/app/tex/tl/source/Work/texk/kpathsea/.libs/libkpathsea.a
> Undefined symbols for architecture x86_64:
>  "_read_row", referenced from:
>      _make_pixel_array in hbf2gf-hbf2gf.o
>  "_write_row", referenced from:
>      _make_pixel_array in hbf2gf-hbf2gf.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hi Mojca,

I suspect clang mishandles the way these two functions are declared inline.

Can you try to replace (4x) in hbf2gf.c '__inline__' by 'static __inline__'. 
If that doesn't work you should remove those '__inline__'.

Regards
Peter Breitenlohner <peb at mppmu.mpg.de>


More information about the tlbuild mailing list