Bug 15421 - 4.18.4: build fails on linking samba-regedit
Summary: 4.18.4: build fails on linking samba-regedit
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-13 14:03 UTC by Tomasz Kloczko
Modified: 2024-02-14 20:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Kloczko 2023-07-13 14:03:56 UTC
[3488/3627] Linking bin/default/source3/utils/samba-regedit
13:14:19 runner ['/usr/bin/gcc', '-Wl,--as-needed', 'lib/cmdline/cmdline_s3.c.4.o', 'source3/utils/regedit.c.38.o', 'source3/utils/regedit_samba3.c.38.o', 'source3/utils/regedit_wrap.c.38.o', 'source3/utils/regedit_treeview.c.38.o', 'source3/utils/regedit_valuelist.c.38.o', 'source3/utils/regedit_dialog.c.38.o', 'source3/utils/regedit_hexedit.c.38.o', 'source3/utils/regedit_list.c.38.o', '-o/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source3/utils/samba-regedit', '-Wl,-rpath,/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/shared', '-Wl,-rpath,/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/shared/private', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/cluster', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/lib/messaging', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/auth', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/libcli/ldap', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/nsswitch/libwbclient', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/dns', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/ldap', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libds/common', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/auth/kerberos', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/tdb_wrap', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/cldap', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/auth/gensec', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/http', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/addns', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/lib/socket', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/lib/events', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/libcli', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/nbt', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/dsdb', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/auth', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/krb5_wrap', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/auth/credentials', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/smb', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/param', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/socket', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/messaging', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/util', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/security', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/dbwrap', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/replace', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/librpc', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/librpc', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/util', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/ldb-samba', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/libcli/registry', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/lib/cmdline', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source3', '-L/home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin/default/source4/lib/registry', '-L/usr/local/lib', '-L/usr/local/lib', '-L/usr/lib64', '-lregistry-samba4', '-lsmbconf', '-lcmdline-samba4', '-lsecrets3-samba4', '-lutil-reg-samba4', '-lldbsamba-samba4', '-lsamba-util', '-ldcerpc', '-ldcerpc-samba-samba4', '-lreplace-samba4', '-lndr', '-lmessages-util-samba4', '-lsamba3-util-samba4', '-lsamba-debug-samba4', '-ldbwrap-samba4', '-lsys-rw-samba4', '-lserver-id-db-samba4', '-lsamba-security-samba4', '-ltalloc-report-printf-samba4', '-lsamba-errors', '-liov-buf-samba4', '-lsocket-blocking-samba4', '-lmessages-dgm-samba4', '-linterfaces-samba4', '-lsamba-sockets-samba4', '-lCHARSET3-samba4', '-lsmbd-shim-samba4', '-ltevent-util', '-lsamba-cluster-support-samba4', '-lutil-tdb-samba4', '-lsamba-hostconfig', '-lcli-smb-common-samba4', '-lsamba-credentials', '-lndr-nbt', '-lkrb5samba-samba4', '-lcliauth-samba4', '-lsamdb-common-samba4', '-lndr-samba-samba4', '-lgenrand-samba4', '-lutil-setid-samba4', '-ltime-basic-samba4', '-ldcerpc-pkt-auth-samba4', '-ldcerpc-binding', '-lcli-nbt-samba4', '-lsmbclient-raw-samba4', '-levents-samba4', '-lnetif-samba4', '-laddns-samba4', '-lhttp-samba4', '-lgensec-samba4', '-lcli-cldap-samba4', '-lndr-standard', '-ltdb-wrap-samba4', '-lmsghdr-samba4', '-lserver-role-samba4', '-lsmb-transport-samba4', '-lauthkrb5-samba4', '-lasn1util-samba4', '-lflag-mapping-samba4', '-lcli-ldap-common-samba4', '-lstable-sort-samba4', '-lndr-krb5pac', '-lclidns-samba4', '-lsamba-modules-samba4', '-lwbclient', '-lsamdb', '-lcli-ldap-samba4', '-lcommon-auth-samba4', '-lMESSAGING-SEND-samba4', '-lcluster-samba4', '-llber', '-lcups', '-lldap', '-lgnutls', '-lsystemd', '-licuuc', '-licudata', '-licui18n', '-lz', '-lkrb5', '-lk5crypto', '-lcom_err', '-lgssapi_krb5', '-lkrb5', '-lk5crypto', '-lcom_err', '-lcom_err', '-ljansson', '-lresolv', '-lform', '-ltalloc', '-lldb', '-lncurses', '-lpanel', '-ltevent', '-ltalloc', '-ltdb', '-lcap', '-lpopt', '-ltalloc', '-lmenu', '-Wl,--gc-sections', '-Wl,--as-needed', '-flto=auto', '-flto-partition=none', '-fuse-linker-plugin', '-Wl,-z,now', '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld', '-Wl,--build-id=sha1', '-pie', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic']
/usr/bin/ld: /usr/lib64/libncurses.so: undefined reference to symbol 'LINES'
/usr/bin/ld: /usr/lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

