pkgconfig (or, more precisely, the bundled glib) failed to build during stage3 of bootstrapping Prefix on a Solaris 11.3 / SPARC64 machine (SPARC Enterprise T5120, sun4v). configure complains that res_query can't be found. package build log, and config.log are attached. A similar issue has been discussed back in 2017 here but without a solution: https://www.mail-archive.com/search?l=gentoo-alt@lists.gentoo.org&q=subject:%22Re%5C%3A+%5C%5Bgentoo%5C-alt%5C%5D+Prefix+fails+to+bootstrap+on+Solaris+11%22&o=newest&f=1 . I confirm that on my system libelf.so.1 depends on libz and libc too: $ ldd /lib/libelf.so.1 libz.so.1 => /lib/libz.so.1 libc.so.1 => /lib/libc.so.1 And the failing section during glib configure shows exactly the same symptom as well (full log attached as config.log): configure:23187: sparc-sun-solaris2.11-gcc -o conftest -O2 -pipe -DENABLE_NLS -L/export/home/jsteward/gentoo/tmp/usr/lib -lintl conftest.c -lresolv >&5 /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1' /export/home/jsteward/gentoo/tmp/usr/sparc-sun-solaris2.11/binutils-bin/2.34/ld: /lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1' collect2: error: ld returned 1 exit status configure:23187: $? = 1 configure: failed program was: [...redacted...] CC'ing Fabian for the original correspondence. Reproducible: Always Steps to Reproduce: 1. bootstrap on Solaris 11.3 to stage3. Actual Results: glib in pkgconfig does not build. emerge --info (from stage2 portage) pasted below. Portage 3.0.12.0.2-prefix (python 3.8.6-final-0, prefix/sunos/solaris/5.11/sparc, gcc-10.2.0, unavailable, 5.11 sun4v) ================================================================= System uname: Solaris-2.11-sun4v-sparc-32bit Timestamp of repository gentoo_prefix: Tue, 19 Jan 2021 01:58:25 +0000 Head commit of repository gentoo_prefix: 975ad15a7065e440a8f0e5d3e9778b0e081b3839 sh bash 5.1_p4 ld ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.2458 app-shells/bash: 5.1_p4::gentoo_prefix sys-devel/binutils: 2.34-r1::gentoo_prefix sys-devel/gcc: 10.2.0-r5::gentoo_prefix sys-devel/gcc-config: 1.9.1::gentoo_prefix Repositories: gentoo_prefix location: /export/home/jsteward/gentoo/var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.prefix.bitzolder.nl/gentoo-portage-prefix priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: ACCEPT_KEYWORDS="~sparc-solaris" ACCEPT_LICENSE="@FREE" CBUILD="sparc-sun-solaris2.11" CFLAGS=" -O2 -pipe" CHOST="sparc-sun-solaris2.11" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo" CXXFLAGS=" -O2 -pipe" DISTDIR="/export/home/jsteward/gentoo/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ja_JP.UTF-8" LC_ALL="" LDFLAGS="" MAKEOPTS="-j32" PKGDIR="/export/home/jsteward/gentoo/tmp/var/cache/binpkgs" PORTAGE_CONFIGROOT="/export/home/jsteward/gentoo/tmp/" 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="/export/home/jsteward/gentoo/tmp/var/tmp" USE="bootstrap clang internal-glib ipv6 libglvnd ncurses prefix prefix-guest sparc-solaris ssl unicode zlib" ADA_TARGET="gnat_2018" 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" ELIBC="SunOS" 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" INPUT_DEVICES="libinput" KERNEL="SunOS" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 685104 [details] pkgconfig build log
Created attachment 685110 [details] glib configure log
yes, this needs to provide a libresolv that depends on our own libz (if at all), I haven't figured out yet how to do that. I couldn't find sources or anything.
(remove me to avoid double emails)
(In reply to Fabian Groffen from comment #4) > (remove me to avoid double emails) :P sorry for the mess
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7985685a5519b29d714a3037d7d4a8d3af02a0ca commit 7985685a5519b29d714a3037d7d4a8d3af02a0ca Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-08-04 19:42:37 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-08-04 19:42:37 +0000 profiles: last-rite dev-util/pkgconfig Closes: https://github.com/gentoo/gentoo/pull/21885 Bug: https://bugs.gentoo.org/245228 Bug: https://bugs.gentoo.org/632124 Bug: https://bugs.gentoo.org/691268 Bug: https://bugs.gentoo.org/767853 Signed-off-by: David Seifert <soap@gentoo.org> profiles/package.mask | 7 +++++++ 1 file changed, 7 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=155152fe686e11568d68ade29167f60762c53111 commit 155152fe686e11568d68ade29167f60762c53111 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2021-09-04 08:20:57 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2021-09-04 15:24:23 +0000 dev-util/pkgconfig: Remove last-rited package Closes: https://bugs.gentoo.org/632124 Closes: https://bugs.gentoo.org/691268 Closes: https://bugs.gentoo.org/767853 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-util/pkgconfig/Manifest | 1 - dev-util/pkgconfig/metadata.xml | 10 --- dev-util/pkgconfig/pkgconfig-0.29.2.ebuild | 121 ----------------------------- dev-util/pkgconfig/pkgconfig-9999.ebuild | 117 ---------------------------- profiles/package.mask | 1 - 5 files changed, 250 deletions(-)