mkj / dropbear

Dropbear SSH
https://matt.ucc.asn.au/dropbear/dropbear.html
Other
1.75k stars 404 forks source link

build with old GNU Make (3.79.1) causes error #318

Open jg1uaa opened 3 months ago

jg1uaa commented 3 months ago

Dropbear is good server software for old Linux distro which cannot talk with modern SSH client. Recently I found dropbear-2024.84 and 2024.85 could not build on Vine Linux 2.5 (GNU Make 3.79.1) like this.

ranlib libtommath.a
make[1]: Leaving directory `/home/uaa/dropbear-2024.84/libtommath'
make: *** No rule to make target `obj/dbutil.o', needed by `dropbear'.  Stop.
[uaa@localhost dropbear-2024.84]$

libtommath.a has built successfully, but error for obj/dbutil.o prevents building. I think old GNU Make cannot handle this.

$(OBJ_DIR)/%.o: $(srcdir)/%.c $(HEADERS) | $(OBJ_DIR)
        $(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ -c
mkj commented 3 months ago

The | "order-only prerequisite" doesn't seem to be a new GNU make addition, so I'm not sure why it would fail.