[Replicant] [PATCH 6/6] Fix undefined references to MD5_{Init, Update, Final}

Joonas Kylmälä joonas.kylmala at iki.fi
Sun Jun 2 16:28:08 UTC 2019


Hi,

this patch does not apply for replicant-6.0 branch. Please re-send with
correction.

Joonas

Denis 'GNUtoo' Carikli:
> Before this change, libsamsung-ril was using
> libsamsung-ipc as a static library.
> 
> However, libsamsung-ipc is dynamically linked to
> libcrypto.
> 
> Statically linking libsamsung-ril to libsamsung-ipc
> results in the following errors, which disapear when
> using dynamic linking:
>   rfs.c:50: error: undefined reference to 'MD5_Init'
>   rfs.c:51: error: undefined reference to 'MD5_Update'
>   rfs.c:52: error: undefined reference to 'MD5_Update'
>   rfs.c:53: error: undefined reference to 'MD5_Final'
> 
> Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
> ---
>  Android.mk | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/Android.mk b/Android.mk
> index 993d3fb..bbcd695 100644
> --- a/Android.mk
> +++ b/Android.mk
> @@ -47,8 +47,7 @@ LOCAL_C_INCLUDES := \
>  
>  LOCAL_CFLAGS := -DRIL_SHLIB
>  
> -LOCAL_SHARED_LIBRARIES := libcutils libnetutils libutils liblog libpower
> -LOCAL_STATIC_LIBRARIES := libsamsung-ipc
> +LOCAL_SHARED_LIBRARIES := libcutils libnetutils libutils liblog libpower libsamsung-ipc
>  
>  LOCAL_PRELINK_MODULE := false
>  LOCAL_MODULE_TAGS := optional
> 


More information about the Replicant mailing list