Linux SamDump2-3.0.0生成失败命令行中缺少DSO

Linux SamDump2-3.0.0生成失败命令行中缺少DSO,linux,compiler-errors,Linux,Compiler Errors,我从中下载了源代码,在解压缩并输入文件夹后,我运行make命令并获得输出: /usr/bin/gcc -Wall -c -o hive.o hive.c /usr/bin/gcc -Wall -c -o list.o list.c /usr/bin/gcc -Wall -c -o bkhive.o bkhive.c /usr/bin/gcc -Wall -c -o main.o main.c /usr/bin/gcc -Wall -c -o dumpsam

我从中下载了源代码,在解压缩并输入文件夹后,我运行make命令并获得输出:

    /usr/bin/gcc -Wall -c -o hive.o hive.c
    /usr/bin/gcc -Wall -c -o list.o list.c
    /usr/bin/gcc -Wall -c -o bkhive.o bkhive.c
    /usr/bin/gcc -Wall -c -o main.o main.c
    /usr/bin/gcc -Wall -c -o dumpsam.o dumpsam.c
    Building binary...
    /usr/bin/gcc -o samdump2 hive.o list.o bkhive.o samdump.o main.o dumpsam.o -Wall -lssl
    /usr/bin/ld samdump.o: undefined reference to symbol 'DES_ecb_encrypt'
    /usr/lib/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    Makefile:41: recipe for target 'samdump2' failed
    make: *** [samdump2] Error 1

我正在运行64位的Arch linux。提前感谢。

尝试使用LDFLAGS=-lcrypto$LDFLAGS Make不会更改任何内容,尽管我可能做得不对。我该怎么做?很抱歉,我是新手。通过在makefile中向CFLAGS添加-lcrypto修复了此问题,该文件可能是的副本