-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoconf fails on CentOS7 #310
Comments
This was last discussed at #297. Here's what I posted as a solution verbatim: Note that here the sed -i~ '/PKG_CHECK_VAR/d' configure.ac
autoreconf -vif
./configure --with-rundir=/run --without-systemdsystemunitdir |
Thanks @atheik. This workaround seems like it would work, as well. I should have searched more thoroughly through the closed issues. In #297 you mentioned autoreconf "should have shown an error about this undefined macro". Yes, it does:
That's fine, but it seems to me that if it's possible to avoid an error and succeed why not do that, without requiring an edit of the source files? Or, maybe the pre-requisites should mention that pkg-config should be version 0.28 or greater. |
That's a good idea. I offered the workaround in case your interest was just getting ksmbd-tools to build without much hassle. Feel free to open a PR. However, since diff --git a/configure.ac b/configure.ac
index de5158b..aaae49d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,7 +81,11 @@ AC_ARG_WITH([systemdsystemunitdir],
AS_IF([test "x$with_systemdsystemunitdir" != xno], [
AS_IF([test "x$with_systemdsystemunitdir" = xyes], [
- PKG_CHECK_VAR([systemdsystemunitdir], [systemd >= 245], [systemdsystemunitdir], [], [])
+ m4_ifdef([PKG_CHECK_VAR], [
+ PKG_CHECK_VAR([systemdsystemunitdir], [systemd >= 245], [systemdsystemunitdir], [], [])
+ ], [
+ systemdsystemunitdir=$(pkg-config --variable=systemdsystemunitdir 'systemd >= 245')
+ ])
], [
systemdsystemunitdir=$with_systemdsystemunitdir
])
Edit: Your suggestion to vendor Either way, I am sure your PR will be accepted. By the way, on your CentOS 7 system, what kernel version do you build the out-of-tree ksmbd against? |
…avoid error messages if file does not exist.
Hi @atheik, I just opened a PR. I am attempting to build against the CentOS-provided kernel, currently 3.10.0-1160.102.1. No idea if it works or not yet, just getting started... Edit: I see that the kernel module will not be compatible with a kernel this old. Oh well. |
Fixes cifsd-team#310. Add '-f' to 'rm' command in uninstall hooks to avoid error messages if file does not exist.
Thank you. I left you some feedback.
ELRepo seems to be a widely trusted third-party source for packages for RHEL and its clones. Their kernel in the |
Yes, CentOS7 is old.
pkg-config version 0.27 on CentOS7 does not have PKG_CHECK_VAR and so autogen.sh will fail on line 84.
To fix it, I added the macro from varnish/libvmod-example@ad96d3b to line 21 in configure.ac.
See:
I'm happy to submit as a PR if someone thinks supporting versions from 2014 would be useful.
The text was updated successfully, but these errors were encountered: