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

Bug 806583

Summary: mail-filter/libspf2-1.2.10 - /.../ld: ../.../libspf2.so: undefined reference to _dn_expand
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Fabian Groffen <grobian>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=807739
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 803482    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
mail-filter:libspf2-1.2.10:20210805-161245.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-08-05 17:04:35 UTC
/bin/sh ../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -pipe -march=native -fno-diagnostics-color -O2 -Wall  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o spfquery spfquery.o ../../src/libspf2/libspf2.la -lpthread -lnsl -lresolv 
libtool: link: x86_64-pc-linux-gnu-gcc -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wl,-O1 -Wl,--defsym=__gentoo_check_ldflags__=0 -o .libs/spfquery spfquery.o  -Wl,--as-needed ../../src/libspf2/.libs/libspf2.so -lpthread -lnsl -lresolv
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../../src/libspf2/.libs/libspf2.so: undefined reference to `__dn_expand'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../../src/libspf2/.libs/libspf2.so: undefined reference to `__dn_skipname'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:433: spfquery] Error 1
make[4]: Leaving directory '/var/tmp/portage/mail-filter/libspf2-1.2.10/work/libspf2-1.2.10/src/spfquery'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j3-20210804-131442

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.54.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK JRE 8.292_p10 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm

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

  HEAD of ::gentoo
commit f203e9f7be5be1ab3cb620f310c3ec3da2ba748b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Aug 5 15:05:50 2021 +0000

    2021-08-05 15:05:48 UTC

emerge -qpvO mail-filter/libspf2
[ebuild  N    ] mail-filter/libspf2-1.2.10
Comment 1 Toralf Förster gentoo-dev 2021-08-05 17:04:36 UTC
Created attachment 730455 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-05 17:04:37 UTC
Created attachment 730458 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-05 17:04:39 UTC
Created attachment 730461 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-05 17:04:40 UTC
Created attachment 730464 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-05 17:04:41 UTC
Created attachment 730467 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-05 17:04:43 UTC
Created attachment 730470 [details]
mail-filter:libspf2-1.2.10:20210805-161245.log
Comment 7 Toralf Förster gentoo-dev 2021-08-05 17:04:44 UTC
Created attachment 730473 [details]
temp.tar.bz2
Comment 8 Fabian Groffen gentoo-dev 2021-10-25 17:05:32 UTC
taking over this package since it's a dep of Exim
Comment 9 Fabian Groffen gentoo-dev 2021-10-25 17:34:17 UTC
Clearly -lresolv is in the linkline, so there is something else going on here.  I don't have a glibc-2.34 system to test on at the moment.
Comment 10 Larry the Git Cow gentoo-dev 2021-10-26 07:23:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e5229b1170c8b1b151e70167a4b600c4a545fbc

commit 1e5229b1170c8b1b151e70167a4b600c4a545fbc
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-10-26 07:21:20 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-10-26 07:23:15 +0000

    mail-filter/libspf2-1.2.11: add musl and glibc patches
    
    Closes: https://bugs.gentoo.org/806583
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 .../libspf2/files/libspf2-1.2.11-musl.patch        |  30 +++++
 .../files/libspf2-1.2.11-undefined-dn_.patch       | 138 +++++++++++++++++++++
 mail-filter/libspf2/libspf2-1.2.11.ebuild          |   2 +
 3 files changed, 170 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-26 07:35:53 UTC
cheers grobian and I'm sorry you've been kind of dumped with this, do really appreciate it