Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689896 - app-portage/portage-utils-0.80_pre20190714 - ld: q-main.o:(.data.rel.ro+0x1c8): undefined reference to `qtegrity_main'
Summary: app-portage/portage-utils-0.80_pre20190714 - ld: q-main.o:(.data.rel.ro+0x1c8...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-15 14:37 UTC by Albert W. Hopkins
Modified: 2019-07-19 07:55 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,115.49 KB, text/plain)
2019-07-15 14:45 UTC, Albert W. Hopkins
Details
fix (fix-qtegrity.patch,990 bytes, patch)
2019-07-17 19:03 UTC, Philipp Ammann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2019-07-15 14:37:10 UTC
We've been getting the following when attempting to build the latest portage-utils.  This is with USE="-qtegrity"

```
/bin/sh ./libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2     -march=native     -mtune=skylake     -pipe  -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 -Wmissing-declarations -Wwrite-strings -Wbad-function-cast -Wnested-externs -Wcomment -Winline -Wchar-subscripts -Wcast-align -Wsequence-point -Wold-style-definition -Wextra -Wno-format-nonliteral -Wno-expansion-to-defined  -Wl,-O1 -Wl,--as-needed -o q q-main.o q-q.o q-qatom.o q-qcheck.o q-qdepends.o q-qfile.o q-qgrep.o q-qkeyword.o q-qlist.o q-qlop.o q-qmerge.o q-qpkg.o q-qsearch.o q-qsize.o q-qtbz2.o q-quse.o q-qxpak.o   ./libq/libq.la ./autotools/gnulib/libgnu.a -liniparser          
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -march=native -mtune=skylake -pipe -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 -Wmissing-declarations -Wwrite-strings -Wbad-function-cast -Wnested-externs -Wcomment -Winline -Wchar-subscripts -Wcast-align -Wsequence-point -Wold-style-definition -Wextra -Wno-format-nonliteral -Wno-expansion-to-defined -Wl,-O1 -Wl,--as-needed -o q q-main.o q-q.o q-qatom.o q-qcheck.o q-qdepends.o q-qfile.o q-qgrep.o q-qkeyword.o q-qlist.o q-qlop.o q-qmerge.o q-qpkg.o q-qsearch.o q-qsize.o q-qtbz2.o q-quse.o q-qxpak.o  ./libq/.libs/libq.a ./autotools/gnulib/libgnu.a -liniparser
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: q-main.o:(.data.rel.ro+0x1c8): undefined reference to `qtegrity_main'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: q-main.o:(.data.rel.ro+0x308): undefined reference to `qtegrity_main'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: q-q.o:(.data.rel.ro+0x1c8): undefined reference to `qtegrity_main'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: q-q.o:(.data.rel.ro+0x308): undefined reference to `qtegrity_main'
collect2: error: ld returned 1 exit status
```
Comment 1 Albert W. Hopkins 2019-07-15 14:38:49 UTC
```
# emerge --info =app-portage/portage-utils-0.80_pre20190714
Portage 2.3.69 (python 3.6.9-final-0, default/linux/amd64/17.0/no-multilib, gcc-9.1.0, glibc-2.29-r2, 5.2.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.0-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_0_@_2.30GHz-with-gentoo-2.6
KiB Mem:    32886652 total,    879636 free
KiB Swap:    3145724 total,   2110460 free
Timestamp of repository gentoo: Mon, 15 Jul 2019 13:44:46 +0000
Timestamp of repository marduk: Fri, 21 Jun 2019 15:19:36 +0000
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo, 3.7.3::gentoo
dev-util/cmake:           3.14.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://blackwidow/portage
    priority: -1000
    sync-rsync-verify-metamanifest: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

marduk
    location: /usr/local/portage
    sync-type: rsync
    sync-uri: rsync://blackwidow/local-portage
    masters: gentoo
    priority: 50
    sync-rsync-verify-metamanifest: False
    sync-rsync-extra-opts: 

Installed sets: @avaya
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE AdobeFlash-11.x Google-TOS google-chrome google-talkplugin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="     -O2     -march=native     -mtune=skylake     -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="     -O2     -march=native     -mtune=skylake     -pipe "
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="     --alphabetical     --autounmask=n     --buildpkg-exclude=sys-kernel/gentoo-sources     --changed-deps=y     --color=n     --jobs=5     --nospinner     --unordered-display     --verbose-conflicts     --with-bdeps=y  --jobs=3"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 binpkg-multi-instance buildpkg cgroup config-protect-if-modified distlocks fixlafiles ipc-sandbox multilib-strict network-sandbox news noinfo notitles parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms skiprocheck strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_COMPRESS_FLAGS=""
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 aes amd64 asm avx avx2 f16c fma3 glamor introspection ipv6 jpeg2k mmx mmxext nls nptl opentype pam pclmul popcnt seccomp split-usr sse sse2 sse3 sse4_1 sse4_2 ssse3 systemd udev unicode urandom utf8 wayland xattr" ABI_X86="64" APACHE2_MODULES="auth_digest authn_core authn_file authz authz_core authz_groupfile authz_host authz_user dav dav_fs dir group_file mime socache_shmcb unixd" APACHE2_MPMS="prefork" CAMERAS="*" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" FFTOOLS="*" INPUT_DEVICES="libinput" KERNEL="linux" LLVM_TARGETS="X86" NGINX_MODULES_HTTP="auth_basic gzip proxy rewrite uwsgi" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
```
Comment 2 Albert W. Hopkins 2019-07-15 14:45:06 UTC
Created attachment 582888 [details]
build.log
Comment 3 Philipp Ammann 2019-07-17 18:50:16 UTC
I'm running into the same problem. This is definitely an issue with the package.
Comment 4 Philipp Ammann 2019-07-17 19:03:02 UTC
Created attachment 583338 [details, diff]
fix

