Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641226 - sys-fs/cryptsetup-2.0.0[openssl,static] multiple definition of `SHA1'
Summary: sys-fs/cryptsetup-2.0.0[openssl,static] multiple definition of `SHA1'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 639652 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-15 23:44 UTC by Conrad Kostecki
Modified: 2017-12-17 15:48 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,109.94 KB, text/plain)
2017-12-15 23:45 UTC, Conrad Kostecki
Details
cryptsetup-static-pwquality.patch (cryptsetup-static-pwquality.patch,308 bytes, patch)
2017-12-17 14:55 UTC, Conrad Kostecki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2017-12-15 23:44:55 UTC
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -static -Wl,-O1 -Wl,--sort-common -Wl,-z -Wl,now -o veritysetup.static lib/utils_crypt.o lib/utils_loop.o src/utils_tools.o src/veritysetup.o  -Wl,--as-needed ./.libs/libcryptsetup.a -L/lib64 -largon2 -ljson-c -lpopt -lssl -lcrypto -lgmp -ldl -lz -ldevmapper -lm -lrt -lpthread -ludev -luuid
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -static -Wl,-O1 -Wl,--sort-common -Wl,-z -Wl,now -o cryptsetup.static lib/utils_crypt.o lib/utils_loop.o src/utils_tools.o src/utils_password.o src/cryptsetup.o  -Wl,--as-needed ./.libs/libcryptsetup.a -L/lib64 -largon2 -ljson-c -lpopt -luuid -lssl -lcrypto -lgmp -ldl -lpwquality /usr/lib64/libcrack.a -lz -ldevmapper -lm -lrt -lpthread -ludev
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -static -Wl,-O1 -Wl,--sort-common -Wl,-z -Wl,now -o cryptsetup-reencrypt.static lib/utils_crypt.o src/utils_tools.o src/utils_password.o src/cryptsetup_reencrypt.o  -Wl,--as-needed ./.libs/libcryptsetup.a -L/lib64 -largon2 -ljson-c -lpopt -lpwquality -luuid -lssl -lcrypto -lgmp -ldl -lz -ldevmapper -lm -lrt -lpthread -ludev
libtool: link: x86_64-pc-linux-gnu-gcc -Wall -march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -static -Wl,-O1 -Wl,--sort-common -Wl,-z -Wl,now -o integritysetup.static lib/utils_crypt.o lib/utils_loop.o src/utils_tools.o src/integritysetup.o  -Wl,--as-needed ./.libs/libcryptsetup.a -L/lib64 -largon2 -ljson-c -lpopt -lssl -lcrypto -lgmp -ldl -lz -ldevmapper -lm -lrt -lpthread -ludev -luuid
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libuuid.a(libuuid_la-sha1.o): In function `SHA1':
(.text+0x17b0): multiple definition of `SHA1'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(sha1_one.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds':
(.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds':
(.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1446: veritysetup.static] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds':
(.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds':
(.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libpwquality.a(check.o): In function `pwquality_check':
(.text+0x14cb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x866): undefined reference to `FascistCheck'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1422: cryptsetup-reencrypt.static] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libuuid.a(libuuid_la-sha1.o): In function `SHA1':
(.text+0x17b0): multiple definition of `SHA1'
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(sha1_one.o):(.text+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds':
(.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds':
(.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1436: integritysetup.static] Error 1
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds':
(.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds':
(.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libpwquality.a(check.o): In function `pwquality_check':
(.text+0x14cb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libcrack.a(fascist.o): In function `FascistGecos':
(.text+0x5e8): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[2]: Leaving directory '/var/tmp/portage/sys-fs/cryptsetup-2.0.0/work/cryptsetup-2.0.0'
make[1]: *** [Makefile:2081: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-fs/cryptsetup-2.0.0/work/cryptsetup-2.0.0'
make: *** [Makefile:998: all] Error 2
 * ERROR: sys-fs/cryptsetup-2.0.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-fs/cryptsetup-2.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/cryptsetup-2.0.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/cryptsetup-2.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryptsetup-2.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/cryptsetup-2.0.0/work/cryptsetup-2.0.0'
 * S: '/var/tmp/portage/sys-fs/cryptsetup-2.0.0/work/cryptsetup-2.0.0'

>>> Failed to emerge sys-fs/cryptsetup-2.0.0, Log file:
Comment 1 Conrad Kostecki gentoo-dev 2017-12-15 23:45:11 UTC
Portage 2.3.18 (python 3.6.3-final-0, default/linux/amd64/17.0, gcc-7.2.0, glibc-2.26-r3, 4.14.4-gentoo x86_64)
=================================================================
System uname: Linux-4.14.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_X_990_@_3.47GHz-with-gentoo-2.4.1
KiB Swap:   25690108 total,  25340912 free
Timestamp of repository gentoo: Fri, 15 Dec 2017 21:45:01 +0000
Head commit of repository gentoo: dfcbccc65f6a699548c9b1a672403d298239cdba
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

bl4ckb0x
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -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/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/system/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j13 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="X aalib acl alsa amd64 avahi bcmath berkdb bzip2 cairo caps cddb cdinstall cjk cracklib crypt ctype curl cvs cxx dbus dedicated dga djvu encode exif fbcon ffmpeg fftw flac flite fontconfig ftp gd gif git gmp gnutls gphoto2 gpm graphviz gsm gstreamer iconv icu idn imagemagick imlib inotify introspection ipv6 java javascript jbig jit joystick jpeg jpeg2k lcms ldap libcaca libnotify libsamplerate lm_sensors lzma lzo maildir mbox mhash mikmod mmap mng modplug mp3 mysql mysqli ncurses nls nntp nptl nsplugin offensive ogg openal opencl openexr opengl openmp orc oss pam pcre pdf perl pie png posix postproc postscript pulseaudio python qt4 qt5 raw readline rtmp samba scanner sdl session simplexml slang sndfile sockets sound speex spell sqlite ssl subversion suid svg symlink syslog tcpd theora threads tiff timidity truetype udev unicode upnp usb v4l vaapi vcd vdpau vhosts vim-syntax vnc vorbis wavpack webkit webp wmf x264 xattr xcb xface xml xmlrpc xmp xmpp xpm xscreensaver xv xvid zeroconf zlib zsh-completion" ABI_X86="32 64" COLLECTD_PLUGINS="cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec filecount hddtemp hugepages interface ipc iptables irq java load memory mysql netlink nfs nginx numa openvpn ping postgresql processes protocols rrdcached sensors serial smart swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LINGUAS="de de_DE" LLVM_TARGETS="AMDGPU" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset fancyindex fastcgi geo geoip gunzip gzip headers_more limit_conn proxy realip referer rewrite sticky stub_status upstream_keepalive" NGINX_MODULES_STREAM="access geo geoip limit_conn realip return ssl_preread" PHP_TARGETS="php7-1 php7-2" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon"
Unset:  CC, CPPFLAGS, CTARGET, CXX
Comment 2 Conrad Kostecki gentoo-dev 2017-12-15 23:45:22 UTC
Created attachment 510248 [details]
build.log
Comment 3 Conrad Kostecki gentoo-dev 2017-12-16 20:04:35 UTC
*** Bug 639652 has been marked as a duplicate of this bug. ***
Comment 4 Conrad Kostecki gentoo-dev 2017-12-17 00:13:13 UTC
multiple definition of `SHA1' can be fixed with: https://github.com/karelzak/util-linux/issues/548

It's caused by libuuid from util-linux. When I do apply both patches and recompile util-linux, I am able to compile cryptsetup with USE="static".

But after this, I am hitting a new error.. undefined reference to `FascistCheck'

/(...text/+lib640x20e3/)libudev.a:( util.owarning)::  UsingIn  'functiongetpwnam '` get_user_credsin' :statically
 (linked. textapplications+ 0x20e3requires) :at  warningruntime:  theUsing  shared' getpwnamlibraries'  fromin  thestatically  glibclinked  versionapplications  usedrequires  forat  linkingruntime
 (the. textshared+ 0x2039libraries) :from  warningthe:  glibcUsing  version' getpwuidused'  forin  linkingstatically
 (linked. textapplications+ 0x2039requires) :at  warningruntime:  theUsing  shared' getpwuidlibraries'  fromin  thestatically  glibclinked  versionapplications  usedrequires  forat  linkingruntime
 the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds':
(.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds':
(.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libpwquality.a(check.o): In function `pwquality_check':
(.text+0x14cb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x866): undefined reference to `FascistCheck'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1422: cryptsetup-reencrypt.static] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x12): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_group_creds':
(.text+0x21d3): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x221c): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libudev.a(util.o): In function `get_user_creds':
(.text+0x20e3): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
(.text+0x2039): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib64/libpwquality.a(check.o): In function `pwquality_check':
(.text+0x14cb): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libcrack.a(fascist.o): In function `FascistGecos':
(.text+0x5e8): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make[2]: Leaving directory '/var/tmp/portage/sys-fs/cryptsetup-2.0.0-r1/work/cryptsetup-2.0.0'
make[1]: *** [Makefile:2081: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-fs/cryptsetup-2.0.0-r1/work/cryptsetup-2.0.0'
make: *** [Makefile:998: all] Error 2
Comment 5 Conrad Kostecki gentoo-dev 2017-12-17 00:58:40 UTC
(In reply to Conrad Kostecki from comment #4)
> /usr/lib64/libcrack.a(fascist.o): In function `FascistGecos':

That is caused by USE="libpwquality". I am finally able to compile, when I do disable libpwquality as a USE flag.

But currently, I don't have an idea, why this fails. FascistGecos is, IIRC, linked to cracklib.
Comment 6 Conrad Kostecki gentoo-dev 2017-12-17 11:51:07 UTC
(In reply to Conrad Kostecki from comment #5)
> That is caused by USE="libpwquality". I am finally able to compile, when I
> do disable libpwquality as a USE flag.

Upstream ticket: https://gitlab.com/cryptsetup/cryptsetup/issues/357
They will look into it.

@Mike: Should I open a new ticket for patching util-linux?
Comment 7 Conrad Kostecki gentoo-dev 2017-12-17 14:55:56 UTC
Created attachment 510480 [details, diff]
cryptsetup-static-pwquality.patch

(In reply to Conrad Kostecki from comment #6)
> (In reply to Conrad Kostecki from comment #5)
> > That is caused by USE="libpwquality". I am finally able to compile, when I
> > do disable libpwquality as a USE flag.
> 
> Upstream ticket: https://gitlab.com/cryptsetup/cryptsetup/issues/357
> They will look into it.
> 
> @Mike: Should I open a new ticket for patching util-linux?

This is fixed by upstream now.
-> https://gitlab.com/cryptsetup/cryptsetup/commit/7c9312607c5b0923447175480d696b34f47f0e03

Could we get this patch also into gentoo? That I am able to compile with static and libpwquality.
Comment 8 Larry the Git Cow gentoo-dev 2017-12-17 15:48:40 UTC
The bug has been closed via the following commit(s):

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

commit fd2ec76281f46103082801ea0e485388a798f931
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2017-12-17 15:46:42 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2017-12-17 15:48:31 +0000

    sys-fs/cryptsetup: Fixed build with USE="static".
    
    Closes: https://bugs.gentoo.org/641226
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sys-fs/cryptsetup/cryptsetup-2.0.0-r1.ebuild       |  6 +++--
 .../files/cryptsetup-2.0.0-pwquality_static.patch  | 27 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 0c2433fca87fbcb2c38b69deb3267605de4c5e33
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2017-12-17 15:41:40 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2017-12-17 15:48:28 +0000

    sys-apps/util-linux: Fixed too generic symbols with USE="static".
    
    Bug: https://bugs.gentoo.org/641226
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../util-linux-2.31-too_generic_symbols_pt1.patch  | 207 ++++++++++++
 .../util-linux-2.31-too_generic_symbols_pt2.patch  | 355 +++++++++++++++++++++
 .../util-linux-2.31-too_generic_symbols_pt3.patch  |  43 +++
 sys-apps/util-linux/util-linux-2.31-r1.ebuild      | 206 ++++++++++++
 4 files changed, 811 insertions(+)}