rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #02295
Building with clang
Didier,
I am trying to build rohc-2.1.0 for macOS and getting this one for make all,
libtool: link: gcc -dynamiclib -o .libs/librohc.3.dylib -Wl,-force_load,./common/.libs/librohc_common.a -Wl,-force_load,./comp/.libs/librohc_comp.a -Wl,-force_load,./decomp/.libs/librohc_decomp.a -g -O2 -g -O2 -install_name /usr/lib/librohc.3.dylib -compatibility_version 4 -current_version 4.0 -Wl,-single_module -Wl,-exported_symbols_list,.libs/librohc-symbols.expsym
Undefined symbols for architecture x86_64:
"_rohc_buf_append", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_append_buf", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_avail_len", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_data", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_data_at", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_is_empty", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_is_malformed", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_prepend", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_pull", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_push", referenced from:
-exported_symbol[s_list] command line option
"_rohc_buf_reset", referenced from:
-exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [librohc.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
The version I use,
$ clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
Please advise. I after an rohc_stats which can run on my MacBook.
Regards,
Yakir
Follow ups