Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601776 - app-crypt/tpm-tools-1.3.9 : configure: error: tss lib not found: libtspi.so
Summary: app-crypt/tpm-tools-1.3.9 : configure: error: tss lib not found: libtspi.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-06 08:03 UTC by Toralf Förster
Modified: 2016-12-07 21:28 UTC (History)
1 user (show)

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


Attachments
app-crypt:tpm-tools-1.3.9:20161205-232653.log (app-crypt:tpm-tools-1.3.9:20161205-232653.log,8.05 KB, text/plain)
2016-12-06 08:03 UTC, Toralf Förster
Details
config.log (config.log,31.42 KB, text/plain)
2016-12-06 08:03 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,70.21 KB, text/plain)
2016-12-06 08:03 UTC, Toralf Förster
Details
environment (environment,112.73 KB, text/plain)
2016-12-06 08:03 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.50 KB, application/x-bzip2)
2016-12-06 08:03 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,6.58 KB, text/plain)
2016-12-07 12:48 UTC, Toralf Förster
Details
app-crypt:tpm-tools-1.3.9:20161207-092203.log (app-crypt:tpm-tools-1.3.9:20161207-092203.log,8.21 KB, text/plain)
2016-12-07 12:48 UTC, Toralf Förster
Details
config.log (config.log,32.53 KB, text/plain)
2016-12-07 12:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,137.55 KB, text/plain)
2016-12-07 12:48 UTC, Toralf Förster
Details
environment (environment,112.95 KB, text/plain)
2016-12-07 12:48 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.70 KB, application/x-bzip2)
2016-12-07 12:48 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,6.58 KB, text/plain)
2016-12-07 15:48 UTC, Toralf Förster
Details
app-crypt:tpm-tools-1.3.9:20161207-154741.log (app-crypt:tpm-tools-1.3.9:20161207-154741.log,8.21 KB, text/plain)
2016-12-07 15:48 UTC, Toralf Förster
Details
config.log (config.log,32.53 KB, text/plain)
2016-12-07 15:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,146.76 KB, text/plain)
2016-12-07 15:49 UTC, Toralf Förster
Details
environment (environment,113.00 KB, text/plain)
2016-12-07 15:49 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.74 KB, application/x-bzip2)
2016-12-07 15:49 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-12-06 08:03:02 UTC
checking Non-standard OpenSSL location... no
checking for Tspi_Context_Create in -ltspi... no
configure: error: tss lib not found: libtspi.so

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-crypt/tpm-tools-1.3.9/work/config.log


$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-plasma-libressl-unstable_20161204-160545) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------
  USE flags in make.conf:
USE="  -openssl -gnutls libressl pax_kernel xtpax -cdinstall -oci8 -bindist ssp alsa avcodec cdb dbus drmkms gnomecanvas gtk2 kvm mysql mysqli ogg pcre16 plotutils png -pulseaudio python -rendering smartcard -snmp sqlite tcl tls vlc vpx -wav zenmap ziffy -qt4 -qt5 -consolekit"
  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:
3.9.0

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)

java-config:

  -----------------------------------------------------------------

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.8.11-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.11-hardened-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.3
KiB Mem:    65285560 total,   1156468 free
KiB Swap:   67108860 total,  67088556 free
Timestamp of repository gentoo: Mon, 05 Dec 2016 23:05:04 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.4_p5-r1::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: 1

