Project

General

Profile

Actions

Submit #3169

closed

cpdup utility for Linux operating system failed to compile

Added by bronko75 almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Userland
Target version:
-
Start date:
01/19/2019
Due date:
% Done:

0%

Estimated time:

Description

Good Day,

While compiling cpdup for Linux ( https://github.com/DragonFlyBSD/cpdup.git <https://github.com/DragonFlyBSD/cpdup.git&gt;) on a Debian 9.6 box, I’ve encountered the following error:

compat_md5.o: In function `MD5File':
compat_md5.c:(.text+0x2f): undefined reference to `MD5_Init'
compat_md5.c:(.text+0x47): undefined reference to `MD5_Update'
compat_md5.c:(.text+0x7e): undefined reference to `MD5_Final'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'cpdup' failed
make: *** [cpdup] Error 1

I was able to fix it by adding -lcrypto to the CFLAGS. Patch attached.

Kind regards

Philippe


Files

Actions #1

Updated by liweitianux almost 6 years ago

  • Category set to Userland
  • Status changed from New to Closed
  • Assignee set to liweitianux

Hi Philippe, thanks for trying cpdup on Linux.

Actually, I have made some updates and cleanups to cpdup but haven't pushed to that Github repo. The cpdup now uses 'libbsd' and 'libmd' on Linux and should build and work fine (I'm using Debian testing).

I have just pushed my changes to the repo. Please update and retry.

You can open issues and submit PRs directly on Github. So I'll close this issue.

Cheers,

Actions

Also available in: Atom PDF