Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

CANNOT LINK EXECUTABLE "data/local/tmp/avs/bin/SampleApp": cannot locate symbol "OpenSSL_version_num" referenced by "/data/local/tmp/avs/lib/libcurl.so"... Aborted (core dumped) #1672

Closed
1 task
xuyongqing9527 opened this issue Apr 14, 2020 · 4 comments

Comments

@xuyongqing9527
Copy link

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

What is the expected behavior?

What behavior are you observing?

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <v1.19.0>

Tell us what hardware you're using:

arm

Tell us about your OS (Type & version):

  • android 8.1:

Fill the lines below to configure android build.

PLATFORM="android"
API_LEVEL="27"
TARGET_SYSTEM="arm"
DEVICE_INSTALL_PATH="data/local/tmp/avs"
BUILD_TYPE="release"

ad@ad-virtual-machine:/avs1.19$ bash startsample.sh
CANNOT LINK EXECUTABLE "data/local/tmp/avs/bin/SampleApp": cannot locate symbol "OpenSSL_version_num" referenced by "/data/local/tmp/avs/lib/libcurl.so"...
Aborted (core dumped)
ad@ad-virtual-machine:
/avs1.19$ openssl version
OpenSSL 1.1.1 11 Sep 2018

@scotthea-amazon
Copy link
Contributor

scotthea-amazon commented Apr 14, 2020

Hello @xuyongqing9527,

Are you following the SDK's Android set-up instructions?

Assuming so:

  • Might you have made any modifications to those steps
  • Did you run in to any errors along the way?
  • Can you look for the openssl libraries under /data/local/tmp/avs/lib?
  • Your check of "openssl version" reports 1.1.1, but the android.sh script downloads and builds 1.1.0.

I am closing this issue pending your response. If you have more information to follow up on, please re-open this issue and add the new information and comments.

Best regards,
-SWH

@xuyongqing9527
Copy link
Author

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

What is the expected behavior?

What behavior are you observing?

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <v1.19.0>

Tell us what hardware you're using:

arm

Tell us about your OS (Type & version):

  • android 8.1:

Fill the lines below to configure android build.

PLATFORM="android"
API_LEVEL="27"
TARGET_SYSTEM="arm"
DEVICE_INSTALL_PATH="data/local/tmp/avs"
BUILD_TYPE="release"

ad@ad-virtual-machine:/avs1.19$ bash startsample.sh CANNOT LINK EXECUTABLE "data/local/tmp/avs/bin/SampleApp": cannot locate symbol "OpenSSL_version_num" referenced by "/data/local/tmp/avs/lib/libcurl.so"... Aborted (core dumped) ad@ad-virtual-machine:/avs1.19$

openssl version

OpenSSL 1.1.0 25 Aug 2016

1、I don't have made any modifications to those steps
2、Libssl.so exists
libACL.so libCapabilitiesDelegate.so libMRM.so libavutil.so
libADSL.so libCaptions.so libNotifications.so libc++_shared.so
libAFML.so libCaptionsLib.so libPlaybackController.so libcrypto.a
libAIP.so libCertifiedSender.so libPlaylistParser.so libcrypto.so
libAVSCommon.so libContextManager.so libRegistrationManager.so libcurl.la
libAVSGatewayManager.so libDefaultClient.so libSQLiteStorage.so libcurl.so
libAVSSystem.so libDeviceSettings.so libSpeakerManager.so libnghttp2.a
libAlerts.so libDoNotDisturbCA.so libSpeechEncoder.so libnghttp2.la
libAlexa.so libEndpoints.so libSpeechSynthesizer.so libsqlite3.la
libAndroidSLESMediaPlayer.so libEqualizer.so libSynchronizeStateSender.so libsqlite3.so
libAndroidUtilities.so libEqualizerImplementations.so libSystemSoundPlayer.so libssl.a
libApiGateway.so libExternalMediaPlayer.so libTemplateRuntime.so libssl.so
libAudioPlayer.so libInteractionModel.so libavcodec.so libswresample.so
libAudioResources.so libInterruptModel.so libavdevice.so libswscale.so
libBluetooth.so libKWD.so libavfilter.so pkgconfig
libCBLAuthDelegate.so libLibSampleApp.so libavformat.so
3、 adb shell LD_LIBRARY_PATH=/data/local/tmp/avs/lib /data/local/tmp/avs/bin/SampleApp /data/local/tmp/avs/AlexaClientSDKConfig.json DEBUG9

log :

01-01 01:59:00.008 499 499 I ActivityManager: Killing 1869:com.android.cellbroadcastreceiver/u0a10 (adj 906): empty #17
01-01 01:59:02.116 2583 2583 F libc : CANNOT LINK EXECUTABLE "/data/app/alexa/bin/SampleApp": cannot locate symbol "OpenSSL_version_num" referenced by "/data/app/alexa/lib/libcurl.so"...
01-01 01:59:02.118 2583 2583 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2583 (SampleApp), pid 2583 (SampleApp)
01-01 01:59:02.176 2589 2589 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 01:59:02.177 2589 2589 F DEBUG : Build fingerprint: 'alps/full_aiv8167sm3_bsp/aiv8167sm3_bsp:8.1.0/O11019/1583289761:userdebug/test-keys'
01-01 01:59:02.177 2589 2589 F DEBUG : Revision: '0'
01-01 01:59:02.177 2589 2589 F DEBUG : ABI: 'arm'
01-01 01:59:02.177 2589 2589 F DEBUG : pid: 2583, tid: 2583, name: SampleApp >>> /data/app/alexa/bin/SampleApp <<<
01-01 01:59:02.177 2589 2589 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-01 01:59:02.181 2589 2589 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/data/app/alexa/bin/SampleApp": cannot locate symbol "OpenSSL_version_num" referenced by "/data/app/alexa/lib/libcurl.so"...'
01-01 01:59:02.181 2589 2589 F DEBUG : r0 00000000 r1 00000a17 r2 00000006 r3 00000008
01-01 01:59:02.181 2589 2589 F DEBUG : r4 00000a17 r5 00000a17 r6 beccf5bc r7 0000010c
01-01 01:59:02.181 2589 2589 F DEBUG : r8 00000000 r9 beccf5e0 sl beccf850 fp becd0a3c
01-01 01:59:02.181 2589 2589 F DEBUG : ip becd085c sp beccf5a8 lr ac0f16cf pc ac0efb88 cpsr 200f0030
01-01 01:59:02.187 2589 2589 F DEBUG :
01-01 01:59:02.187 2589 2589 F DEBUG : backtrace:
01-01 01:59:02.187 2589 2589 F DEBUG : #00 pc 0005fb88 /system/bin/linker (__dl_abort+63)
01-01 01:59:02.187 2589 2589 F DEBUG : #1 pc 0001025f /system/bin/linker (__dl___linker_init+2794)
01-01 01:59:02.187 2589 2589 F DEBUG : #2 pc 00014f74 /system/bin/linker (_start+4)
01-01 01:59:02.381 499 645 W NativeCrashListener: Couldn't find ProcessRecord for pid 2583

@mvelegon-amzn
Copy link
Contributor

Hi @xuyongqing9527 could you try using the absolute path for DEVICE_INSTALL_PATH instead of the relative path?

The issue seems to be that the libcurl used at linking time is not the libcurl being used at runtime.

@kclchan
Copy link
Contributor

kclchan commented Jun 9, 2020

I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error.

@kclchan kclchan closed this as completed Jun 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants