Summary: | app-crypt/tpm-tools-1.3.9 : configure: error: tss lib not found: libtspi.so | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Crypto team [DISABLED] <crypto+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alonbl |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
app-crypt:tpm-tools-1.3.9:20161205-232653.log
config.log emerge-history.txt environment etc.portage.tbz2 emerge-info.txt app-crypt:tpm-tools-1.3.9:20161207-092203.log config.log emerge-history.txt environment etc.portage.tbz2 emerge-info.txt app-crypt:tpm-tools-1.3.9:20161207-154741.log config.log emerge-history.txt environment etc.portage.tbz2 |
Description
Toralf Förster
2016-12-06 08:03:02 UTC
Created attachment 455202 [details]
app-crypt:tpm-tools-1.3.9:20161205-232653.log
Created attachment 455204 [details]
config.log
Created attachment 455206 [details]
emerge-history.txt
Created attachment 455208 [details]
environment
Created attachment 455210 [details]
etc.portage.tbz2
Thanks! Missing libcrypto: --- configure:13990: checking for Tspi_Context_Create in -ltspi configure:14015: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -DNDEBUG -Wl,-O1 -Wl,--as-needed conftest.c -ltspi >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: warning: warning: EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: warning: warning: EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: undefined reference to `RSA_set0_key' collect2: error: ld returned 1 exit status --- I will patch it later. Please test again, I added explicit linkage with crypto everywhere. Now I do get : checking whether to use NLS... yes checking where the gettext function comes from... libc checking Non-standard OpenSSL location... no checking for PEM_read_X509 in -lcrypto... yes checking openssl/evp.h usability... yes checking openssl/evp.h presence... yes checking for openssl/evp.h... yes checking for Tspi_Context_Create in -ltspi... no configure: error: tss lib not found: libtspi.so config.log please Created attachment 455388 [details]
emerge-info.txt
here you go
Created attachment 455390 [details]
app-crypt:tpm-tools-1.3.9:20161207-092203.log
Created attachment 455392 [details]
config.log
Created attachment 455394 [details]
emerge-history.txt
Created attachment 455396 [details]
environment
Created attachment 455398 [details]
etc.portage.tbz2
Not it is ok... --- configure:14070: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -DNDEBUG -Wl,-O1 -Wl,--as-needed conftest.c -ltspi -lcrypto >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: warning: warning: EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: warning: warning: EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: warning: warning: EVP_EncryptFinal is often misused, please use EVP_EncryptFinal_ex and EVP_CIPHER_CTX_cleanup /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: warning: warning: EVP_DecryptFinal is often misused, please use EVP_DecryptFinal_ex and EVP_CIPHER_CTX_cleanup /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libtspi.so: undefined reference to `RSA_set0_key' --- Now problem is probably libressl. Can you please re-emerge app-crypt/trousers then try again? Please also paste output of: $ ldd /usr/lib64/libtspi.so (In reply to Alon Bar-Lev from comment #17) tinderbox@mr-fox ~ $ sc amd64-plasma-libressl-unstable_20161204-160545mr-fox / # ldd /usr/lib64/libtspi.so linux-vdso.so.1 (0x0000035fd8d96000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000035fd86e9000) libcrypto.so.38 => /usr/lib64/libcrypto.so.38 (0x0000035fd830a000) libssl.so.39 => /usr/lib64/libssl.so.39 (0x0000035fd80ae000) libc.so.6 => /lib64/libc.so.6 (0x0000035fd7d15000) /lib64/ld-linux-x86-64.so.2 (0x0000035fd8b75000) libresolv.so.2 => /lib64/libresolv.so.2 (0x0000035fd7afe000) I re-emerged trousers, but still get the error. BTW I do have : mr-fox / # ls -l /usr/portage/app-crypt/tpm-tools/ total 24 drwxr-xr-x 2 root root 4096 Dec 7 00:23 files -rw-r--r-- 1 root root 764 Dec 5 21:23 Manifest -rw-r--r-- 1 root root 515 Aug 23 17:03 metadata.xml -rw-r--r-- 1 root root 1123 Aug 23 17:03 tpm-tools-1.3.8.ebuild -rw-r--r-- 1 root root 1189 Aug 23 17:03 tpm-tools-1.3.8-r1.ebuild -rw-r--r-- 1 root root 1072 Dec 5 21:23 tpm-tools-1.3.9.ebuild SO maybe the repo is out-of-sync ? No, your repo is fine... as I do see the change I've added. Can you please attach the config.log after you re-emerge the trousers and tried again, I would like to confirm that same error remains. Created attachment 455414 [details]
emerge-info.txt
the easiest way for a slacker like me is to add all files
Created attachment 455416 [details]
app-crypt:tpm-tools-1.3.9:20161207-154741.log
Created attachment 455418 [details]
config.log
Created attachment 455420 [details]
emerge-history.txt
Created attachment 455422 [details]
environment
Created attachment 455424 [details]
etc.portage.tbz2
OK, please emerge app-crypt/trousers-0.3.14-r1 There was an issue with libressl, I believe I fixed it. Then try to build tpm-tools again. If it works, I would like you to revert app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch[1] and rebuild, maybe latest change is not required. Thanks! [1] https://raw.githubusercontent.com/gentoo/gentoo/2d3830eedbe2d38207d02c355f7d90feaf0ce25b/app-crypt/tpm-tools/files/tpm-tools-1.3.9-gold.patch (In reply to Alon Bar-Lev from comment #26) with -r1 tpm-tools builds fine, and you're right, -lcrypto is not needed good night Thank you! |