ncurses 6.4-20230603 configured with:

%configure \
        --disable-lib-suffixes \
        --disable-root-access \
        --disable-root-environ \
        --disable-rpath \
        --disable-rpath-hack \
        --disable-stripping \
        --disable-wattr-macros \
        --enable-colorfgbg \
        --enable-hard-tabs \
        --enable-overwrite \
        --enable-pc-files \
        --enable-widec \
        --enable-xmc-glitch \
        --with-abi-version=6 \
        --with-cxx-shared \
        --with-dlsym \
        --with-libtool \
        --with-manpage-aliases \
        --with-manpage-format=normal \
        --with-manpage-tbl \
        --with-ospeed=unsigned \
        --without-ada \
        --with-pkg-config-libdir=%{_libdir}/pkgconfig \
        --with-progs \
        --with-shared \
        --with-terminfo-dirs=%{_datadir}/terminfo \
        --with-termlib=tinfo \
        --with-ticlib=tic \
        --with-x11-rgb=%{_datadir}/X11/rgb.txt \
        --with-xterm-kbs=DEL \
        %{nil}
Comment 1 Tomasz Kloczko 2023-07-13 14:04:09 UTC
%configure \
        --disable-lib-suffixes \
        --disable-root-access \
        --disable-root-environ \
        --disable-rpath \
        --disable-rpath-hack \
        --disable-stripping \
        --disable-wattr-macros \
        --enable-colorfgbg \
        --enable-hard-tabs \
        --enable-overwrite \
        --enable-pc-files \
        --enable-widec \
        --enable-xmc-glitch \
        --with-abi-version=6 \
        --with-cxx-shared \
        --with-dlsym \
        --with-libtool \
        --with-manpage-aliases \
        --with-manpage-format=normal \
        --with-manpage-tbl \
        --with-ospeed=unsigned \
        --without-ada \
        --with-pkg-config-libdir=%{_libdir}/pkgconfig \
        --with-progs \
        --with-shared \
        --with-terminfo-dirs=%{_datadir}/terminfo \
        --with-termlib=tinfo \
        --with-ticlib=tic \
        --with-x11-rgb=%{_datadir}/X11/rgb.txt \
        --with-xterm-kbs=DEL \
        %{nil}
Comment 2 Tomasz Kloczko 2023-07-13 14:07:02 UTC
samba configure output

+ ./configure --bindir=/usr/bin --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --mandir=/usr/share/man --prefix=/usr '--bundled-libraries=!popt,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!tdb,!pytdb,!ldb,!pyldb,!pyldb-util' --sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc --disable-rpath-install --enable-fhs --systemd-install-services --systemd-nmb-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --systemd-samba-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --systemd-smb-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --systemd-winbind-extra=Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba --with-cachedir=/samba --with-lockdir=/var/lib/samba/lock --with-modulesdir=/usr/lib64/samba --without-fam --with-pam --with-pammodulesdir=/usr/lib64/security --with-piddir=/run --with-pie --with-quotas --with-relro --with-shared-modules=idmap_ad,idmap_rid,idmap_ldap,idmap_hash,idmap_tdb2,pdb_tdbsam,pdb_ldap,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,auth_wbc,auth_unix,auth_server,auth_samba4,vfs_dfs_samba4 --with-sockets-dir=/run/samba --with-statedir=/var/lib/samba --with-systemd --enable-glusterfs --pythonarchdir=/usr/lib64/python3.8/site-packages --with-cluster-support --with-experimental-mit-ad-dc --with-systemddir=/usr/lib/systemd/system --with-system-mitkrb5 --with-profiling-data --enable-selftest
Setting top to                           : /home/tkloczko/rpmbuild/BUILD/samba-4.18.4
Setting out to                           : /home/tkloczko/rpmbuild/BUILD/samba-4.18.4/bin
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for program 'git'               : /usr/bin/git
Checking for c flags '-MMD'              : yes
Checking for program 'gdb'               : /usr/bin/gdb
Checking for header sys/utsname.h        : yes
Checking uname sysname type              : Linux
Checking uname machine type              : x86_64
Checking uname release type              : 6.3.8-200.fc38.x86_64
Checking uname version type              : #1 SMP PREEMPT_DYNAMIC Thu Jun 15 02:15:40 UTC 2023
Checking for header stdio.h              : yes
Checking simple C program                : ok
Checking compiler accepts ['-Werror']    : yes
Checking linker accepts ['-Wl,-rpath,.'] : yes
Checking for rpath library support       : yes
Checking for -Wl,--version-script support : yes


[..]

Checking for library ncurses                                                                    : yes
Checking for tgetent in ncurses                                                                 : not found
Checking for library curses                                                                     : no
Checking for tgetent                                                                            : not found
Checking for library termcap                                                                    : yes
Checking for tgetent in termcap                                                                 : ok
for compiling <readline/readline.h> with strict prototypes                                      : not found
for workaround to <readline/readline.h> strict prototypes issue                                 : not found
Checking for rl_completion_t                                                                    : not found