Skip to content
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

src/analyze/analyze.c: In function ‘run’: error: ‘dump_exit_status’ undeclared #13230

Closed
floppym opened this issue Jul 30, 2019 · 1 comment · Fixed by #13231
Closed

Comments

@floppym
Copy link
Contributor

floppym commented Jul 30, 2019

systemd version the issue has been seen with
243-rc1

Used distribution
Gentoo

Summary
Build fails with the following output:

FAILED: systemd-analyze@exe/src_analyze_analyze.c.o
x86_64-pc-linux-gnu-gcc -m32 -Isystemd-analyze@exe -I. -I../systemd-243-rc1 -Isrc/basic -I../systemd-243-rc1/src/basic -Isrc/boot -I../systemd-243-rc1/src/boot -Isrc/shared -I../systemd-243-rc1/src/shared -Isrc/systemd -I../systemd-243-rc1/src/systemd -Isrc/journal -I../systemd-243-rc1/src/journal -Isrc/journal-remote -I../systemd-243-rc1/src/journal-remote -Isrc/nspawn -I../systemd-243-rc1/src/nspawn -Isrc/resolve -I../systemd-243-rc1/src/resolve -Isrc/timesync -I../systemd-243-rc1/src/timesync -I../systemd-243-rc1/src/time-wait-sync -Isrc/login -I../systemd-243-rc1/src/login -Isrc/udev -I../systemd-243-rc1/src/udev -Isrc/libudev -I../systemd-243-rc1/src/libudev -Isrc/core -I../systemd-243-rc1/src/core -Isrc/shutdown -I../systemd-243-rc1/src/shutdown -I../systemd-243-rc1/src/libsystemd/sd-bus -I../systemd-243-rc1/src/libsystemd/sd-device -I../systemd-243-rc1/src/libsystemd/sd-event -I../systemd-243-rc1/src/libsystemd/sd-hwdb -I../systemd-243-rc1/src/libsystemd/sd-id128 -I../systemd-243-rc1/src/libsystemd/sd-netlink -I../systemd-243-rc1/src/libsystemd/sd-network -I../systemd-243-rc1/src/libsystemd/sd-resolve -Isrc/libsystemd-network -I../systemd-243-rc1/src/libsystemd-network -I../systemd-243-rc1/ -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu99 -Wextra -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wimplicit-fallthrough=5 -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Werror=shift-count-overflow -Werror=shift-overflow=2 -Wdate-time -Wnested-externs -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Wno-maybe-uninitialized -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -Werror=shadow -include config.h -O2 -march=amdfam10 -pthread -MD -MQ 'systemd-analyze@exe/src_analyze_analyze.c.o' -MF 'systemd-analyze@exe/src_analyze_analyze.c.o.d' -o 'systemd-analyze@exe/src_analyze_analyze.c.o' -c ../systemd-243-rc1/src/analyze/analyze.c
../systemd-243-rc1/src/analyze/analyze.c: In function ‘run’:
../systemd-243-rc1/src/analyze/analyze.c:2475:74: error: ‘dump_exit_status’ undeclared (first use in this function); did you mean ‘dump_unit_paths’?
 2475 |                 { "exit-status",       VERB_ANY, VERB_ANY, 0,            dump_exit_status       },
      |                                                                          ^~~~~~~~~~~~~~~~
      |                                                                          dump_unit_paths

This seems to only happen with certain configuration options. The options I used are below; I will try to narrow it down.

>>> Configuring source in /x/portage/sys-apps/systemd-243_rc1/work/systemd-243-rc1 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
meson --buildtype plain --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --cross-file /x/portage/sys-apps/systemd-243_rc1/temp/meson.i686-pc-linux-gnu.x86 --localstatedir=/var -Dsupport-url=https://gentoo.org/support/ -Dpamlibdir=/lib/security -Dbashcompletiondir=/usr/share/bash-completion/completions -Dsplit-usr=true -Drootprefix=/ -Dsysvinit-path= -Dsysvrcnd-path= -Dtelinit-path=/lib/sysvinit/telinit -Defi=false -Dima=true -Dacl=false -Dapparmor=false -Daudit=false -Dlibcryptsetup=false -Dlibcurl=false -Ddns-over-tls=false -Delfutils=false -Dgcrypt=true -Dgnu-efi=false -Defi-libdir=/usr/lib -Dmicrohttpd=false -Didn=false -Dimportd=false -Dbzip2=false -Dzlib=false -Dkmod=false -Dlz4=true -Dxz=true -Dlibiptc=false -Dpam=true -Dpcre2=false -Dpolkit=false -Dqrencode=false -Dseccomp=false -Dselinux=false -Ddbus=false -Dxkbcommon=false -Dkill-path=/bin/kill -Dntp-servers=0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org -Ddefault-kill-user-processes=false -Dbacklight=false -Dbinfmt=false -Dcoredump=false -Denvironment-d=false -Dfirstboot=false -Dhibernate=false -Dhostnamed=false -Dhwdb=false -Dldconfig=false -Dlocaled=false -Dman=false -Dnetworkd=false -Dquotacheck=false -Drandomseed=false -Drfkill=false -Dsysusers=false -Dtimedated=false -Dtimesyncd=false -Dtmpfiles=false -Dvconsole=false /x/portage/sys-apps/systemd-243_rc1/work/systemd-243-rc1 /x/portage/sys-apps/systemd-243_rc1/work/systemd-243-rc1-abi_x86_32.x86
@floppym
Copy link
Contributor Author

floppym commented Jul 30, 2019

The dump_exit_status function is declared only if HAVE_SECCOMP is defined. You should be able to reproduce by passing -Dseccomp=false to meson.

floppym added a commit to floppym/systemd that referenced this issue Jul 30, 2019
lnussel pushed a commit to lnussel/systemd-opensuse that referenced this issue Aug 19, 2019
lnussel pushed a commit to lnussel/systemd-opensuse that referenced this issue Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant