Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791880 - net-ftp/proftpd-1.3.7a-r1[dso] - /.../mod_dso.c:734: undefined reference to lt_PROGRAM_LTX_preloaded_symbols
Summary: net-ftp/proftpd-1.3.7a-r1[dso] - /.../mod_dso.c:734: undefined reference to l...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://dev.midipix.org/cross/slibtoo...
Whiteboard:
Keywords:
: 914183 (view as bug list)
Depends on:
Blocks: slibtool 925555
  Show dependency tree
 
Reported: 2021-05-24 21:49 UTC by Toralf Förster
Modified: 2024-02-26 17:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.52 KB, text/plain)
2021-05-24 21:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,169.40 KB, text/plain)
2021-05-24 21:49 UTC, Toralf Förster
Details
environment (environment,70.42 KB, text/plain)
2021-05-24 21:49 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.75 KB, application/x-bzip)
2021-05-24 21:49 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,30.19 KB, application/x-bzip)
2021-05-24 21:49 UTC, Toralf Förster
Details
net-ftp:proftpd-1.3.7a-r1:20210524-205933.log (net-ftp:proftpd-1.3.7a-r1:20210524-205933.log,139.94 KB, text/plain)
2021-05-24 21:49 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.63 KB, application/x-bzip)
2021-05-24 21:49 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-24 21:49:25 UTC
/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"
Comment 1 Toralf Förster gentoo-dev 2021-05-24 21:49:26 UTC
Created attachment 711057 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-24 21:49:27 UTC
Created attachment 711060 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-24 21:49:29 UTC
Created attachment 711063 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-24 21:49:30 UTC
Created attachment 711066 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-24 21:49:31 UTC
Created attachment 711069 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-24 21:49:33 UTC
Created attachment 711072 [details]
net-ftp:proftpd-1.3.7a-r1:20210524-205933.log
Comment 7 Toralf Förster gentoo-dev 2021-05-24 21:49:34 UTC
Created attachment 711075 [details]
temp.tar.bz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-25 07:02:17 UTC
Probably due to:

> declare -x LIBTOOL="rdlibtool"
> declare -x MAKEFLAGS="LIBTOOL=rdlibtool"
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-25 07:45:34 UTC
(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.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-25 07:49:54 UTC
(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?
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-31 09:32:45 UTC
(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.
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-31 09:55:46 UTC
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 ?
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-09 00:50:12 UTC
*** Bug 914183 has been marked as a duplicate of this bug. ***