Got it working! After re-compiling trousers with ./configure --prefix=/usr, then recompiling tpm-tools with the warnings as errors off and making sure it pointed at the correct install of trousers, it seemed to work fine. Thanks again all.
Dan -----Original Message----- From: Kent Yoder [mailto:[email protected]] Sent: Thursday, January 26, 2012 10:24 AM To: Mitchell, Daniel F Cc: Dmitri Toubelis; Joshua Phillips; [email protected] Subject: Re: [TrouSerS-users] Issues installing tpm-tools on Ubuntu 11.10 Hi Dan, what may be happening here is that when you rebuild trousers from source it gets installed in /usr/local by default, then when you build tpm-tools it can only find your distro's libtspi.so in /usr/lib. ./configure --prefix=/usr should fix this. Kent On Thu, Jan 26, 2012 at 7:31 AM, Mitchell, Daniel F <[email protected]> wrote: > You guys have been really helpful so far, but can you think of anything else > I might try? I built trousers from the repo and am still getting the same > error when rebuilding tpm-tools. > > Thanks > > -----Original Message----- > From: Dmitri Toubelis [mailto:[email protected]] > Sent: Wednesday, January 25, 2012 11:49 AM > To: Mitchell, Daniel F > Cc: Joshua Phillips; [email protected] > Subject: Re: [TrouSerS-users] Issues installing tpm-tools on Ubuntu 11.10 > > I was building it few month ago, so I do not remember all details. However, > you may need to build trousers from repository before building tpm-tools and > make sure tpm-tools point to correct set of libraries. At that time, > tpm-tools would not build against trousers from tarball and I had to build > trousers from repository as well. > > ----- Original Message ----- >> From: "Daniel F Mitchell" <[email protected]> >> To: "Dmitri Toubelis" <[email protected]> >> Cc: "Joshua Phillips" <[email protected]>, >> [email protected] >> Sent: Wednesday, January 25, 2012 11:19:27 AM >> Subject: RE: [TrouSerS-users] Issues installing tpm-tools on Ubuntu 11.10 >> >> I followed the steps you gave, and I still get the same error with >> undefined reference to >> > > `Trspi_UnloadBlob_NV_DATA_PUBLIC' >> >> Any other ideas? >> >> -----Original Message----- >> From: Dmitri Toubelis [mailto:[email protected]] >> Sent: Wednesday, January 25, 2012 11:00 AM >> To: Mitchell, Daniel F >> Cc: Joshua Phillips; [email protected] >> Subject: Re: [TrouSerS-users] Issues installing tpm-tools on Ubuntu >> 11.10 >> >> Sorry, I cut and paste from the wrong script. Here is the correct one >> but idea is pretty much the same: >> >> git clone >> git://trousers.git.sourceforge.net/gitroot/trousers/tpm-tools >> >> cd tpm-tools >> >> sh bootstrap.sh >> >> # the CFLAGS option is to prevent error with gcc-4.6.x >> env CFLAGS="-Wno-unused-but-set-variable" ./configure >> >> make >> >> >> ----- Original Message ----- >> > From: "Dmitri Toubelis" <[email protected]> >> > To: "Daniel F Mitchell" <[email protected]> >> > Cc: "Joshua Phillips" <[email protected]>, >> > [email protected] >> > Sent: Wednesday, January 25, 2012 10:57:18 AM >> > Subject: Re: [TrouSerS-users] Issues installing tpm-tools on Ubuntu >> > 11.10 >> > >> > I had this problem as well. Apparently, the tar archive from web >> > site >> > is out of sync with repository, so I ended building it directly >> > from >> > repo. Here is the script: >> > >> > git clone >> > git://trousers.git.sourceforge.net/gitroot/trousers/trousers >> > >> > cd trousers >> > >> > sh bootstrap.sh >> > >> > # the CFLAGS option is to prevent error with gcc-4.6.x >> > env CFLAGS="-Wno-unused-but-set-variable" ./configure >> > >> > make >> > >> > >> > >> > ----- Original Message ----- >> > > From: "Daniel F Mitchell" <[email protected]> >> > > To: "Joshua Phillips" <[email protected]> >> > > Cc: [email protected] >> > > Sent: Wednesday, January 25, 2012 10:36:18 AM >> > > Subject: Re: [TrouSerS-users] Issues installing tpm-tools on >> > > Ubuntu >> > > 11.10 >> > > >> > > Thanks for the answer, I got a similar response from another >> > > person >> > > on the list. This does remove the error, but then I get another >> > > error: >> > > >> > > /bin/bash ../../libtool --tag=CC --mode=link gcc -g -O2 -Wall >> > > -Werror -Wreturn-type -Wsign-compare -o tpm_changeownerauth >> > > tpm_changeauth.o ../../lib/libtpm_tspi.la -ltspi >> > > libtool: link: gcc -g -O2 -Wall -Werror -Wreturn-type >> > > -Wsign-compare >> > > -o tpm_changeownerauth tpm_changeauth.o >> > > ../../lib/.libs/libtpm_tspi.a -ldl -ltspi >> > > ../../lib/.libs/libtpm_tspi.a(tpm_tspi.o): In function >> > > `unloadNVDataPublic': >> > > tpm_tspi.c:(.text+0x11b1): undefined reference to >> > > `Trspi_UnloadBlob_NV_DATA_PUBLIC' >> > > tpm_tspi.c:(.text+0x11f4): undefined reference to >> > > `Trspi_UnloadBlob_NV_DATA_PUBLIC' >> > > collect2: ld returned 1 exit status >> > > >> > > This seems like a linker error, does anyone know what I need to >> > > link? >> > > >> > > Thanks again for all the help. >> > > >> > > -----Original Message----- >> > > From: Joshua Phillips [mailto:[email protected]] >> > > Sent: Wednesday, January 25, 2012 10:22 AM >> > > To: Mitchell, Daniel F >> > > Cc: [email protected] >> > > Subject: Re: [TrouSerS-users] Issues installing tpm-tools on >> > > Ubuntu >> > > 11.10 >> > > >> > > On Wed, Jan 25, 2012 at 01:46:23PM +0000, Mitchell, Daniel F >> > > wrote: >> > > > Hello, >> > > > >> > > > I recently tried to install tpm-tools 1.3.7.1 on Ubuntu 11.10. >> > > > However, during make the process fails, giving the error: >> > > > >> > > > tpm_unseal.c: In function 'tpmUnsealFile': >> > > > tpm_unseal.c:91:6: error: variable 'bioRc' set but not used >> > > > >> > > > I created a bug tracker item for this, but I was wondering if >> > > > anyone had experienced similar issues, or maybe had a quick >> > > > resolution? >> > > > >> > > > Thanks, >> > > > Dan >> > > >> > > It looks like you're building with -Werror, which turns warnings >> > > (some >> > > of which can indicate bugs or dangerous pointer manipulations) >> > > into >> > > errors. An unused variable is not inherently harmful, so that >> > > error >> > > should be just a warning. Either: >> > > - add -Wno-error=unused-but-set-variable to CFLAGS to turn it >> > > into >> > > a >> > > warning; or >> > > - remove -Werror from CFLAGS (or append -Wno-error) to continue >> > > compiling despite warnings; or >> > > - use -Wno-unused-but-set-variable to disable that particular >> > > warning >> > > entirely. >> > > >> > > ------------------------------------------------------------------------------ >> > > Keep Your Developer Skills Current with LearnDevNow! >> > > The most comprehensive online learning library for Microsoft >> > > developers >> > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, >> > > CSS3, >> > > MVC3, >> > > Metro Style Apps, more. Free future releases when you subscribe >> > > now! >> > > http://p.sf.net/sfu/learndevnow-d2d >> > > _______________________________________________ >> > > TrouSerS-users mailing list >> > > [email protected] >> > > https://lists.sourceforge.net/lists/listinfo/trousers-users >> > > >> > >> > ------------------------------------------------------------------------------ >> > Keep Your Developer Skills Current with LearnDevNow! >> > The most comprehensive online learning library for Microsoft >> > developers >> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, >> > MVC3, >> > Metro Style Apps, more. Free future releases when you subscribe >> > now! >> > http://p.sf.net/sfu/learndevnow-d2d >> > _______________________________________________ >> > TrouSerS-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/trousers-users >> > >> > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > TrouSerS-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/trousers-users -- IBM LTC Security ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ TrouSerS-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-users
