Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739684 - net-misc/chrony-3.5.1-r1 - ld: privops.o: in function `helper_main': privops.c:(.text+0x520): undefined reference to `DNS_Reload'
Summary: net-misc/chrony-3.5.1-r1 - ld: privops.o: in function `helper_main': privops...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2020-14367
  Show dependency tree
 
Reported: 2020-08-30 22:57 UTC by Sam James
Modified: 2020-08-31 10:09 UTC (History)
0 users

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


Attachments
build.log (file_739684.txt,10.53 KB, text/plain)
2020-08-30 22:57 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester gentoo-dev Security 2020-08-30 22:57:55 UTC
Created attachment 657580 [details]
build.log

powerpc64le-unknown-linux-gnu-gcc -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -pthread -o chronyd array.o cmdparse.o conf.o local.o logging.o main.o memory.o reference.o regress.o rtc.o samplefilt.o sched.o sources.o sourcestats.o stubs.o smooth.o sys.o sys_null.o tempcomp.o util.o hash_nettle.o sys_generic.o sys_linux.o sys_timex.o sys_posix.o privops.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -lm -lnettle  -lseccomp
/usr/lib/gcc/powerpc64le-unknown-linux-gnu/9.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld: privops.o: in function `helper_main':
privops.c:(.text+0x520): undefined reference to `DNS_Reload'
/usr/lib/gcc/powerpc64le-unknown-linux-gnu/9.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld: privops.o: in function `PRV_ReloadDNS':
privops.c:(.text+0x830): undefined reference to `DNS_Reload'
collect2: error: ld returned 1 exit status

----
Portage 2.3.103 (python 3.7.8-final-0, default/linux/ppc64le/17.0, gcc-9.3.0, glibc-2.30-r8, 4.19.117-gentoo ppc64le)
=================================================================
System uname: Linux-4.19.117-gentoo-ppc64le-POWER8_-architected-,_altivec_supported-with-gentoo-2.6
KiB Mem:    24802800 total,   9881380 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 30 Aug 2020 21:35:26 +0000
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.8-r2::gentoo, 3.8.4-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches"
CHOST="powerpc64le-unknown-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-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/bound/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --keep-going"
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 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://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j13 -l13"
PKGDIR="/var/cache/binpkgs"
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"
USE="acl berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd ncurses nls nptl openmp pam pcre ppc64 readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_PPC="64" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-31 09:30:17 UTC
It's building nameserv.o which defines DNS_Reload:

powerpc64le-unknown-linux-gnu-gcc -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -pthread  -c nameserv.c

but nameserv.o is not included in the compiler/linker call:

powerpc64le-unknown-linux-gnu-gcc -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -pthread -o chronyd array.o cmdparse.o conf.o local.o logging.o main.o memory.o reference.o regress.o rtc.o samplefilt.o sched.o sources.o sourcestats.o stubs.o smooth.o sys.o sys_null.o tempcomp.o util.o hash_nettle.o sys_generic.o sys_linux.o sys_timex.o sys_posix.o privops.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -lm -lnettle  -lseccomp
Comment 2 Larry the Git Cow gentoo-dev 2020-08-31 09:43:49 UTC
The bug has been referenced in the following commit(s):

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

commit a4aa5823dd53e6fcf3f6185d114bcc1219c828e8
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-08-31 09:43:04 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-08-31 09:43:47 +0000

    net-misc/chrony: configure: Remove RELOADDNS from priv_ops
    
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Bug: https://bugs.gentoo.org/739684
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-misc/chrony/chrony-3.5.1-r1.ebuild | 1 +
 net-misc/chrony/chrony-4.0_pre3.ebuild | 1 +
 net-misc/chrony/chrony-9999.ebuild     | 1 +
 3 files changed, 3 insertions(+)