Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395669 - app-crypt/gnupg-2.0.18 USE=static - /usr/lib64/libreadline.a(complete.o): In function `rl_username_completion_function': (.text+0x36c9): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries [...]
Summary: app-crypt/gnupg-2.0.18 USE=static - /usr/lib64/libreadline.a(complete.o): In ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 10:47 UTC by parafin
Modified: 2012-03-05 04:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description parafin 2011-12-22 10:47:39 UTC
I get following error on my ~amd64 system when building gnupg with USE="bzip2 nls readline static usb -adns -doc -ldap (-selinux) -smartcard":

x86_64-pc-linux-gnu-gcc    -march=native -O2 -pipe -Wall -Wno-pointer-sign -Wpointer-arith  -Wl,-O1 -Wl,--as-needed -static -o gpg2 gpg.o server.o build-packet.o compress.o  free-packet.o getkey.o keydb.o keyring.o seskey.o kbnode.o mainproc.o armor.o mdfilter.o textfilter.o progress.o misc.o rmd160.o openfile.o keyid.o parse-packet.o cpr.o plaintext.o sig-check.o keylist.o pkglue.o pkclist.o skclist.o pubkey-enc.o passphrase.o seckey-cert.o encr-data.o cipher.o encode.o sign.o verify.o revoke.o decrypt.o keyedit.o dearmor.o import.o export.o trustdb.o tdbdump.o tdbio.o delkey.o keygen.o helptext.o keyserver.o photoid.o call-agent.o card-util.o exec.o ../common/libcommon.a ../jnlib/libjnlib.a ../gl/libgnu.a  ../common/libgpgrl.a  -lresolv  -lreadline -lcurses    -lgcrypt -lgpg-error -lassuan -L/usr/lib64 -lgpg-error -lgpg-error  
/usr/lib64/libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x36c9): warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../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
/usr/lib64/libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x36c0): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libreadline.a(complete.o): In function `rl_username_completion_function':
(.text+0x376b): warning: Using 'endpwent' 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]: *** [gpg2] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-crypt/gnupg-2.0.18/work/gnupg-2.0.18/g10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-crypt/gnupg-2.0.18/work/gnupg-2.0.18'
make: *** [all] Error 2

When static USE flag is switched off, build succeeds.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2012-03-05 04:23:53 UTC
per direction from radhermit I tested with zlib[static-libs] and it fixes the error.

please add the use flag dep when USE=static emerge gnupg

-ZC
Comment 2 Tim Harder gentoo-dev 2012-03-05 04:32:25 UTC
Fixed in gnupg-2.0.18 in CVS.