pcompress icon indicating copy to clipboard operation
pcompress copied to clipboard

undefined reference to 'HMAC_CTX_init'

Open raindeavor opened this issue 2 years ago • 1 comments

When making it after"./config --disable-wavpack" on my Ubantu 18.04,I get an error:

"./libpcompress.so: undefined reference to`HMAC_CTX_init' ./libpcompress.so: undefined reference to `HMAC_CTX_cleanup' collect2: error: ld returned 1 exit status Makefile:426: recipe for target 'buildtmp/pcompress' failed make: *** [buildtmp/pcompress] Error 1"

openssl version:1.0.2u

raindeavor avatar Jul 14 '22 08:07 raindeavor

Just that anyone still needs to build this project.

I ran across tons of problems. This is the what finally worked:

  1. Grab Ubuntu 16.04, e.g. sudo docker pull ubuntu:16.04 (Neither 12.04 or 14.04 worked!)
  2. sudo apt update
  3. sudo apt upgrade
  4. sudo apt install build-essential yasm libssl-dev libbz2-dev -y
  5. cd to pcompress folder and ./config --disable-wavpack && make

For some weird reasons, first run of make always failed. But a SECOND run of it will make it.

wupengcheng6819 avatar Aug 18 '22 11:08 wupengcheng6819