{"action":"created","issue":{"url":"https://api.github.com/repos/01org/tpm2.0-tools/issues/13","labels_url":"https://api.github.com/repos/01org/tpm2.0-tools/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/01org/tpm2.0-tools/issues/13/comments","events_url":"https://api.github.com/repos/01org/tpm2.0-tools/issues/13/events","html_url":"https://github.com/01org/tpm2.0-tools/issues/13","id":124805374,"number":13,"title":"reference installed headers from sysapi / tcti","user":{"login":"flihp","id":1550813,"avatar_url":"https://avatars.githubusercontent.com/u/1550813?v=3","gravatar_id":"","url":"https://api.github.com/users/flihp","html_url":"https://github.com/flihp","followers_url":"https://api.github.com/users/flihp/followers","following_url":"https://api.github.com/users/flihp/following{/other_user}","gists_url":"https://api.github.com/users/flihp/gists{/gist_id}","starred_url":"https://api.github.com/users/flihp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flihp/subscriptions","organizations_url":"https://api.github.com/users/flihp/orgs","repos_url":"https://api.github.com/users/flihp/repos","events_url":"https://api.github.com/users/flihp/events{/privacy}","received_events_url":"https://api.github.com/users/flihp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/01org/tpm2.0-tools/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"flihp","id":1550813,"avatar_url":"https://avatars.githubusercontent.com/u/1550813?v=3","gravatar_id":"","url":"https://api.github.com/users/flihp","html_url":"https://github.com/flihp","followers_url":"https://api.github.com/users/flihp/followers","following_url":"https://api.github.com/users/flihp/following{/other_user}","gists_url":"https://api.github.com/users/flihp/gists{/gist_id}","starred_url":"https://api.github.com/users/flihp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flihp/subscriptions","organizations_url":"https://api.github.com/users/flihp/orgs","repos_url":"https://api.github.com/users/flihp/repos","events_url":"https://api.github.com/users/flihp/events{/privacy}","received_events_url":"https://api.github.com/users/flihp/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/01org/tpm2.0-tools/milestones/1","html_url":"https://github.com/01org/tpm2.0-tools/milestones/packaging","labels_url":"https://api.github.com/repos/01org/tpm2.0-tools/milestones/1/labels","id":1409690,"number":1,"title":"packaging","description":null,"creator":{"login":"flihp","id":1550813,"avatar_url":"https://avatars.githubusercontent.com/u/1550813?v=3","gravatar_id":"","url":"https://api.github.com/users/flihp","html_url":"https://github.com/flihp","followers_url":"https://api.github.com/users/flihp/followers","following_url":"https://api.github.com/users/flihp/following{/other_user}","gists_url":"https://api.github.com/users/flihp/gists{/gist_id}","starred_url":"https://api.github.com/users/flihp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flihp/subscriptions","organizations_url":"https://api.github.com/users/flihp/orgs","repos_url":"https://api.github.com/users/flihp/repos","events_url":"https://api.github.com/users/flihp/events{/privacy}","received_events_url":"https://api.github.com/users/flihp/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2015-11-13T02:40:36Z","updated_at":"2016-01-04T17:47:08Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-04T17:47:08Z","updated_at":"2016-01-04T19:52:53Z","closed_at":null,"body":"In reviewing [PR #92](https://github.com/01org/TPM2.0-TSS/pull/92) from @theopolis in the TPM2.0-TSS repo I was surprised that this issue didn't surface when we starting linking against libtpm2sapi / libtpm2tcti. Turns out the tpm2.0-tools build pulls headers directly from the TPM2.0-TSS tree that it checks out by putting them on the search path for gcc. So basically we're building against headers and linking against libraries from different locations. This is a disaster waiting to happen :(\r\n\r\nI don't know that there's an easy fix here. Every one of the TPM tools builds and links against code from the 'common' and 'test' directories from the TSS repo. This means simply changing the gcc search path won't solve the problem. This will likely require coordinated work across the repos including some cleanup of my past mistakes in the TPM2.0-TSS build / include approach.\r\n\r\nMore issues to come in this cleanup in both repos."},"comment":{"url":"https://api.github.com/repos/01org/tpm2.0-tools/issues/comments/168785464","html_url":"https://github.com/01org/tpm2.0-tools/issues/13#issuecomment-168785464","issue_url":"https://api.github.com/repos/01org/tpm2.0-tools/issues/13","id":168785464,"user":{"login":"flihp","id":1550813,"avatar_url":"https://avatars.githubusercontent.com/u/1550813?v=3","gravatar_id":"","url":"https://api.github.com/users/flihp","html_url":"https://github.com/flihp","followers_url":"https://api.github.com/users/flihp/followers","following_url":"https://api.github.com/users/flihp/following{/other_user}","gists_url":"https://api.github.com/users/flihp/gists{/gist_id}","starred_url":"https://api.github.com/users/flihp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flihp/subscriptions","organizations_url":"https://api.github.com/users/flihp/orgs","repos_url":"https://api.github.com/users/flihp/repos","events_url":"https://api.github.com/users/flihp/events{/privacy}","received_events_url":"https://api.github.com/users/flihp/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T19:52:53Z","updated_at":"2016-01-04T19:52:53Z","body":"My brain went to IRC channel immediately after my last comment. See #tpm2.0-tss on freenode. I'm camping there currently."}}