Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663450 - sys-fs/cryptsetup-2.0.4[pwquality,static]: undefined reference to `FascistCheck'
Summary: sys-fs/cryptsetup-2.0.4[pwquality,static]: undefined reference to `FascistCheck'
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: https://gitlab.com/cryptsetup/cryptse...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-12 15:21 UTC by Conrad Kostecki
Modified: 2021-09-17 16:33 UTC (History)
0 users

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


Attachments
cryptsetup-2.0.4-fix-static-pwquality-build.patch (cryptsetup-2.0.4-fix-static-pwquality-build.patch,427 bytes, patch)
2018-08-12 15:21 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 2018-08-12 15:21:06 UTC
sys-fs/cryptsetup-2.0.4 will fail to build, when it's compiled for static and has enabled pwquality.

I've submited an patch upstream: https://gitlab.com/cryptsetup/cryptsetup/issues/405
Comment 1 Conrad Kostecki gentoo-dev 2018-08-12 15:21:29 UTC
  CCLD     veritysetup.static
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.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.3.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.3.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.3.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:1511: veritysetup.static] Fehler 1
make[2]: Verzeichnis „/usr/portage/distfiles/cryptsetup-2.0.4“ wird verlassen
make[1]: *** [Makefile:2218: all-recursive] Fehler 1
make[1]: Verzeichnis „/usr/portage/distfiles/cryptsetup-2.0.4“ wird verlassen
make: *** [Makefile:1040: all] Fehler 2
Comment 2 Conrad Kostecki gentoo-dev 2018-08-12 15:21:54 UTC
Created attachment 543210 [details, diff]
cryptsetup-2.0.4-fix-static-pwquality-build.patch
Comment 3 Larry the Git Cow gentoo-dev 2018-08-13 06:42:49 UTC
The bug has been closed via the following commit(s):

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

commit c9a0919b1961fa26f838d2fb69fb21247f5201f3
Author:     Conrad Kostecki <conrad@kostecki.com>
AuthorDate: 2018-08-12 15:33:56 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-08-13 06:42:33 +0000

    sys-fs/cryptsetup: fix static pwquality build
    
    Closes: https://bugs.gentoo.org/663450
    Package-Manager: Portage-2.3.45, Repoman-2.3.10
    Closes: https://github.com/gentoo/gentoo/pull/9547

 sys-fs/cryptsetup/cryptsetup-2.0.4-r1.ebuild       | 130 +++++++++++++++++++++
 ...yptsetup-2.0.4-fix-static-pwquality-build.patch |  18 +++
 2 files changed, 148 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2021-09-17 16:33:18 UTC
The bug has been referenced in the following commit(s):

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

commit 62749b5a354d9db4f35cde93eea67cd912739e7d
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-17 16:31:17 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-17 16:33:15 +0000

    sys-fs/cryptsetup: stop applying cryptsetup-2.0.4-fix-static-pwquality-build.patch
    
    According to upstream, this should not be needed in recent versions.
    
    https://gitlab.com/cryptsetup/cryptsetup/-/issues/405#note_105306216
    
    Bug: https://bugs.gentoo.org/663450
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-fs/cryptsetup/cryptsetup-2.4.1-r1.ebuild | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)