Repository navigation
Drop the unused LT_INIT and the libtool build dependency - #762
Merged
Merged
Conversation
configure.ac called LT_INIT, but the build has no libtool libraries: Makefile.am builds only programs. With libtool installed, automake just wraps the final link in ./libtool --mode=link, which adds nothing for a plain executable. Without libtool's m4 macros, autoreconf succeeds, LT_INIT stays as a literal line in configure, and configure prints "LT_INIT: command not found" but still exits 0. Remove LT_INIT and drop libtool from the RPM BuildRequires, the Alpine Dockerfile, the macOS/Alpine CI jobs, the RPM release workflow, the local RPM test script and DEVELOPMENT.md. The generated Makefile flags are unchanged; config.h only loses HAVE_DLFCN_H and LT_OBJDIR, which nothing uses. AC_CONFIG_MACRO_DIR([m4]) stays for ax_code_coverage.m4. Fixes #640 Co-Authored-By: Claude Opus 5.5 <[email protected]>
fcostaoliveira
added a commit
that referenced
this pull request
Oct 24, 2026
Resolve ci.yml (master's macOS lines plus cmake for the helper; libtool stays removed, see #762), DEVELOPMENT.md (master's macOS sections, keep the libevent section) and scripts/build-macos-libevent.sh (clean the prefix as in #674, then build through scripts/build-libevent.sh with debug mode disabled). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
configure.accallsLT_INIT, but nothing in the build uses libtool. If libtool's m4 macros are not installed whenautoreconfruns, autoreconf still succeeds,LT_INITis left as a literal line inconfigure, andconfigureprintsLT_INIT: command not foundbut exits 0. The build works, but the error line is confusing, and libtool is a build dependency we do not need. On a system without libtool the RPM build stops before it starts, because the spec hasBuildRequires: libtool.Root cause
LT_INIThas been inconfigure.acsince the first commit.Makefile.ambuilds only programs (bin_PROGRAMS,check_PROGRAMS, the fuzznoinst_PROGRAMS). There are no*_LTLIBRARIESand no.la/.lofiles, and no script or workflow calls$(LIBTOOL). With libtool installed, automake just runs the final link through./libtool --mode=link, which adds nothing for a plain executable. autoconf's forbidden-token check covers^_?A[CHUMST]_but notLT_, so a missing libtool is not caught.Fix
Remove
LT_INITfromconfigure.ac. Explicitly runAC_PROG_CCbefore the coverage macro, which reads$GCC;AC_CONFIG_MACRO_DIR([m4])stays forax_code_coverage.m4.Drop libtool from the build-dependency lists:
rpm/memtier-benchmark.spec(BuildRequires),Dockerfile.alpine, the Alpine and macOS jobs inci.yml,release-rpm.yml,scripts/test-rpm-locally.sh, andDEVELOPMENT.md.Remove the stale
.libs/artifact path and guard the libtool-free Alpine build against literal libtool macros or unknown commands in configure. The guard catches reintroducingLT_INIT, even though configure otherwise exits successfully.Generated
Makefilevariables (CC,CXX,CFLAGS,CXXFLAGS,CPPFLAGS,LDFLAGS,LIBS,DEFS) are identical before and after. The order of the linked shared libraries (DT_NEEDED) changes when the libtool wrapper is removed; the library set and application code remain the same, so this ordering change is harmless for these dependencies.config.honly losesHAVE_DLFCN_HandLT_OBJDIR, which no source uses (the two test injectors include<dlfcn.h>directly).debian/is unaffected:dh-autoreconfstill pulls libtool, which is harmless. The macOS jobs build libevent from release tarballs, which ship their ownltmain.sh, so they don't need Homebrew's libtool either..gitignorekeepslibtool/ltmain.shfor trees configured before this change.Test evidence
These are build-system changes, so the "tests" are the build flows. Host: Ubuntu 24.04, autoconf 2.71, automake 1.16.5. "libtool hidden" means
libtool/libtoolizeremoved fromPATH, and aclocal pointed at a system dir that holds onlypkg.m4, as in the issue../configure: line 3602: LT_INIT: command not found, rc=0autoreconf: configure.ac: not using Libtool, no error, rc=0./libtoolandltmain.shgenerated, link goes through$(LIBTOOL)libtoolorltmain.sh, same flagsmake checkmake distcheck, libtool hidden (*)archives ready for distributionrockylinux:8with no libtool installed (body ofscripts/test-rpm-locally.sh)error: Failed build dependencies: libtool is needed by memtier-benchmark-255.255.255-1.el8.x86_64OK: el8 x86_64 built, signed-not-verified, and repo-installed, with direct install and local-repo installdocker build -f Dockerfile.alpine(no libtool in apk list)memtier_benchmark v=255.255.255 ... openssl=OpenSSL 3.5.9(*)
make distcheckon this host fails for an unrelated reason, #644 (bash completion installed outside--prefix). The run above passesDISTCHECK_CONFIGURE_FLAGS=PKG_CONFIG_LIBDIR=/usr/lib/x86_64-linux-gnu/pkgconfigso the completion falls back to$datadir. #644 is fixed in a separate PR.The owner follow-up additionally passes a fresh host build and all 12 unit tests. A fresh Alpine container with no libtool builds and passes the same 12 tests; restoring
LT_INITmakes the new CI guard fail, and the separate unknown-command diagnostic check also catches the resulting error.These flows are deterministic, so I ran each one once. CI covers the Alpine and macOS jobs and the RPM workflow.
Fixes #640
Affected versions
1.0.0 through 2.5.2 (latest) and master. Introduced by 833a8df "First memtier_benchmark version." (first tag 1.0.0). Confirmed on master afbb514.
🤖 Generated with Claude Code
Note
Low Risk
Build-system and packaging-only changes; no application logic, with CI guards to catch accidental libtool macro regressions.
Overview
Removes the unused libtool integration from the autotools build so environments without
libtool(e.g. minimal Alpine, RPM builders) configure and link cleanly instead of emitting a misleadingLT_INIT: command not foundwhile still exiting 0.configure.acdropsLT_INITand addsAC_PROG_CCbeforeAX_CODE_COVERAGE(coverage macros expect$GCC). libtool is removed from documented and packaged build deps (DEVELOPMENT.md,Dockerfile.alpine, RPM spec,release-rpm.yml,test-rpm-locally.sh) and from macOS/Alpine CI install lists. The Alpine CI job now fails ifconfigurecontains literalLT_*lines or unknown commands from a bad macro expansion; the Ubuntu artifact upload no longer includes the stale.libs/path.Reviewed by Cursor Bugbot for commit 6f35988. Bugbot is set up for automated code reviews on this repo. Configure here.