← Back to team overview

rohc team mailing list archive

Re: Building with clang

 

Yes I tried something like this patch and it builds now. Cheers. Sorry for not updating the forum

Regards
Yakir
________________________________
From: Rohc <rohc-bounces+yakir.matusovsky=mimomax.com@xxxxxxxxxxxxxxxxxxx> on behalf of Didier Barvaux <didier@xxxxxxxxxxx>
Sent: Thursday, October 18, 2018 4:40:36 AM
To: ROHC Library
Subject: Re: [Rohc] Building with clang

Yakir,

> 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

Hmm, all those functions are inlined in rohc_buf.h. It looks like clang
doesn't consider inlined functions as exported symbols.

Please try the following patch to remove the symbols from the list of
exported symbols. If it works, it would confirm my hypothesis.

diff --git a/src/librohc.symbols b/src/librohc.symbols
index 37fa846e..2e46dc2f 100644
--- a/src/librohc.symbols
+++ b/src/librohc.symbols
@@ -1,14 +1,3 @@
-rohc_buf_is_malformed
-rohc_buf_is_empty
-rohc_buf_pull
-rohc_buf_push
-rohc_buf_avail_len
-rohc_buf_data_at
-rohc_buf_data
-rohc_buf_prepend
-rohc_buf_append
-rohc_buf_append_buf
-rohc_buf_reset
  rohc_version
  rohc_strerror
  rohc_get_ext_descr


Regards,
Didier

_______________________________________________
Mailing list: https://launchpad.net/~rohc
Post to     : rohc@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~rohc
More help   : https://help.launchpad.net/ListHelp

References