| Summary: | app-crypt/gnupg USE=static should depend on dev-libs/pth[static-libs] and sys-libs/zlib[static-libs] | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alessandro Di Federico <ale> |
| Component: | New packages | Assignee: | Crypto team [DISABLED] <crypto+disabled> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | USE="static" emerge gnupg | ||
Independently confirmed, I had the same error and solved it in the same manner. Thanks, ZC Fixed in gnupg-2.0.18 in CVS. We also need sys-libs/zlib[static-libs]. USE="static" emerge =app-crypt/gnupg-2.0.17-r3 x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -mno-avx -Wall -Wno-pointer-sign -Wpointer-arith -Wl,-O1 -Wl,--as-needed -static -o t-rmd160 t-rmd160.o rmd160.o ../jnlib/libjnlib.a(stringhelp.o): In function `get_pwdir': stringhelp.c:(.text+0x2fc): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking stringhelp.c:(.text+0x330): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking compress.o: In function `do_compress.clone.0': compress.c:(.text+0x5e): undefined reference to `deflate' compress.o: In function `compress_filter': compress.c:(.text+0x1e3): undefined reference to `inflateInit_' compress.c:(.text+0x249): undefined reference to `inflate' compress.c:(.text+0x3bb): undefined reference to `deflateInit_' compress.c:(.text+0x53b): undefined reference to `inflateInit2_' compress.c:(.text+0x56f): undefined reference to `deflateInit2_' compress.c:(.text+0x57c): undefined reference to `inflateEnd' compress.c:(.text+0x5d1): undefined reference to `deflateEnd' collect2: ld returned 1 exit status make[2]: *** [gpgv2] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/keyedit.Tpo .deps/keyedit.Po mv -f .deps/card-util.Tpo .deps/card-util.Po mv -f .deps/keygen.Tpo .deps/keygen.Po make[2]: Leaving directory `/var/tmp/portage/app-crypt/gnupg-2.0.17/work/gnupg-2.0.17/g10' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-crypt/gnupg-2.0.17/work/gnupg-2.0.17' make: *** [all] Error 2 emake failed * ERROR: app-crypt/gnupg-2.0.17 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2227: Called die * The specific snippet of code: * emake || die "emake failed"; * * If you need support, post the output of 'emerge --info =app-crypt/gnupg-2.0.17', * the complete build log and the output of 'emerge -pqv =app-crypt/gnupg-2.0.17'. * The complete build log is located at '/var/tmp/portage/app-crypt/gnupg-2.0.17/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-crypt/gnupg-2.0.17/temp/environment'. * S: '/var/tmp/portage/app-crypt/gnupg-2.0.17/work/gnupg-2.0.17' (In reply to comment #3) > We also need sys-libs/zlib[static-libs]. Note that comment #2 said gnupg-2.0.18 so it's already fixed in >=gnupg-2.0.18. |
Created attachment 303751 [details] USE="static" emerge gnupg When you try to build gnupg with the static useflag it fails with the attached message. Emerging dev-libs/pth with the static-libs use flag, seems to solve. Hope it helps. Steps to reproduce: 1. USE="static" emerge gnupg [FAIL] 2. USE="static-libs" emerge pth 3. USE="static" emerge gnupg [WORKS]