/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: modules/mod_dso.o: warning: relocation against `lt__PROGRAM__LTX_preloaded_symbols' in read-only section `.text' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: modules/mod_dso.o: in function `dso_init': /var/tmp/portage/net-ftp/proftpd-1.3.7a-r1/work/proftpd-1.3.7a/modules/../modules/mod_dso.c:734: undefined reference to `lt__PROGRAM__LTX_preloaded_symbols' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libltdl/.libs/libltdlc.a(libltdlc_la-ltdl.o): in function `lt_dlinit': /var/tmp/portage/net-ftp/proftpd-1.3.7a-r1/work/proftpd-1.3.7a/lib/libltdl/ltdl.c:237: undefined reference to `lt_libltdlc_LTX_preloaded_symbols' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_systemd-j2_abi32+64-20210521-112000 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.10 Available Rust versions: [1] rust-1.52.1 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Mon May 24 19:50:14 UTC 2021 emerge -qpvO net-ftp/proftpd [ebuild N ] net-ftp/proftpd-1.3.7a-r1 USE="acl caps dso ipv6 ncurses nls pam pcre ssl tcpd -authfile -ban -case -clamav -copy -ctrls -deflate -diskuse -dynmasq -exec -ident -ifsession -ifversion -kerberos -ldap -log-forensic -memcache -msg -mysql -postgres -qos -radius -ratio -readme -rewrite (-selinux) -sftp -shaper -sitemisc -snmp -sodium -softquota -sqlite -test -unique-id -vroot"
Created attachment 711057 [details] emerge-info.txt
Created attachment 711060 [details] emerge-history.txt
Created attachment 711063 [details] environment
Created attachment 711066 [details] etc.portage.tar.bz2
Created attachment 711069 [details] logs.tar.bz2
Created attachment 711072 [details] net-ftp:proftpd-1.3.7a-r1:20210524-205933.log
Created attachment 711075 [details] temp.tar.bz2
Probably due to: > declare -x LIBTOOL="rdlibtool" > declare -x MAKEFLAGS="LIBTOOL=rdlibtool"
(In reply to Sergei Trofimovich from comment #8) > Probably due to: > > > declare -x LIBTOOL="rdlibtool" > > declare -x MAKEFLAGS="LIBTOOL=rdlibtool" I tried to set those two variables and was not able to trigger the bug. I find these overrides a bit unstable (I'm sure it does not override enough). We probably need a doc that describes how to enable slibtool instead of libtool.
(In reply to Sergei Trofimovich from comment #9) > (In reply to Sergei Trofimovich from comment #8) > > Probably due to: > > > > > declare -x LIBTOOL="rdlibtool" > > > declare -x MAKEFLAGS="LIBTOOL=rdlibtool" > > I tried to set those two variables and was not able to trigger the bug. I > find these overrides a bit unstable (I'm sure it does not override enough). > > We probably need a doc that describes how to enable slibtool instead of > libtool. Try https://wiki.gentoo.org/wiki/Slibtool#Usage maybe?
(In reply to Sam James from comment #10) > (In reply to Sergei Trofimovich from comment #9) > > (In reply to Sergei Trofimovich from comment #8) > > > Probably due to: > > > > > > > declare -x LIBTOOL="rdlibtool" > > > > declare -x MAKEFLAGS="LIBTOOL=rdlibtool" > > > > I tried to set those two variables and was not able to trigger the bug. I > > find these overrides a bit unstable (I'm sure it does not override enough). > > > > We probably need a doc that describes how to enable slibtool instead of > > libtool. > > Try https://wiki.gentoo.org/wiki/Slibtool#Usage maybe? That helped triggering it. Thanks.
USE=dso seems to be the main trigger. """ rlibtool --mode=link --tag=CC x86_64-pc-linux-gnu-gcc -Wl,-L./lib,-L./lib -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic -L./lib/libltdl -dlopen self -export-dynamic -o proftpd src/main.o src/timers.o src/sets.o src/pool.o src/privs.o src/str.o src/table.o src/regexp.o src/configdb.o src/dirtree.o src/expr.o src/signals.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/cmd.o src/response.o src/ascii.o src/data.o src/modules.o src/stash.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o src/session.o src/trace.o src/encode.o src/proctitle.o src/filter.o src/pidfile.o src/env.o src/random.o src/version.o src/rlimit.o src/wtmp.o src/json.o src/jot.o src/memcache.o src/redis.o src/error.o modules/mod_core.o modules/mod_xfer.o modules/mod_rlimit.o modules/mod_auth_unix.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_dso.o modules/mod_auth_pam.o modules/mod_wrap2_file.o modules/mod_wrap2.o modules/mod_tls_shmcache.o modules/mod_tls.o modules/mod_facl.o modules/mod_cap.o modules/mod_lang.o modules/module_glue.o -lsupp -lattr -lcrypt -ldl -pthread -lpcreposix -lpcre -lssl -lcrypto -lcap -lssl -lcrypto -lpam -ldl lib/libltdl/libltdlc.la -lidn `uniq ./module-libs.txt | tr '\n' ' '` rlibtool: lconf: {.name="libtool"}. rlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/dev/shm/portage/net-ftp/proftpd-1.3.7a-r1/work/proftpd-1.3.7a"}. rlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 65, .st_ino = 200429}. rlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = 3. rlibtool: lconf: found "/dev/shm/portage/net-ftp/proftpd-1.3.7a-r1/work/proftpd-1.3.7a/libtool". rlibtool: link: x86_64-pc-linux-gnu-gcc src/main.o src/timers.o src/sets.o src/pool.o src/privs.o src/str.o src/table.o src/regexp.o src/configdb.o src/dirtree.o src/expr.o src/signals.o src/support.o src/netaddr.o src/inet.o src/child.o src/parser.o src/log.o src/lastlog.o src/xferlog.o src/bindings.o src/netacl.o src/class.o src/scoreboard.o src/help.o src/feat.o src/netio.o src/cmd.o src/response.o src/ascii.o src/data.o src/modules.o src/stash.o src/display.o src/auth.o src/fsio.o src/mkhome.o src/ctrls.o src/event.o src/var.o src/throttle.o src/session.o src/trace.o src/encode.o src/proctitle.o src/filter.o src/pidfile.o src/env.o src/random.o src/version.o src/rlimit.o src/wtmp.o src/json.o src/jot.o src/memcache.o src/redis.o src/error.o modules/mod_core.o modules/mod_xfer.o modules/mod_rlimit.o modules/mod_auth_unix.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o modules/mod_dso.o modules/mod_auth_pam.o modules/mod_wrap2_file.o modules/mod_wrap2.o modules/mod_tls_shmcache.o modules/mod_tls.o modules/mod_facl.o modules/mod_cap.o modules/mod_lang.o modules/module_glue.o lib/libltdl/.libs/libltdlc.a -Wl,-L./lib,-L./lib -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic -L./lib/libltdl/.libs -lsupp -lattr -lcrypt -ldl -pthread -lpcreposix -lpcre -lssl -lcrypto -lcap -lssl -lcrypto -lpam -ldl -lidn -o .libs/proftpd -Wl,--export-dynamic /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: modules/mod_dso.o: warning: relocation against `lt__PROGRAM__LTX_preloaded_symbols' in read-only section `.text' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: modules/mod_dso.o: in function `dso_init': /dev/shm/portage/net-ftp/proftpd-1.3.7a-r1/work/proftpd-1.3.7a/modules/../modules/mod_dso.c:734: undefined reference to `lt__PROGRAM__LTX_preloaded_symbols' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: lib/libltdl/.libs/libltdlc.a(libltdlc_la-ltdl.o): in function `lt_dlinit': ltdl.c:(.text+0x11b3): undefined reference to `lt_libltdlc_LTX_preloaded_symbols' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating DT_TEXTREL in a PIE collect2: error: ld returned 1 exit status rlibtool: exec error upon slbt_exec_link_create_executable(), line 1745: (see child process error messages). rlibtool: < returned to > slbt_exec_link(), line 2155. make: *** [Makefile:74: proftpd] Error 2 """ `lt_libltdlc_LTX_preloaded_symbols` symbol look strange. GNU libtool provides slightly different form of it: $ nm -D /usr/lib64/libltdl.so | fgrep TX_preloaded_symbols 000000000000ad80 D lt_libltdl_LTX_preloaded_symbols Probably related to https://dev.midipix.org/cross/slibtool/issue/2 ?
*** Bug 914183 has been marked as a duplicate of this bug. ***
Fixed in slibtool-9999.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341f85a7caa16a7d986a4b428521562bf9120b08 commit 341f85a7caa16a7d986a4b428521562bf9120b08 Author: orbea <orbea@riseup.net> AuthorDate: 2024-03-15 13:51:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-15 19:29:22 +0000 dev-build/slibtool: add 0.5.36 Many bugs are fixed with this release, it is recommended for slibtool users to rebuild their entire system after this release. The addition of -export-symbols and -export-symbols-regex will allow exporting only the desired public symbols globally in any package that uses them. Closes: https://bugs.gentoo.org/925555 Closes: https://bugs.gentoo.org/913670 Closes: https://bugs.gentoo.org/916128 Closes: https://bugs.gentoo.org/775596 Closes: https://bugs.gentoo.org/792072 Closes: https://bugs.gentoo.org/924407 Closes: https://bugs.gentoo.org/924291 Closes: https://bugs.gentoo.org/782013 Closes: https://bugs.gentoo.org/914569 Closes: https://bugs.gentoo.org/791880 Closes: https://bugs.gentoo.org/913551 Closes: https://bugs.gentoo.org/913688 Closes: https://bugs.gentoo.org/914097 Closes: https://bugs.gentoo.org/915966 Closes: https://bugs.gentoo.org/924408 Closes: https://bugs.gentoo.org/915121 Closes: https://bugs.gentoo.org/913642 Closes: https://bugs.gentoo.org/917639 Closes: https://bugs.gentoo.org/917640 Closes: https://bugs.gentoo.org/913530 Closes: https://bugs.gentoo.org/913638 Closes: https://bugs.gentoo.org/778515 Closes: https://bugs.gentoo.org/920190 Closes: https://bugs.gentoo.org/924404 Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Sam James <sam@gentoo.org> dev-build/slibtool/Manifest | 2 ++ dev-build/slibtool/slibtool-0.5.36.ebuild | 41 +++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+)