Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 839951 - mail-mta/exim-4.94.2-r7: failed to build with libopendmarc
Summary: mail-mta/exim-4.94.2-r7: failed to build with libopendmarc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.34
  Show dependency tree
 
Reported: 2022-04-21 19:11 UTC by doj
Modified: 2022-04-23 23:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description doj 2022-04-21 19:11:14 UTC
I am trying to build the exim MTA with libopendmarc. Compilation now fails with:

x86_64-pc-linux-gnu-gcc -o exim -Wl,-O1 -Wl,--as-needed -lssl -lcrypto  acl.o base64.o child.o crypt16.o daemon.o dbfn.o debug.o deliver.o directory.o dns.o drtables.o enq.o exim.o expand.o filter.o filtertest.o globals.o dkim.o dkim_transport.o hash.o header.o host.o ip.o log.o lss.o match.o md5.o moan.o os.o parse.o priv.o queue.o rda.o readconf.o receive.o retry.o rewrite.o rfc2047.o route.o search.o sieve.o smtp_in.o smtp_out.o spool_in.o spool_out.o std-crypto.o store.o string.o tls.o tod.o transport.o tree.o verify.o environment.o macro.o lookups/lf_quote.o lookups/lf_check_file.o lookups/lf_sqlperform.o local_scan.o perl.o malware.o mime.o regex.o spam.o spool_mbox.o arc.o bmi_spam.o dane.o dcc.o dmarc.o imap_utf7.o spf.o srs.o utf8.o version.o \
  routers/routers.a transports/transports.a lookups/lookups.a \
  auths/auths.a pdkim/pdkim.a \
  -lresolv -lcrypt -lm    \
  -lidn -lidn2 -lopendmarc -lspf2 -lsrs_alt -ldb-5.3  -lpam \
  -Wl,-E -Wl,-O1 -Wl,--as-needed  -L/usr/lib64/perl5/5.34/x86_64-linux/CORE -lperl -ldl -lm -lcrypt -lutil -lc -lssl -lcrypto  -L/usr/lib64 -lpcre -rdynamic -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libopendmarc.so: undefined reference to `__dn_expand'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libopendmarc.so: undefined reference to `__dn_skipname'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libopendmarc.so: undefined reference to `__res_nquery'
collect2: error: ld returned 1 exit status


Now I think that these functions are provided by -lresolv , but this is listed before -lopendmarc on the linker command line.
I did not have this issue before, and currently I have exim 4.94.2 installed, which was compiled on 2022-01-17.
I used the following USE flags for the exim ebuild: "mail-mta/exim exiscan-acl mbx uuid srs dcc dns perl lmtp spf dkim dmarc -postgres"

Reproducible: Always




# emerge --info
Portage 3.0.30 (python 3.9.11-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.2.1, glibc-2.34-r10, 4.14.78-gentoo x86_64)
=================================================================
System uname: Linux-4.14.78-gentoo-x86_64-Intel_Xeon_E312xx_-Sandy_Bridge-with-glibc2.34
KiB Mem:     3497444 total,    883128 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 21 Apr 2022 17:45:01 +0000
Head commit of repository gentoo: 130f73edc7a4bb93cf1f97985a34866a1d90bc74
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.8.13::gentoo, 3.9.11::gentoo, 3.10.3::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

doj
    location: /home/doj/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.fau.de/gentoo http://mirror.netcologne.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 apache2 berkdb bindist bzip2 cgi cli crypt curl cvsgraph dlz dri exif fortran gd gdbm geoip gif iconv idn imagemagick imap inifile ipv6 jpeg libglvnd libtirpc libxml2 mmx ncurses nls nptl openmp pam pcre perl png postgres python readline ruby seccomp split-usr sse sse2 ssl subversion tiff unicode uuid vhosts xattr xml xslt zip zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-21 19:19:08 UTC
See https://github.com/gentoo/gentoo/pull/25003. The issue is opendmarc is underlinked (you should be able to emerge -v1 opendmarc for now).
Comment 2 doj 2022-04-21 21:19:36 UTC
yes, rebuilding opendmarc, then buildind exim solved the problem for me.
Comment 3 Larry the Git Cow gentoo-dev 2022-04-22 06:34:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ad9952d876da2b83ccf9a519661afbbd5ab6d13

commit 4ad9952d876da2b83ccf9a519661afbbd5ab6d13
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2022-04-22 06:33:56 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2022-04-22 06:34:21 +0000

    mail-filter/opendmarc: stable revbump for glibc upgrade
    
    This is clumpsy.  Force update along with glibc update, such that
    dependent packages won't see undefined symbols due to glibc changes
    (resolv).
    
    Closes: https://bugs.gentoo.org/839951
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 mail-filter/opendmarc/opendmarc-1.4.1.1-r2.ebuild |  3 +-
 mail-filter/opendmarc/opendmarc-1.4.1.1-r3.ebuild | 71 +++++++++++++++++++++++
 2 files changed, 73 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2022-04-23 23:46:43 UTC
The bug has been closed via the following commit(s):

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

commit a62fc3b9e32e7678fea4a1c636aa29605aabbb20
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-04-23 23:46:21 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-04-23 23:46:21 +0000

    mail-filter/opendmarc: [QA] fix glibc upgrade issue without hacks
    
    Closes: https://bugs.gentoo.org/839951
    Closes: https://github.com/gentoo/gentoo/pull/25173
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/opendmarc-1.4.1.1-underlinking.patch     | 17 ++++++
 mail-filter/opendmarc/opendmarc-1.4.1.1-r3.ebuild  | 71 ----------------------
 ...4.1.1-r2.ebuild => opendmarc-1.4.1.1-r4.ebuild} | 15 +++--
 3 files changed, 24 insertions(+), 79 deletions(-)