v. 1.0.3 macOS build issues
/Library/Developer/CommandLineTools/usr/bin/make -C c_src/myhtml library MyCORE_BUILD_WITHOUT_THREADS=YES
sed -e 's,@version\@,4.0.2,g' -e 's,@prefix\@,/usr/local,g' -e 's,@exec_prefix\@,/usr/local,g' -e 's,@libdir\@,lib,g' -e 's,@includedir\@,include,g' -e 's,@cflags\@,-I{includedir}/mycore -I{includedir}/myencoding -I{includedir}/myhtml,g' -e 's,@libname\@,myhtml,g' -e 's,@description\@,Fast C/C++ HTML 5 Parser. Using threads.,g' myhtml.pc.in > myhtml.pc
mkdir -p bin lib test_suite
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/./incoming.o source/mycore/./incoming.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/./myosi.o source/mycore/./myosi.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/./mystring.o source/mycore/./mystring.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/./mythread.o source/mycore/./mythread.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/./thread_queue.o source/mycore/./thread_queue.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/./utils.o source/mycore/./utils.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/avl_tree.o source/mycore/utils/avl_tree.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mchar_async.o source/mycore/utils/mchar_async.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mcobject.o source/mycore/utils/mcobject.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mcobject_async.o source/mycore/utils/mcobject_async.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mcsimple.o source/mycore/utils/mcsimple.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mcsync.o source/mycore/utils/mcsync.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mctree.o source/mycore/utils/mctree.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/mycore/utils/mhash.o source/mycore/utils/mhash.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myencoding/./detect.o source/myencoding/./detect.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myencoding/./encoding.o source/myencoding/./encoding.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myencoding/./mystring.o source/myencoding/./mystring.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./callback.o source/myhtml/./callback.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./charef.o source/myhtml/./charef.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./data_process.o source/myhtml/./data_process.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./myhtml.o source/myhtml/./myhtml.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./mynamespace.o source/myhtml/./mynamespace.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./mystring.o source/myhtml/./mystring.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./parser.o source/myhtml/./parser.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./rules.o source/myhtml/./rules.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./serialization.o source/myhtml/./serialization.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./stream.o source/myhtml/./stream.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tag.o source/myhtml/./tag.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tag_init.o source/myhtml/./tag_init.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./token.o source/myhtml/./token.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tokenizer.o source/myhtml/./tokenizer.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tokenizer_doctype.o source/myhtml/./tokenizer_doctype.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tokenizer_end.o source/myhtml/./tokenizer_end.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tokenizer_script.o source/myhtml/./tokenizer_script.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myhtml/./tree.o source/myhtml/./tree.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myport/posix/mycore/./io.o source/myport/posix/mycore/./io.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myport/posix/mycore/./memory.o source/myport/posix/mycore/./memory.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myport/posix/mycore/./perf.o source/myport/posix/mycore/./perf.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myport/posix/mycore/./thread.o source/myport/posix/mycore/./thread.c
cc -Wall -Werror -pipe -pedantic -Isource -DMyCORE_BUILD_WITHOUT_THREADS -fPIC -O2 -Wno-unused-variable -Wno-unused-function -std=c99 -DMODEST_BUILD_OS=Darwin -DMODEST_PORT_NAME=posix -DMyCORE_OS_DARWIN -c -o source/myport/posix/mycore/utils/mcsync.o source/myport/posix/mycore/utils/mcsync.c
cc -shared source/mycore/./incoming.o source/mycore/./myosi.o source/mycore/./mystring.o source/mycore/./mythread.o source/mycore/./thread_queue.o source/mycore/./utils.o source/mycore/utils/avl_tree.o source/mycore/utils/mchar_async.o source/mycore/utils/mcobject.o source/mycore/utils/mcobject_async.o source/mycore/utils/mcsimple.o source/mycore/utils/mcsync.o source/mycore/utils/mctree.o source/mycore/utils/mhash.o source/myencoding/./detect.o source/myencoding/./encoding.o source/myencoding/./mystring.o source/myhtml/./callback.o source/myhtml/./charef.o source/myhtml/./data_process.o source/myhtml/./myhtml.o source/myhtml/./mynamespace.o source/myhtml/./mystring.o source/myhtml/./parser.o source/myhtml/./rules.o source/myhtml/./serialization.o source/myhtml/./stream.o source/myhtml/./tag.o source/myhtml/./tag_init.o source/myhtml/./token.o source/myhtml/./tokenizer.o source/myhtml/./tokenizer_doctype.o source/myhtml/./tokenizer_end.o source/myhtml/./tokenizer_script.o source/myhtml/./tree.o source/myport/posix/mycore/./io.o source/myport/posix/mycore/./memory.o source/myport/posix/mycore/./perf.o source/myport/posix/mycore/./thread.o source/myport/posix/mycore/utils/mcsync.o -o lib/libmyhtml-4.0.2.dylib
ln -sf libmyhtml-4.0.2.dylib lib/libmyhtml.dylib
ln -sf libmyhtml-4.0.2.dylib lib/libmyhtml-4.dylib
ln -sf libmyhtml-4.0.2.dylib lib/libmyhtml-4.0.dylib
ar crus lib/libmyhtml_static.a source/mycore/./incoming.o source/mycore/./myosi.o source/mycore/./mystring.o source/mycore/./mythread.o source/mycore/./thread_queue.o source/mycore/./utils.o source/mycore/utils/avl_tree.o source/mycore/utils/mchar_async.o source/mycore/utils/mcobject.o source/mycore/utils/mcobject_async.o source/mycore/utils/mcsimple.o source/mycore/utils/mcsync.o source/mycore/utils/mctree.o source/mycore/utils/mhash.o source/myencoding/./detect.o source/myencoding/./encoding.o source/myencoding/./mystring.o source/myhtml/./callback.o source/myhtml/./charef.o source/myhtml/./data_process.o source/myhtml/./myhtml.o source/myhtml/./mynamespace.o source/myhtml/./mystring.o source/myhtml/./parser.o source/myhtml/./rules.o source/myhtml/./serialization.o source/myhtml/./stream.o source/myhtml/./tag.o source/myhtml/./tag_init.o source/myhtml/./token.o source/myhtml/./tokenizer.o source/myhtml/./tokenizer_doctype.o source/myhtml/./tokenizer_end.o source/myhtml/./tokenizer_script.o source/myhtml/./tree.o source/myport/posix/mycore/./io.o source/myport/posix/mycore/./memory.o source/myport/posix/mycore/./perf.o source/myport/posix/mycore/./thread.o source/myport/posix/mycore/utils/mcsync.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libmyhtml_static.a(myosi.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libmyhtml_static.a(mythread.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libmyhtml_static.a(perf.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libmyhtml_static.a(thread.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: lib/libmyhtml_static.a(mcsync.o) has no symbols
cc -o priv/myhtml_worker c_src/myhtml_worker.c c_src/myhtml/lib/libmyhtml_static.a -g -O2 -std=c99 -pedantic -Wcomment -Wextra -Wno-old-style-declaration -Wall -Wno-unused-parameter -I/usr/local/Cellar/erlang/23.0.2/lib/erlang/erts-11.0.2/include -Ic_src/myhtml/include -lpthread -L/usr/local/Cellar/erlang/23.0.2/lib/erlang/erts-11.0.2/../lib/erl_interface-4.0/lib -I/usr/local/Cellar/erlang/23.0.2/lib/erlang/erts-11.0.2/../lib/erl_interface-4.0/include -DOTP_22_OR_NEWER -lei -pthread
warning: unknown warning option '-Wno-old-style-declaration'; did you mean '-Wno-out-of-line-declaration'? [-Wunknown-warning-option]
1 warning generated.
Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_ei_writev_fill_ctx_t__ in libei.a(ei_portio.o)
_ei_connect_ctx_t__ in libei.a(ei_portio.o)
_ei_accept_ctx_t__ in libei.a(ei_portio.o)
_ei_read_fill_ctx_t__ in libei.a(ei_portio.o)
_ei_write_fill_ctx_t__ in libei.a(ei_portio.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [priv/myhtml_worker] Error 1
==> fast_html
could not compile dependency :fast_html, "mix compile" failed. You can recompile this dependency with "mix deps.compile fast_html", update it with "mix deps.update fast_html" or clean it with "mix deps.clean fast_html"
Clean compile doesn't fix the issue.