freebsd bcrypt安装错误

在/ usr /港口/安全/ bcrypt

当我试图安装它,我得到这个:

cc -O2 -pipe -fno-strict-aliasing -c main.c cc -O2 -pipe -fno-strict-aliasing -c blowfish.c cc -O2 -pipe -fno-strict-aliasing -c rwfile.c cc -O2 -pipe -fno-strict-aliasing -c keys.c cc -O2 -pipe -fno-strict-aliasing -c wrapbf.c cc -O2 -pipe -fno-strict-aliasing -c endian.c cc -O2 -pipe -fno-strict-aliasing -c wrapzl.c cc -O2 -pipe -fno-strict-aliasing -o bcrypt main.o blowfish.o rwfile.o keys.o wrapbf.o endian.o wrapzl.o wrapzl.o(.text+0x55): In function `douncompress': : undefined reference to `uncompress' wrapzl.o(.text+0x149): In function `docompress': : undefined reference to `compress' *** Error code 1 1 error *** Error code 1 

在makefile中有:

 LDFLAGS+= -lz 

如何跟踪这个错误并解决问题?

编辑:
@arved,那就是Makefile:

 DEFAULTS = Makefile includes.h blowfish.h functions.h config.h CC?= gcc CFLAGS?= -O2 -Wall COMPILE = ${CC} ${CFLAGS} OBJS = main.o blowfish.o rwfile.o keys.o wrapbf.o endian.o wrapzl.o LDFLAGS?= -L/usr/local/lib -lz PREFIX?= /usr/local 

为我工作。

你可以发布/usr/ports/security/bcrypt/work/bcrypt-1.1/Makefile吗?

应该有一行:LDFLAGS?= -L / usr / local / lib -lz。

如果你没有它,这意味着你的“sed”可能会被打破。