Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406331 - app-crypt/gnupg USE=static should depend on dev-libs/pth[static-libs] and sys-libs/zlib[static-libs]
Summary: app-crypt/gnupg USE=static should depend on dev-libs/pth[static-libs] and sys...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-29 17:26 UTC by Alessandro Di Federico
Modified: 2012-04-04 23:42 UTC (History)
0 users

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


Attachments
USE="static" emerge gnupg (file_406331.txt,18.02 KB, text/plain)
2012-02-29 17:26 UTC, Alessandro Di Federico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Di Federico 2012-02-29 17:26:13 UTC
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]
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2012-03-05 04:24:29 UTC
Independently confirmed, I had the same error and solved it in the same manner.

Thanks,
ZC
Comment 2 Tim Harder gentoo-dev 2012-03-05 04:32:38 UTC
Fixed in gnupg-2.0.18 in CVS.
Comment 3 Alessandro Di Federico 2012-04-04 20:14:42 UTC
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'
Comment 4 Tim Harder gentoo-dev 2012-04-04 23:42:58 UTC
(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.