moinakg / pcompress

A Parallelized Data Deduplication and Compression utility
http://moinakg.github.com/pcompress/
GNU Lesser General Public License v3.0
278 stars 34 forks source link

undefined reference to 'HMAC_CTX_init' #60

Open raindeavor opened 2 years ago

raindeavor commented 2 years ago

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

wupengcheng6819 commented 2 years ago

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 pcompressfolder and ./config --disable-wavpack && make

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