All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Matthew Fioravante <matthew.fioravante@jhuapl.edu>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH VTPM v8 0/8] Vtpm patch set
Date: Thu, 10 Jan 2013 15:36:59 +0000	[thread overview]
Message-ID: <50EEE01B.50204@citrix.com> (raw)
In-Reply-To: <1357831800.9456.42.camel@zakaz.uk.xensource.com>

On 10/01/13 15:30, Ian Campbell wrote:
> On Thu, 2013-01-03 at 15:37 +0000, Matthew Fioravante wrote:
>> The following are the final set of patches for vtpm in xen.
>> They are derived from the previous v7 and Ian's xen
>> vtpm respository with the various minor bug fixes we
>> have discussed and fixed along the way. The bug fixes
>> are baked into their respective patches.
> Thanks.
>
> Unfortunately I'm afraid this fails to build for me when cmake is
> installed. I get:
>
> ld -nostdlib -L/local/scratch/ianc/devel/committer.git/stubdom/cross-root-x86_64/x86_64-xen-elf/lib  -m elf_x86_64 -T arch/x86/minios-x86_64.lds \
> 	/local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os.o  \
> 	-o /local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os
> ld: warning: section `.bss' type changed to PROGBITS
> /local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os.o: In function `mkdirs':
> tpm_emulator_extern.c:(.text+0xbd95): undefined reference to `__errno_location'
> tpm_emulator_extern.c:(.text+0xbdad): undefined reference to `__errno_location'
> /local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os.o: In function `_tpm_extern_init':
> tpm_emulator_extern.c:(.text+0xbe7f): undefined reference to `open'
> tpm_emulator_extern.c:(.text+0xbe9b): undefined reference to `__errno_location'
> /local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os.o: In function `_tpm_write_to_storage':
> tpm_emulator_extern.c:(.text+0xc1e9): undefined reference to `open'
> /local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os.o: In function `_tpm_read_from_storage':
> tpm_emulator_extern.c:(.text+0xc27b): undefined reference to `open'
> tpm_emulator_extern.c:(.text+0xc2a2): undefined reference to `lseek'
> tpm_emulator_extern.c:(.text+0xc2ba): undefined reference to `lseek'
> make[2]: *** [/local/scratch/ianc/devel/committer.git/stubdom/mini-os-x86_64-vtpm/mini-os] Error 1
> make[2]: Leaving directory `/local/scratch/ianc/devel/committer.git/extras/mini-os'
>
> lseek and open are defined in extras/mini-os/lib/sys.c but:
> $ nm stubdom/mini-os-x86_64-vtpm/lib/sys.o | egrep T.\(open\|lseek\)
> 0000000000002456 T lseek64
> 0000000000002a4e T open64
>
> Perhaps some sort of -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE mismatch
> between the libc and the app libraries?
>
> Not sure about the __errno_location one other than:
>
> $ grep -B2 __errno_location stubdom/caml/main-caml.c
> /* Ugly binary compatibility with Linux */
> FILE *_stderr asm("stderr");
> int *__errno_location;

__errno_location is what the lvalue "errno" expands to under GCC 
headers.  See /usr/include/bits/errno.h

Not that I can help with the actual build failure

~Andrew

>
> Everything else seems to build ok. so without cmake installed it works
> fine.
>
>> Matthew Fioravante (8):
>>    add vtpm-stubdom code
>>    add stubdom/vtpmmgr code
>>    vtpm/vtpmmgr and required libs to stubdom/Makefile
>>    Add vtpm documentation
>>    README: Add cmake dependency
>>    stubdom: Add autoconf
>>    Add a top level configure script
>>    Add conditional build of subsystems to configure.ac
> Ian.
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  parent reply	other threads:[~2013-01-10 15:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-03 15:37 [PATCH VTPM v8 0/8] Vtpm patch set Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 1/8] add vtpm-stubdom code Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 2/8] add stubdom/vtpmmgr code Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 3/8] vtpm/vtpmmgr and required libs to stubdom/Makefile Matthew Fioravante
2013-01-03 15:58   ` Ian Campbell
2013-01-03 16:00     ` Matthew Fioravante
2013-01-03 16:06       ` Ian Campbell
2013-01-03 15:37 ` [PATCH VTPM v8 4/8] Add vtpm documentation Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 5/8] README: Add cmake dependency Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 6/8] stubdom: Add autoconf Matthew Fioravante
2013-01-10 15:35   ` Ian Campbell
2013-01-10 15:38     ` Matthew Fioravante
2013-01-10 16:28       ` Ian Campbell
2013-01-10 16:29         ` Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 7/8] Add a top level configure script Matthew Fioravante
2013-01-03 15:37 ` [PATCH VTPM v8 8/8] Add conditional build of subsystems to configure.ac Matthew Fioravante
2013-01-10 15:30 ` [PATCH VTPM v8 0/8] Vtpm patch set Ian Campbell
2013-01-10 15:31   ` Fioravante, Matthew E.
2013-01-10 15:35     ` Ian Campbell
2013-01-10 17:06       ` Matthew Fioravante
2013-01-10 17:55         ` Ian Campbell
2013-01-10 15:36   ` Andrew Cooper [this message]
2013-01-10 22:01   ` Matthew Fioravante
2013-01-10 22:08     ` Matthew Fioravante
2013-01-11  9:52     ` Ian Campbell
     [not found]       ` <068F06DC4D106941B297C0C5F9F446EA48D35E3126@aplesstripe.dom1.jhuapl.edu>
     [not found]         ` <1357921187.20328.139.camel@zakaz.uk.xensource.com>
2013-01-11 16:21           ` Ian Campbell
2013-01-11 16:32             ` Fioravante, Matthew E.
     [not found]             ` <068F06DC4D106941B297C0C5F9F446EA48D35E3151@aplesstripe.dom1.jhuapl.edu>
2013-01-11 16:33               ` Ian Campbell
2013-01-11 16:36                 ` Fioravante, Matthew E.
2013-01-11 16:58                   ` Ian Campbell
2013-01-11 17:00                     ` Fioravante, Matthew E.
2013-01-11 17:08                       ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50EEE01B.50204@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=matthew.fioravante@jhuapl.edu \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.