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#