Bug 1989424

Summary: exim-4.94.2-3.fc35 FTBFS: ld: /usr/lib/gcc/aarch64-redhat-linux/11/../../../../lib64/libopendmarc.so: undefined reference to `__dn_expand'
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: opendmarcAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bennie.joubert, dwmw2, jskarvad, kevin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/exim
Whiteboard:
Fixed In Version: opendmarc-1.4.1.1-5.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-04 16:37:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1927309    

Description Petr Pisar 2021-08-03 08:11:33 UTC
exim-4.94.2-3.fc35 fails to build in Fedora 35:

cc -o exim -rdynamic -ldl -pie 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 -L/usr/lib64/nsl -lnsl    \
  -lpam -ldl -export-dynamic -rdynamic -ldb -lldap -llber -lsqlite3 -lsasl2 -lgsasl  \
  -Wl,--enable-new-dtags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib64/perl5/CORE -lperl -lpthread -lresolv -ldl -lm -lcrypt -lutil -lc -lssl -lcrypto  -lpcre -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -pie -Wl,-z,relro,-z,now -lopendmarc -lspf2 -lssl -lcrypto 
[…]
/usr/bin/ld: /usr/lib/gcc/aarch64-redhat-linux/11/../../../../lib64/libopendmarc.so: undefined reference to `__dn_expand'
/usr/bin/ld: /usr/lib/gcc/aarch64-redhat-linux/11/../../../../lib64/libopendmarc.so: undefined reference to `__dn_skipname'
/usr/bin/ld: /usr/lib/gcc/aarch64-redhat-linux/11/../../../../lib64/libopendmarc.so: undefined reference to `__res_nquery'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:673: exim] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/exim-4.94.2/build-Linux-aarch64'

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/10748605>.

This could be a bug in opendmarc-1.4.1.1-4.fc35 which uses internals of glibc which changed between 2.33.9000-43.fc35 and 2.33.9000-54.fc35.

Comment 1 Jaroslav Škarvada 2021-08-03 19:28:18 UTC
This problem seems to be caused by opendmarc. Just rebuilding opendmarc with the latest glibc seems to fix this problem for me. Reassigning to opendmarc.

Comment 2 Kevin Fenzi 2021-08-04 16:28:54 UTC
ok. rebuild of opendmarc: https://koji.fedoraproject.org/koji/taskinfo?taskID=73279611

Can you confirm that fixes the issue you are seeing?

Comment 3 Fedora Update System 2021-08-04 16:37:37 UTC
FEDORA-2021-4ba5962fcb has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4ba5962fcb

Comment 4 Fedora Update System 2021-08-04 16:37:58 UTC
FEDORA-2021-4ba5962fcb has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Jaroslav Škarvada 2021-08-05 09:01:57 UTC
(In reply to Kevin Fenzi from comment #2)
> ok. rebuild of opendmarc:
> https://koji.fedoraproject.org/koji/taskinfo?taskID=73279611
> 
> Can you confirm that fixes the issue you are seeing?

It works for me, i.e. the exim rebuild now passed.