gnupg make failure
- by zhoucengchao
I got errors as below when tried to make gnupg 2.0.19
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compress.o: In function `init_uncompress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:147: undefined reference to `inflateInit_'
compress.o: In function `do_uncompress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:196: undefined reference to `inflate'
compress.o: In function `init_compress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:82: undefined reference to `deflateInit_'
compress.o: In function `init_uncompress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:147: undefined reference to `inflateInit2_'
compress.o: In function `init_compress':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:82: undefined reference to `deflateInit2_'
compress.o: In function `compress_filter':
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:264: undefined reference to `inflateEnd'
/home/steve/Desktop/gnupg-2.0.19/g10/compress.c:273: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [gpg2] Error 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It looks like ld cannot find object file which owns the reference above. My question is: How to determine which file I was missing? How to resolve this issue?
Many thanks in advance!