-
Notifications
You must be signed in to change notification settings - Fork 73
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
Build failure with disabled SNMP support #328
Comments
In my RHEL7 env,
Did you use custom |
Debian 11 does not provide
However, I did not prepare my build env (my desktop machine) in any way to build ltfs. Both configuration and build phase work for me without |
I realized package data for icu-uc is provided in Debian11. So I will fix the |
I can confirm current master builds successfully on Debian 11. Thanks very much for the fix! |
Describe the bug
When trying to build ltfs as of today's current master on Debian 11/amd64 with
--disable-snmp
passed toconfigure
,ld
fails due tolibdl
not getting linked viaAM_LDFLAGS
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The build succeeds and yields binaries/artifacts without SNMP support.
Desktop (please complete the following information):
Additional context
In
configure.ac
, when building with SNMP support,AM_LDFLAG
is ultimately expanded to include the output of thenet-snmp-config --agent-libs
command, which on my system happens to include the required-ldl
argument for the linker to succeed.I think passing that argument to all build steps where the linker targets objects that had their corresponding source file(s) (at least
src/libltfs/ltfslogging.c
andsrc/libltfs/plugin.c
) uselibdl
features should fix the problem.FWIW, as a workaround, I configured the source with
LIBS=-ldl ./configure --disable-snmp
, which succeeds.The text was updated successfully, but these errors were encountered: