curl / Mailing Lists / curl-library / Single Mail

curl-library

libcurl segmentation error on arm-none-linux-gnueabi multithread

From: ang nickolas via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 15 Nov 2018 18:52:25 +0800

hi,

i am unable to run the following example on
https://curl.haxx.se/libcurl/c/threaded-ssl.html

on an arm-none-linux-gnueabi with multithread. it works fine if its only on
a single thread.

i am using:
- ubuntu 14.04 cross compile using arm-none-linux-gnueabi-g++
- openssl 1.0.1u
- libcurl 7.62.0
my configuration for cross compiling is as such:
export CROSS_COMPILE="arm-none-linux-gnueabi"
export CPPFLAGS="-I$HOME/openssl_lib_arm/include"
export LDFLAGS="-L$HOME/openssl_lib_arm/lib"
export AR=${CROSS_COMPILE}-ar
export AS=${CROSS_COMPILE}-as
export LD=${CROSS_COMPILE}-ld
export RANLIB=${CROSS_COMPILE}-ranlib
export CC=${CROSS_COMPILE}-gcc
export NM=${CROSS_COMPILE}-nm
export LIBS="-ldl -lpthread"
./configure -enable-static --disable-shared --prefix=$HOME/libcurl_arm
--target=${CROSS_COMPILE} --host=${CROSS_COMPILE} --build=i586-pc-linux-gnu
--with-ssl

am i missing an configuration or something? could someone share some light
please.

regards,
nick

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-11-15