Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 844160

Summary: app-admin/radmind-1.15.4 - snet.c:(.text+<snip>): undefined reference to sasl_encode
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: orbea, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/25485
https://bugs.gentoo.org/show_bug.cgi?id=779664
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-admin:radmind-1.15.4:20220514-010919.log
emerge-history.txt.bz2
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-05-14 08:13:34 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc  -Wall -Wmissing-prototypes -I/usr/include -I./libsnet -I. -pipe -march=native -fno-diagnostics-color -O2 -o ktcheck version.o ktcheck.o argcargv.o retr.o base64.o code.o cksum.o list.o llist.o connect.o applefile.o tls.o pathcmp.o progress.o mkdirs.o report.o rmdirs.o mkpref
x86_64-pc-linux-gnu-gcc  -Wall -Wmissing-prototypes -I/usr/include -I./libsnet -I. -pipe -march=native -fno-diagnostics-color -O2 -o lapply version.o lapply.o argcargv.o code.o base64.o retr.o radstat.o update.o cksum.o connect.o pathcmp.o progress.o applefile.o report.o tls.o mkprefix.o openssl_com
x86_64-pc-linux-gnu-gcc  -Wall -Wmissing-prototypes -I/usr/include -I./libsnet -I. -pipe -march=native -fno-diagnostics-color -O2 -o lcksum version.o lcksum.o argcargv.o cksum.o base64.o code.o progress.o pathcmp.o applefile.o connect.o root.o openssl_compat.o -Llibsnet/.libs -Wl,-O1 -Wl,--as-needed
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: libsnet/.libs/libsnet.a(snet.o): in function `snet_write0':
snet.c:(.text+0x34b): undefined reference to `sasl_encode'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: libsnet/.libs/libsnet.a(snet.o): in function `snet_read1':
snet.c:(.text+0x64e): undefined reference to `sasl_decode'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220504-230005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.0 *
clang/llvm (if any):
clang version 14.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.3
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
2)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit dd9f8aabb88055bde9770e568b797022f96aafe2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat May 14 00:18:17 2022 +0000

    2022-05-14 00:18:16 UTC

emerge -qpvO app-admin/radmind
[ebuild  N    ] app-admin/radmind-1.15.4
Comment 1 Toralf Förster gentoo-dev 2022-05-14 08:13:35 UTC
Created attachment 778688 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-14 08:13:37 UTC
Created attachment 778691 [details]
app-admin:radmind-1.15.4:20220514-010919.log
Comment 3 Toralf Förster gentoo-dev 2022-05-14 08:13:38 UTC
Created attachment 778694 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-05-14 08:13:39 UTC
Created attachment 778697 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-05-14 08:13:40 UTC
Created attachment 778700 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-14 08:13:41 UTC
Created attachment 778703 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-05-14 08:13:42 UTC
Created attachment 778706 [details]
temp.tar.bz2
Comment 8 orbea 2022-05-14 09:44:11 UTC
Every time I think I found all of the issues in this package...

This is happening because libsnet is being built with cyrus_sasl, but radmind is missing -lsasl2 itself. I'll fix it tomorrow as well as the missing dependencies in the ebuild.
Comment 9 orbea 2022-05-14 18:09:13 UTC
This was my fault.

If cyrus-sasl is installed on the system the libsnet submodule will enable it and then radmind will fail with undefined references when it doesn't use -lsasl2. However in my earlier patches I accidentally removed the part that disabled sasl support in libsnet from the radmind configure script.
Comment 10 Larry the Git Cow gentoo-dev 2022-05-15 00:05:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1843f84e6b30d338ad004baed919ef6313fe0e4f

commit 1843f84e6b30d338ad004baed919ef6313fe0e4f
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-05-14 17:44:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-15 00:05:31 +0000

    app-admin/radmind: Fix build with cyrus-sasl
    
    When radmind is build while cyrus-sasl is installed on the system the
    libsnet submodule will enable it and then radmind will fail to compile
    with undefined refererenes for sasl.
    
    This was caused by my earlier patches that accidentally dropped that
    part in radmind that disabled sasl support during the libsnet configure
    process.
    
    I also added missing dependencies and USE flags.
    
    Bug: https://bugs.gentoo.org/844160
    Upstream-PR: https://github.com/Radmind/radmind/pull/336
    Upstream-PR: https://github.com/voretaq7/radmind/pull/1
    Upstream-PR: https://sourceforge.net/p/libsnet/patches/7/
    Fixes: https://github.com/gentoo/gentoo/commit/601775bd1dbb2e6f87c8eb39bee18a8964324e22
    Signed-off-by: orbea <orbea@riseup.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/radmind-1.15.4-autoreconf-libsnet.patch  | 109 +++++++++++++
 .../radmind/files/radmind-1.15.4-autoreconf.patch  | 176 +++++++++++++++++++++
 app-admin/radmind/radmind-1.15.4-r1.ebuild         |  57 +++++++
 3 files changed, 342 insertions(+)