Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806583 - mail-filter/libspf2-1.2.10 - /.../ld: ../.../ undefined reference to _dn_expand
Summary: mail-filter/libspf2-1.2.10 - /.../ld: ../.../ undefined reference ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
Depends on:
Blocks: glibc-2.34
  Show dependency tree
Reported: 2021-08-05 17:04 UTC by Toralf Förster
Modified: 2021-10-26 07:35 UTC (History)
1 user (show)

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

emerge-info.txt (emerge-info.txt,15.47 KB, text/plain)
2021-08-05 17:04 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,135.62 KB, text/plain)
2021-08-05 17:04 UTC, Toralf Förster
environment (environment,67.34 KB, text/plain)
2021-08-05 17:04 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.04 KB, application/x-bzip)
2021-08-05 17:04 UTC, Toralf Förster
logs.tar.bz2 (logs.tar.bz2,12.34 KB, application/x-bzip)
2021-08-05 17:04 UTC, Toralf Förster
mail-filter:libspf2-1.2.10:20210805-161245.log (mail-filter:libspf2-1.2.10:20210805-161245.log,31.74 KB, text/plain)
2021-08-05 17:04 UTC, Toralf Förster
temp.tar.bz2 (temp.tar.bz2,24.29 KB, application/x-bzip)
2021-08-05 17:04 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
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/ -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/ -lpthread -lnsl -lresolv
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../../src/libspf2/.libs/ 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/ 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
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 <>
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]
Comment 2 Toralf Förster gentoo-dev 2021-08-05 17:04:37 UTC
Created attachment 730458 [details]
Comment 3 Toralf Förster gentoo-dev 2021-08-05 17:04:39 UTC
Created attachment 730461 [details]
Comment 4 Toralf Förster gentoo-dev 2021-08-05 17:04:40 UTC
Created attachment 730464 [details]
Comment 5 Toralf Förster gentoo-dev 2021-08-05 17:04:41 UTC
Created attachment 730467 [details]
Comment 6 Toralf Förster gentoo-dev 2021-08-05 17:04:43 UTC
Created attachment 730470 [details]
Comment 7 Toralf Förster gentoo-dev 2021-08-05 17:04:44 UTC
Created attachment 730473 [details]
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):

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

    mail-filter/libspf2-1.2.11: add musl and glibc patches
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <>

 .../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