Closed KrystianMarek closed 1 year ago
Does it work if you build the same version from source (ideally with the same configuration) outside of Homebrew?
No, it does not. Libvirtd compiled from source gives the same error. Since the error is related to dbus, I followed that route and found that dbus on my mac does not work as well
❯ brew services info dbus
dbus (org.freedesktop.dbus-session)
Running: ✘
Loaded: ✔
Schedulable: ✘
❯ /opt/homebrew/Cellar/dbus/1.14.0/bin/dbus-daemon --nofork --session
dbus-daemon[8570]: Failed to start message bus: Check-in failed: No such process
Thanks for checking. Does dbus
work if built from source outside Homebrew (with the same version/configuration)?
I can't build dbus, there is a miss match in autoconf version.
❯ ./autogen.sh --no-configure --without-x --disable-dependency-tracking --enable-xml-docs --disable-doxygen-docs
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:97: installing 'build-aux/compile'
configure.ac:21: installing 'build-aux/missing'
bus/Makefile.am: installing 'build-aux/depcomp'
configure.ac:102: warning: The macro `AC_ISC_POSIX' is obsolete.
configure.ac:102: You should run autoupdate.
./lib/autoconf/specific.m4:550: AC_ISC_POSIX is expanded from...
configure.ac:102: the top level
configure.ac:103: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:103: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:103: the top level
configure.ac:105: warning: The macro `AM_PROG_LIBTOOL' is obsolete.
configure.ac:105: You should run autoupdate.
m4/libtool.m4:101: AM_PROG_LIBTOOL is expanded from...
configure.ac:105: the top level
configure.ac:95: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:1172: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
configure.ac:1177: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
configure.ac:1186: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
configure.ac:1192: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
autoconf failed - version 2.5x is probably required
❯ brew info autoconf
==> autoconf: stable 2.71 (bottled)
Automatic configure script builder
https://www.gnu.org/software/autoconf
/opt/homebrew/Cellar/autoconf/2.71 (71 files, 3.2MB) *
Poured from bottle on 2022-05-15 at 11:51:08
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/autoconf.rb
License: GPL-3.0-or-later and (GPL-3.0-or-later with Autoconf-exception-3.0)
==> Dependencies
Required: m4 ✔
==> Analytics
install: 153,752 (30 days), 440,620 (90 days), 1,858,537 (365 days)
install-on-request: 21,346 (30 days), 62,321 (90 days), 286,191 (365 days)
build-error: 0 (30 days)
I tried to launch dbus in another way, it runs, but does not produce required /opt/homebrew/var/lib/dbus/machine-id
, thus libvirtd still fails.
/opt/homebrew/Cellar/dbus/1.14.0/bin/dbus-daemon --nofork --session --address=unix:path=/opt/homebrew/var/lib/dbus
Try autoconf@2.69
.
❯ which autoconf
/opt/homebrew/opt/autoconf@2.69/bin/autoconf
❯ ./autogen.sh --no-configure --without-x --disable-dependency-tracking --enable-xml-docs --disable-doxygen-docs
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:97: installing 'build-aux/compile'
configure.ac:21: installing 'build-aux/missing'
bus/Makefile.am: installing 'build-aux/depcomp'
configure.ac:95: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:162: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:1172: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
configure.ac:1177: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
configure.ac:1186: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
configure.ac:1192: error: Unexpanded AX_ macro found. Please install GNU autoconf-archive
autoconf failed - version 2.5x is probably required
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@KrystianMarek the machine-id file is meant to be created by dbus-uuidgen
in the formula's post_install
block
def post_install
# Generate D-Bus's UUID for this machine
system "#{bin}/dbus-uuidgen", "--ensure=#{var}/lib/dbus/machine-id"
end
what happens if you manually run this:
dbus-uuidgen --ensure=/opt/homebrew/var/lib/dbus/machine-id
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew gist-logs
brew config
brew doctor
Verification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I'm trying to use libvirt
What happened (include all command output)?
Libvirt installes correctly, its service also starts correctly, but libvirt crashes. Brew service is not aware of this.
What did you expect to happen?
I expect libvirt to work. In other words for libvirt to provide
qemu:///system
orqemu:///session
Step-by-step reproduction instructions (by running
brew
commands)brew info libvirt
brew services start libvirt
Libvirt process is indeed running
Stopping the service
With libvirtd started from the console, finally I get the error message: