Page 1 of 1

RSPTCPServer build on Alpine Linux

Posted: Tue Mar 12, 2019 3:23 pm
by nk2042
I'm trying to build the RSPTCPServer on a small linux distro, Alpine Linux.

During the build process, I got these outputs:

Code: Select all

alpine:~/RSPTCPServer/build# cmake ..
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found libsdrplay: /usr/local/include, /usr/local/lib/libmirsdrapi-rsp.so
-- LIBSDRPLAY_INCLUDE_DIRS - /usr/local/include
-- LIBSDRPLAY_LIBRARIES - /usr/local/lib/libmirsdrapi-rsp.so
-- Configuring done
-- Generating done
-- Build files have been written to: /root/RSPTCPServer/build
alpine:~/RSPTCPServer/build#

Code: Select all

alpine:~/RSPTCPServer/build# make
Scanning dependencies of target rsp_tcp
[ 50%] Building C object CMakeFiles/rsp_tcp.dir/rsp_tcp.c.o
[100%] Linking C executable rsp_tcp
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libm.so.6, needed by /usr/local/lib/libmirsdrapi-rsp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libpthread.so.0, needed by /usr/local/lib/libmirsdrapi-rsp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: warning: libc.so.6, needed by /usr/local/lib/libmirsdrapi-rsp.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `gettimeofday@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `memset@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_cond_signal@GLIBC_2.3.2'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strlen@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutexattr_settype@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `timerfd_create@GLIBC_2.8'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__strdup@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pow@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_cond_broadcast@GLIBC_2.3.2'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__open_2@GLIBC_2.7'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fclose@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fscanf@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__memcpy_chk@GLIBC_2.3.4'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strcmp@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `clock_gettime@GLIBC_2.17'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `poll@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strchr@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `stderr@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fputc@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutex_destroy@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_cond_destroy@GLIBC_2.3.2'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `syscall@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__vfprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `socket@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_attr_init@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_cond_timedwait@GLIBC_2.3.2'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `open@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strcpy@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutex_trylock@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__assert_fail@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutex_lock@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `realloc@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pipe@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_cond_wait@GLIBC_2.3.2'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `uname@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `timerfd_settime@GLIBC_2.8'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `log10@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strerror@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `connect@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `calloc@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fwrite@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_attr_destroy@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `send@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__xstat@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutex_unlock@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `readdir@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `recv@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_cond_init@GLIBC_2.3.2'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_create@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `malloc@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutexattr_init@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `memmove@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutexattr_destroy@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__errno_location@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `memcpy@GLIBC_2.14'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_join@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__asprintf_chk@GLIBC_2.8'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__snprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `pthread_mutex_init@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `inet_addr@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `close@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strrchr@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `opendir@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fcntl@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `getenv@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fputs@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `ioctl@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `free@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `strtol@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__vsnprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `gethostbyname@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `write@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `sscanf@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `fopen@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `closedir@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `read@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `__sprintf_chk@GLIBC_2.3.4'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/local/lib/libmirsdrapi-rsp.so: undefined reference to `usleep@GLIBC_2.2.5'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rsp_tcp.dir/build.make:85: rsp_tcp] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/rsp_tcp.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
alpine:~/RSPTCPServer/build#

Re: RSPTCPServer build on Alpine Linux

Posted: Tue Mar 12, 2019 10:15 pm
by fventuri
The reason you are seeing those errors is that Alpine Linux uses 'musl' as its libc library (as stated in their main page https://www.alpinelinux.org/), while the developers at SDRplay compiled (and linked) the SDRplay API library 'libmirsdrapi-rsp' using the GNU 'glibc' library (which is commonly used in most of the Linux distributions, like Ubuntu, Debian, Fedora, etc).

Since the choice of the libc library being used is at the core of the runtime in Linux, I am afraid you won't be able to run RSPTCPServer (which uses 'libmirsdrapi-rsp') on Alpine Linux without some additional work.

I just ran a quick search and I found a couple of links that might be useful to you: Hope this helps,
Franco

Re: RSPTCPServer build on Alpine Linux

Posted: Wed Mar 13, 2019 9:35 am
by nk2042
Thanks Franco.

I tried installing the glibc apk from here https://github.com/sgerrand/alpine-pkg-glibc with no luck.

I'm surprised because on the same linux system I built SoapySDR + SoapyRemote + SoapySDRPlay successfully and it is working great.

SoapySDRPlay needs 'libmirsdrapi-rsp' to build and the build process doesn't fail.

I think I have to find another linux distro as small as alpine but with native glibc.

Re: RSPTCPServer build on Alpine Linux

Posted: Thu Mar 14, 2019 12:27 am
by fventuri
It's very interesting that SoapySDRPlay works on Alpine with libmirsdrapi-rsp.
Given my reasoning about libc last night I would have expected exactly the opposite, so there's something I am missing here.

Do you mind running the command:

Code: Select all

ldd /usr/local/lib/libmirsdrapi-rsp.so
and post the output here?

The command above should show all the dynamic libraries that 'libmirsdrapi-rsp.so' wants to use (and if it can find them or not), so perhaps the output from that command will shed some light on what's going on here.

Franco

Re: RSPTCPServer build on Alpine Linux

Posted: Thu Mar 14, 2019 5:50 pm
by nk2042
Here is the output I have:

Code: Select all

alpine:~# ldd /usr/local/lib/libmirsdrapi-rsp.so
        ldd (0x7f5697b16000)
        libudev.so.1 => /lib/libudev.so.1 (0x7f5695d2e000)
        libm.so.6 => ldd (0x7f5697b16000)
        libpthread.so.0 => ldd (0x7f5697b16000)
        libc.so.6 => ldd (0x7f5697b16000)
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __snprintf_chk: symbol not found
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __vfprintf_chk: symbol not found
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __open_2: symbol not found
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __asprintf_chk: symbol not found
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __memcpy_chk: symbol not found
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __vsnprintf_chk: symbol not found
Error relocating /usr/local/lib/libmirsdrapi-rsp.so: __sprintf_chk: symbol not found