All of lore.kernel.org
 help / color / mirror / Atom feed
* Building Xen 4.2.1 with vTPM on NetBSD 6.0.1
@ 2013-02-09 12:38 tech mailinglists
  2013-02-18 17:17 ` Fioravante, Matthew E.
  0 siblings, 1 reply; 2+ messages in thread
From: tech mailinglists @ 2013-02-09 12:38 UTC (permalink / raw)
  To: port-xen, xen-users, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2240 bytes --]

Hello all,

I try to build Xen 4.2.1 on NetBSD 6.0.1 with vTPM. I would say that
dependencies are missing but I don't know it.

I have done the following:

I installed the building dependencies from pkgsrc

Run configure as follows:

./configure PYTHON=/usr/pkg/bin/python2.7
APPEND_INCLUDES=/usr/pkg/include APPEND_LIB=/usr/pkg/lib
--prefix=/usr/xen42 --enable-vtpm

Builded Xen itself successfully.

Run gmake for the tools target as follows:

gmake LD_LIBRARY_PATH=/usr/pkg/lib tools

This fails with the following error:

gmake[5]: Entering directory `/root/xen-4.2.1/tools/vtpm_manager/manager'
gcc  -Werror -g3 -D_GNU_SOURCE
-DLOGGING_MODULES="(BITMASK(VTPM_LOG_TCS)|BITMASK(VTPM_LOG_VTSP)|BITMASK(VTPM_LOG_VTPM))"
-I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/crypto
-I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/util
-I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/tcs
-I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/manager
-pthread  -c -o vtpmd.o vtpmd.c  -I/usr/pkg/include
cc1: warnings being treated as errors
vtpmd.c: In function 'signal_handler':
vtpmd.c:96:3: error: passing argument 2 of '__libc_thr_equal' makes
pointer from integer without a cast
/usr/include/pthread.h:368:5: note: expected 'pthread_t' but argument
is of type '__pid_t'
vtpmd.c: In function 'main':
vtpmd.c:343:28: error: assignment makes integer from pointer without a cast
gmake[5]: *** [vtpmd.o] Error 1
gmake[5]: Leaving directory `/root/xen-4.2.1/tools/vtpm_manager/manager'
gmake[4]: *** [subdir-install-manager] Error 2
gmake[4]: Leaving directory `/root/xen-4.2.1/tools/vtpm_manager'
gmake[3]: *** [subdirs-install] Error 2
gmake[3]: Leaving directory `/root/xen-4.2.1/tools/vtpm_manager'
gmake[2]: *** [subdir-install-vtpm_manager] Error 2
gmake[2]: Leaving directory `/root/xen-4.2.1/tools'
gmake[1]: *** [subdirs-install] Error 2
gmake[1]: Leaving directory `/root/xen-4.2.1/tools'
gmake: *** [install-tools] Error 2

So I know that already one dependency is missing I think it's libgmp
but I found no way to build it on NetBSD.

Is vTPM buildable on NetBSD and what does this error/warning which was
treated as error mean?

Best Regards

[-- Attachment #1.2: Type: text/html, Size: 2643 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Building Xen 4.2.1 with vTPM on NetBSD 6.0.1
  2013-02-09 12:38 Building Xen 4.2.1 with vTPM on NetBSD 6.0.1 tech mailinglists
@ 2013-02-18 17:17 ` Fioravante, Matthew E.
  0 siblings, 0 replies; 2+ messages in thread
From: Fioravante, Matthew E. @ 2013-02-18 17:17 UTC (permalink / raw)
  To: tech mailinglists, port-xen, xen-users, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2798 bytes --]

I've never tried to use vtpm on netbsd so I cannot say whether it will work or not.

This is the old vtpm system which is now deprecated. Even if you can build it I wouldn't recommend using it.

From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of tech mailinglists
Sent: Saturday, February 09, 2013 7:39 AM
To: port-xen@netbsd.org; xen-users; xen-devel@lists.xen.org
Subject: [Xen-devel] Building Xen 4.2.1 with vTPM on NetBSD 6.0.1


Hello all,

I try to build Xen 4.2.1 on NetBSD 6.0.1 with vTPM. I would say that dependencies are missing but I don't know it.
I have done the following:
I installed the building dependencies from pkgsrc
Run configure as follows:

./configure PYTHON=/usr/pkg/bin/python2.7 APPEND_INCLUDES=/usr/pkg/include APPEND_LIB=/usr/pkg/lib --prefix=/usr/xen42 --enable-vtpm




Builded Xen itself successfully.

Run gmake for the tools target as follows:

gmake LD_LIBRARY_PATH=/usr/pkg/lib tools

This fails with the following error:

gmake[5]: Entering directory `/root/xen-4.2.1/tools/vtpm_manager/manager'
gcc  -Werror -g3 -D_GNU_SOURCE -DLOGGING_MODULES="(BITMASK(VTPM_LOG_TCS)|BITMASK(VTPM_LOG_VTSP)|BITMASK(VTPM_LOG_VTPM))" -I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/crypto -I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/util -I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/tcs -I/root/xen-4.2.1/tools/vtpm_manager/manager/../../../tools/vtpm_manager/manager -pthread  -c -o vtpmd.o vtpmd.c  -I/usr/pkg/include


cc1: warnings being treated as errors
vtpmd.c: In function 'signal_handler':
vtpmd.c:96:3: error: passing argument 2 of '__libc_thr_equal' makes pointer from integer without a cast
/usr/include/pthread.h:368:5: note: expected 'pthread_t' but argument is of type '__pid_t'


vtpmd.c: In function 'main':
vtpmd.c:343:28: error: assignment makes integer from pointer without a cast
gmake[5]: *** [vtpmd.o] Error 1
gmake[5]: Leaving directory `/root/xen-4.2.1/tools/vtpm_manager/manager'


gmake[4]: *** [subdir-install-manager] Error 2
gmake[4]: Leaving directory `/root/xen-4.2.1/tools/vtpm_manager'
gmake[3]: *** [subdirs-install] Error 2
gmake[3]: Leaving directory `/root/xen-4.2.1/tools/vtpm_manager'


gmake[2]: *** [subdir-install-vtpm_manager] Error 2
gmake[2]: Leaving directory `/root/xen-4.2.1/tools'
gmake[1]: *** [subdirs-install] Error 2
gmake[1]: Leaving directory `/root/xen-4.2.1/tools'
gmake: *** [install-tools] Error 2




So I know that already one dependency is missing I think it's libgmp but I found no way to build it on NetBSD.

Is vTPM buildable on NetBSD and what does this error/warning which was treated as error mean?




Best Regards

[-- Attachment #1.2: Type: text/html, Size: 6530 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-18 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-09 12:38 Building Xen 4.2.1 with vTPM on NetBSD 6.0.1 tech mailinglists
2013-02-18 17:17 ` Fioravante, Matthew E.

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.