sudipghimire533 / ytui-music

Youtube client in terminal for music ( lightweight youtube client )
GNU General Public License v2.0
467 stars 19 forks source link

Can't build from source #33

Closed totordev closed 1 year ago

totordev commented 1 year ago

Hello. I'm trying to install this great tool but I've ran into a problem. when I try to build from source, I get this:


error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/sct/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/sct/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/local/games:/usr/sbin:/usr/bin:/usr/games:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc7tWmDT/symbols.o" "/home/sct/ytui-music-2.0.0-rc1/target/release/deps/ytui_music-0cf2781a6b40288e.ytui_music.79a71b9a-cgu.7.rcgu.o" "-Wl,--as-needed" "-L" "/home/sct/ytui-music-2.0.0-rc1/target/release/deps" "-L" "/home/sct/ytui-music-2.0.0-rc1/target/release/build/libsqlite3-sys-b306dd1c89a43733/out" "-L" "/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib" "-L" "/home/sct/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustc7tWmDT/liblibsqlite3_sys-3a094489428ad661.rlib" "/home/sct/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-957b4aff41f8cd46.rlib" "-Wl,-Bdynamic" "-lmpv" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/sct/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/sct/ytui-music-2.0.0-rc1/target/release/deps/ytui_music-0cf2781a6b40288e" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `dlclose@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_key_delete@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `dlsym@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_rwlock_unlock@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_setspecific@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `dlopen@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_rwlock_init@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `dlerror@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_getspecific@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `stat@GLIBC_2.33'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `fstat@GLIBC_2.33'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_once@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `dladdr@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_rwlock_destroy@GLIBC_2.34'
          /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1t/lib/libcrypto.so: undefined reference to `pthread_key_create@GLIBC_2.34'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `ytui_music` due to previous error```
totordev commented 1 year ago

Nevermind, my glibc was just not up to date