|
From: Cihula, J. <jos...@in...> - 2010-07-27 02:31:22
|
I applied the fix for lcptools.c (with a small change to cast to size_t).
The change for lcptools/Makefile, however cause my system to fail to detect that trousers is not installed and thus causes a bunch of compilation errors. Please give more information as to how/why the current version of the Makefile is failing for you.
Joe
> -----Original Message-----
> From: Frédéric Guihéry [mailto:sy...@ca...]
> Sent: Monday, July 26, 2010 2:02 PM
> To: tbo...@li...
> Subject: Re: [tboot-devel] [PATCH] fix build errors
>
> With the attached file, it should be better.
>
> Le 26/07/2010 22:54, Frédéric Guihéry a écrit :
> > Hi,
> >
> > Here is a tiny patch that fixes some issues I met building tboot.
> >
> > Kind regards,
> > Frederic Guihery
> >
> > Signed-off-by: Frederic Guihery<sy...@ca...>
> >
> >
> > diff -r 57ea1beb3bc8 lcptools/Makefile
> > --- a/lcptools/Makefile Thu Jul 22 22:19:08 2010 -0700
> > +++ b/lcptools/Makefile Mon Jul 26 22:33:28 2010 +0200
> > @@ -75,7 +75,7 @@
> > #
> >
> > trousers_dep:
> > - @echo -e "#include<trousers/tss.h>" | $(CC) -x c $(CFLAGS)
> > $(LDFLAGS) $(LIBS) - -Wl,--defsym=main=0 -o $@>/dev/null 2>&1 || (echo
> > trousers-devel package is not installed&& false)
> > + @echo -e "#include<trousers/tss.h>" | $(CC) -x c $(CFLAGS)
> > $(LDFLAGS) $(LIBS) -Wl,--defsym=main=0 -o $@>/dev/null 2>&1 || (echo
> > trousers-devel package is not installed&& false)
> >
> > #
> > # dependencies
> > diff -r 57ea1beb3bc8 lcptools/lcptools.c
> > --- a/lcptools/lcptools.c Thu Jul 22 22:19:08 2010 -0700
> > +++ b/lcptools/lcptools.c Mon Jul 26 22:33:28 2010 +0200
> > @@ -736,7 +736,7 @@
> > pcr_length = select + sizeof(select)
> > + sizeof(TPM_LOCALITY_SELECTION) +
> > SHA1_HASH_LEN;
> > /* check whether the data input is long enough */
> > - if ( (pcr_length + (pread_data - src.listdata) -2)
> > + if ( (pcr_length + (uint32_t)(pread_data -
> > src.listdata) - 2)
> > > src.listdata_length ) {
> > log_error("the policy list data is not correct\n");
> > result = LCP_E_COMD_INTERNAL_ERR;
> >
|