tinderbox
    location: /tmp/tb/data/portage
    masters: gentoo
    priority: 2

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --verbose-conflicts --color=n --nospinner --tree --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox parallel-fetch preserve-libs protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avcodec berkdb bluetooth branding bzip2 cairo cdb cdda cdr cli cracklib crypt cups cxx dbus declarative dri drmkms dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gnomecanvas gpm gtk gtk2 iconv ipv6 jpeg kde kipi kvm lcms ldap libnotify libressl mad mmx mmxext mng modules mp3 mp4 mpeg multilib mysql mysqli ncurses nls nptl ogg opengl openmp pam pango pax_kernel pcre pcre16 pdf phonon plasma plotutils png policykit ppds python qml qt3support readline sdl seccomp semantic-desktop session smartcard spell sqlite sse sse2 ssl ssp startup-notification svg tcl tcpd tiff tls truetype udev udisks unicode upower usb vlc vorbis vpx widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xtpax xv xvid zenmap ziffy zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="as bo ky sa si sid ug" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2016-12-06 08:03:05 UTC
Created attachment 455202 [details]
app-crypt:tpm-tools-1.3.9:20161205-232653.log
Comment 2 Toralf Förster gentoo-dev 2016-12-06 08:03:07 UTC
Created attachment 455204 [details]
config.log
Comment 3 Toralf Förster gentoo-dev 2016-12-06 08:03:10 UTC
Created attachment 455206 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2016-12-06 08:03:13 UTC
Created attachment 455208 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2016-12-06 08:03:16 UTC
Created attachment 455210 [details]
etc.portage.tbz2
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-06 08:08:44 UTC
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.
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-06 19:47:34 UTC
Please test again, I added explicit linkage with crypto everywhere.
Comment 8 Toralf Förster gentoo-dev 2016-12-07 09:26:14 UTC
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
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-07 10:06:23 UTC
config.log please
Comment 10 Toralf Förster gentoo-dev 2016-12-07 12:48:27 UTC
Created attachment 455388 [details]
emerge-info.txt

here you go
Comment 11 Toralf Förster gentoo-dev 2016-12-07 12:48:32 UTC
Created attachment 455390 [details]
app-crypt:tpm-tools-1.3.9:20161207-092203.log
Comment 12 Toralf Förster gentoo-dev 2016-12-07 12:48:35 UTC
Created attachment 455392 [details]
config.log
Comment 13 Toralf Förster gentoo-dev 2016-12-07 12:48:38 UTC
Created attachment 455394 [details]
emerge-history.txt
Comment 14 Toralf Förster gentoo-dev 2016-12-07 12:48:41 UTC
Created attachment 455396 [details]
environment
Comment 15 Toralf Förster gentoo-dev 2016-12-07 12:48:44 UTC
Created attachment 455398 [details]
etc.portage.tbz2
Comment 16 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-07 13:25:30 UTC
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?
Comment 17 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-07 13:27:48 UTC
Please also paste output of:
$ ldd /usr/lib64/libtspi.so
Comment 18 Toralf Förster gentoo-dev 2016-12-07 13:54:37 UTC
(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 ?
Comment 19 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-07 15:35:38 UTC
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.
Comment 20 Toralf Förster gentoo-dev 2016-12-07 15:48:53 UTC
Created attachment 455414 [details]
emerge-info.txt

the easiest way for a slacker like me is to add all files
Comment 21 Toralf Förster gentoo-dev 2016-12-07 15:48:59 UTC
Created attachment 455416 [details]
app-crypt:tpm-tools-1.3.9:20161207-154741.log
Comment 22 Toralf Förster gentoo-dev 2016-12-07 15:49:02 UTC
Created attachment 455418 [details]
config.log
Comment 23 Toralf Förster gentoo-dev 2016-12-07 15:49:05 UTC
Created attachment 455420 [details]
emerge-history.txt
Comment 24 Toralf Förster gentoo-dev 2016-12-07 15:49:08 UTC
Created attachment 455422 [details]
environment
Comment 25 Toralf Förster gentoo-dev 2016-12-07 15:49:11 UTC
Created attachment 455424 [details]
etc.portage.tbz2
Comment 26 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-07 16:37:49 UTC
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
Comment 27 Toralf Förster gentoo-dev 2016-12-07 21:12:03 UTC
(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
Comment 28 Alon Bar-Lev (RETIRED) gentoo-dev 2016-12-07 21:28:00 UTC
Thank you!