tangramdotdev / packages

A collection of community maintained Tangram packages.
https://www.tangram.dev
MIT License
8 stars 2 forks source link

Fix gettext on macOS #79

Closed deciduously closed 4 months ago

deciduously commented 4 months ago

The is a libiconv issue when building gettext on macOS. Tail of the log:

clang -DHAVE_CONFIG_H -I. -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib -I..  -I. -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib -I.. -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC    -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib/libcroco  -DDEPENDS_ON_LIBICONV=1   -O2 -pipe -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fasynchronous-unwind-tables -fexceptions -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -w -c /Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib/ialloc.c
clang -DHAVE_CONFIG_H -I. -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib -I..  -I. -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib -I.. -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle -Iglib -DIN_LIBTEXTSTYLE -DLIBXML_STATIC    -I/Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib/libcroco  -DDEPENDS_ON_LIBICONV=1   -O2 -pipe -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fasynchronous-unwind-tables -fexceptions -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fstack-protector-strong -w -c /Users/benlovy/.tangram/artifacts/dir_017mmjmak1nex9evbnn4ze33zkxbra7r5w24cz5nf9r6v02mvh6cfg/libtextstyle/lib/iconv-ostream.c
iconv-ostream.c:311:3: error: incompatible function pointer types initializing 'void (*)(iconv_ostream_t, ostream_flush_scope_t)' (aka 'void (*)(struct any_ostream_representation *, ostream_flush_scope_t)') with an expression of type 'void (iconv_ostream_t)' (aka 'void (struct any_ostream_representation *)') [-Wincompatible-function-pointer-types]
  iconv_ostream__flush,
  ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [Makefile:6192: config.h] Error 1
make[4]: Leaving directory '/Users/benlovy/.tangram/tmp/0682fnhyw1wr5fqnv9mek4f0gr/Users/tangram/work/libtextstyle/lib'
make[3]: *** [Makefile:1999: all-recursive] Error 1
make[3]: Leaving directory '/Users/benlovy/.tangram/tmp/0682fnhyw1wr5fqnv9mek4f0gr/Users/tangram/work/libtextstyle'
make[2]: *** [Makefile:1927: all] Error 2
make[2]: Leaving directory '/Users/benlovy/.tangram/tmp/0682fnhyw1wr5fqnv9mek4f0gr/Users/tangram/work/libtextstyle'
make[1]: *** [Makefile:408: all-recursive] Error 1
make[1]: Leaving directory '/Users/benlovy/.tangram/tmp/0682fnhyw1wr5fqnv9mek4f0gr/Users/tangram/work'
make: *** [Makefile:364: all] Error 2