net-analyzer/monitoring-plugins-2.3.2-r1 doesn't build against musl: In file included from common.h:214, from check_swap.c:34: ../gl/gettext.h:67:27: error: expected identifier or '(' before 'const' 67 | # define gettext(Msgid) ((const char *) (Msgid)) | ^~~~~ ../gl/gettext.h:67:41: error: expected ')' before '(' token 67 | # define gettext(Msgid) ((const char *) (Msgid)) | ^ ../gl/gettext.h:69:40: error: expected identifier or '(' before 'void' 69 | # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) | ^~~~ ../gl/gettext.h:69:46: error: expected ')' before '(' token 69 | # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) | ^ ../gl/gettext.h:72:7: error: expected identifier or '(' before 'void' 72 | ((void) (Category), dgettext (Domainname, Msgid)) | ^~~~ ../gl/gettext.h:72:13: error: expected ')' before '(' token 72 | ((void) (Category), dgettext (Domainname, Msgid)) | ^ /usr/include/libintl.h:20:7: error: expected identifier or '(' before 'unsigned' 20 | char *ngettext(const char *, const char *, unsigned long) __fa(1) __fa(2); | ^~~~~~~~ ../gl/gettext.h:75:10: error: expected ')' before '==' token 75 | ((N) == 1 \ | ^~ ../gl/gettext.h:80:7: error: expected identifier or '(' before 'void' 80 | ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) | ^~~~ ../gl/gettext.h:80:13: error: expected ')' before '(' token 80 | ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) | ^ ../gl/gettext.h:83:7: error: expected identifier or '(' before 'void' 83 | ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N)) | ^~~~ ../gl/gettext.h:83:13: error: expected ')' before '(' token 83 | ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N)) | ^ In file included from check_swap.c:39: /usr/include/libintl.h:23:31: error: expected identifier or '(' before ';' token 23 | char *textdomain(const char *); | ^ /usr/include/libintl.h:24:50: error: expected identifier or '(' before ';' token 24 | char *bindtextdomain (const char *, const char *); | ^ In file included from common.h:214, from check_swap.c:34: ../gl/gettext.h:91:7: error: expected identifier or '(' before 'void' 91 | ((void) (Domainname), (const char *) (Codeset)) | ^~~~ ../gl/gettext.h:91:13: error: expected ')' before '(' token 91 | ((void) (Domainname), (const char *) (Codeset)) | ^ Reproducible: Always Steps to Reproduce: 1. on a musl system: emerge net-analyzer/monitoring-plugins Actual Results: * ERROR: net-analyzer/monitoring-plugins-2.3.2-r1::gentoo failed (compile phase): Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.0/musl/hardened, gcc-11, musl-1.2.3, 5.15.74-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.15.74-gentoo-x86_64-x86_64-Intel_Xeon_E3-12xx_v2_-Ivy_Bridge,_IBRS-with-libc KiB Mem: 6093388 total, 2070044 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 30 Jan 2023 16:45:01 +0000 Head commit of repository gentoo: a512794f34fab9066db7e30bd5cb718b1d399faf Timestamp of repository guru: Mon, 30 Jan 2023 10:31:49 +0000 Head commit of repository guru: 3a3a411c28b880261b6afb86cc438a001e7c4f15 Head commit of repository musl: 9a26ebd8735df4afa71f23036085274fb316bb30 Head commit of repository stintel: 9bb7f7d545534099219210e5d669581254662474 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.39 p5) 2.39.0 ccache version 4.7.4 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-lang/perl: 5.36.0-r1::gentoo dev-lang/python: 3.8.16-r3::gentoo, 3.9.13::gentoo, 3.10.9-r1::gentoo, 3.11.1-r1::gentoo dev-lang/rust-bin: 1.66.1::gentoo dev-util/ccache: 4.7.4::gentoo dev-util/cmake: 3.24.3::gentoo dev-util/meson: 0.64.1::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.45.2-r2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r4::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/gcc: 11.3.1_p20230120-r1::gentoo, 12.2.1_p20230121-r1::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/musl: 1.2.3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage/ priority: -1000 volatile: True sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync.exclude sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: True misc location: /usr/local/portage/misc masters: gentoo volatile: True musl location: /var/db/repos/musl sync-type: git sync-uri: https://github.com/gentoo/musl.git masters: gentoo volatile: True stintel location: /var/repo/stintel sync-type: git sync-uri: https://github.com/stintel/gentoo-overlay.git masters: guru gentoo volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-gentoo-linux-musl" CFLAGS="-O2 -pipe -march=ivybridge -maes -ggdb" CHOST="x86_64-gentoo-linux-musl" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=ivybridge -maes -ggdb" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.leaseweb.com/gentoo https://gentoo.adlevio.net" INSTALL_MASK="charset.alias /usr/share/locale/locale.alias" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j4" PKGDIR="/var/cache/binpkgs" PORTAGE_BINHOST="https://gentoo.adlevio.net/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync.exclude" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="acl aes amd64 audit avx bzip2 caps cet cli crypt dri f16c fortran hardened iconv ipv6 libglvnd libtirpc lto mmx mmxext ncurses nls nptl openmp pam pclmul pcre pie popcnt rdrand readline sctp seccomp smp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset dav empty_gif fancyindex fastcgi geo geoip gzip gzip_static headers_more limit_req limit_zone map memcached mp4 proxy realip referer rewrite scgi spdy split_clients ssi stub_status upload upload_progress upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= net-analyzer/monitoring-plugins-2.3.1-r4::gentoo was built with the following: USE="dns ipv6 mysql snmp ssh ssl -curl -fping -game -gnutls -ldap -postgres -radius -samba" CFLAGS="-O2 -pipe -march=ivybridge -maes -ggdb -fno-strict-aliasing" CXXFLAGS="-O2 -pipe -march=ivybridge -maes -ggdb -fno-strict-aliasing"
Created attachment 849527 [details] build.log
Did older versions work?
It looks like the failure is in the bundled (and very outdated) gnulib. Are you able to build monitoring-plugins from git, and see if swapping in a newer gnulib helps?
(In reply to Sam James from comment #2) > Did older versions work? On this system, version 2.3.1-r4 is currently installed. I just tried building the same version again, and it builds fine.
(In reply to Michael Orlitzky from comment #3) > It looks like the failure is in the bundled (and very outdated) gnulib. Are > you able to build monitoring-plugins from git, and see if swapping in a > newer gnulib helps? Git master also shows the same error. Not sure how to swap in a newer gnulib, as that seem to lack both gnulib-cache.m4 and gnulib-comp.m4.
Let's file a bug asking for them to refresh their gnulib copy. As for an immediate fix, try copying /usr/share/aclocal/gettext.m4 into gl/m4/ and tell me if it helps.
(In reply to Sam James from comment #6) > Let's file a bug asking for them to refresh their gnulib copy. As for an > immediate fix, try copying /usr/share/aclocal/gettext.m4 into gl/m4/ and > tell me if it helps. It does!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39db959d41ca077c06ff375aa2774d20e515ec24 commit 39db959d41ca077c06ff375aa2774d20e515ec24 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-14 03:20:49 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-14 03:20:49 +0000 net-analyzer/monitoring-plugins: add temporary musl workaround This won't be needed in the next release. Closes: https://bugs.gentoo.org/892645 Signed-off-by: Sam James <sam@gentoo.org> .../monitoring-plugins-2.3.3-r1.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5d4c2d9840cc52612c8fb895810cfe4586911e4 commit d5d4c2d9840cc52612c8fb895810cfe4586911e4 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-02-14 08:15:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-02-14 08:17:28 +0000 Revert "net-analyzer/monitoring-plugins: add temporary musl workaround" This reverts commit 39db959d41ca077c06ff375aa2774d20e515ec24. This seems to mess with the installation for gettext bits. Bug: https://bugs.gentoo.org/892645 Closes: https://bugs.gentoo.org/894278 Signed-off-by: Sam James <sam@gentoo.org> .../monitoring-plugins-2.3.3-r1.ebuild | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-)
*** Bug 895758 has been marked as a duplicate of this bug. ***
tinderbox_musl has reproduced this issue with version 2.3.3-r2 - Updating summary.
Bug is obsolete, 2.3.5 builds against musl
(In reply to NHO from comment #12) > Bug is obsolete, 2.3.5 builds against musl Thanks for the reminder.