PDP-10 / supdup

Community maintained SUPDUP client for Unix
Other
16 stars 8 forks source link

Compilation failure on OpenBSD #25

Open ams opened 3 years ago

ams commented 3 years ago

FWIW, this (#23 and #22) breaks on OpenBSD. Mostly due to the fact that -lresolv doesn't exist there (nor on some other BSDs), normally these days the libresolv stuff is provided directly by libc both on BSDs and GNU systems but OS X seems to not have followed suite? Dynamically adding -lresolv to the linker line is slightly tricky to do in some form of portable Make -- since everyone wants to be special.

Originally posted by @ams in https://github.com/PDP-10/supdup/pull/23#issuecomment-698755348

ams commented 3 years ago

(Another option is that I just make packages for OpenBSD then I can stop caring if I need to write make or gmake)

larsbrinkhoff commented 3 years ago

If you can use gmake on OpenBSD, that might be an easy way out.

larsbrinkhoff commented 3 years ago

@gwright83 has made some changes for FreeSBD which maybe fixes OpenBSD too?

gwright83 commented 3 years ago

The change allows me to build supdup (as part of ITS) on my FreeBSD gitlab-CI runner. It still requires gmake, but that is not uncommon and I'm willing to live with it.

If it works on OpenBSD as well, I can submit a pull request.

larsbrinkhoff commented 2 years ago

@gwright83, please do!