That was easy enough to fix. Just a case of a missing #ifdef ENABLE_QTEGRITY.
Comment 5 Fabian Groffen gentoo-dev 2019-07-18 07:27:34 UTC
Ah, yes, I'm terribly sorry, but life is a rollercoaster at the moment, I'll try to apply the fix and roll a new release ASAP.  Sorry for the inconvenience again.
Comment 6 Larry the Git Cow gentoo-dev 2019-07-18 17:47:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=73577cafa452ae8df91e6fcc776bb9411ce6efc6

commit 73577cafa452ae8df91e6fcc776bb9411ce6efc6
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-07-18 17:46:39 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-07-18 17:46:39 +0000

    travis: test permutations of enabled/disabled features
    
    Bug: https://bugs.gentoo.org/689896
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 travis/main.sh | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2019-07-18 17:55:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=573a93e0ddccfa316cf3b37b3d25717e0a639def

commit 573a93e0ddccfa316cf3b37b3d25717e0a639def
Author:     Philipp Ammann <philipp.ammann@posteo.de>
AuthorDate: 2019-07-18 17:54:28 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-07-18 17:54:28 +0000

    applets: properly disable qtegrity when requested
    
    This fixes the final linking stage due to undefined references to
    qtegrity_main.
    
    Bug: https://bugs.gentoo.org/689896
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 applets.h | 4 ++++
 1 file changed, 4 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2019-07-19 07:55:47 UTC
The bug has been closed via the following commit(s):

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

commit c6daa407388e63b9f072a9934470cce37618f194
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-07-19 07:51:00 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-07-19 07:52:49 +0000

    app-portage/portage-utils: bump 0.80 RC
    
    This release adds -F (custom formatting) support for about any applet
    (https://bugs.gentoo.org/683430#c36), improves qlop's running output
    somewhat and fixes a linking error with USE=-qtegrity.
    
    Bug: https://bugs.gentoo.org/683430
    Closes: https://bugs.gentoo.org/689896
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11

 app-portage/portage-utils/Manifest                                      | 2 +-
 ...ls-0.80_pre20190714.ebuild => portage-utils-0.80_pre20190719.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)