M A Young
2010-Feb-02 23:40 UTC
[Xen-devel] uuid build problems with xen 4.0.0 rc2 on Fedora 12
I am trying to build a xen 4.0.0 rc2 RPM on Fedora 12 and I am running into compile problems at tools/blktap2/include/blk_uuid.h Firstly, for linux it tries to include <uuid/uuid.h> but the Fedora uuid-devel package (based on http://www.ossp.org/pkg/lib/uuid/ ) has uuid.h at /usr/include/uuid.h . If I edit to fix that I get the compile errors In file included from ../../include/libvhd.h:39, from ../../include/libvhd-journal.h:32, from libvhd-journal.c:35: ../../include/blk_uuid.h:35: error: field ''uuid'' has incomplete type cc1: warnings being treated as errors ../../include/blk_uuid.h: In function ''blk_uuid_is_nil'': ../../include/blk_uuid.h:40: error: implicit declaration of function ''uuid_is_null'' ../../include/blk_uuid.h: In function ''blk_uuid_generate'': ../../include/blk_uuid.h:45: error: implicit declaration of function ''uuid_generate'' ../../include/blk_uuid.h: In function ''blk_uuid_to_string'': ../../include/blk_uuid.h:50: error: implicit declaration of function ''uuid_unparse'' ../../include/blk_uuid.h: In function ''blk_uuid_from_string'': ../../include/blk_uuid.h:55: error: implicit declaration of function ''uuid_parse'' ../../include/blk_uuid.h: In function ''blk_uuid_copy'': ../../include/blk_uuid.h:60: error: implicit declaration of function ''uuid_copy'' ../../include/blk_uuid.h: In function ''blk_uuid_clear'': ../../include/blk_uuid.h:65: error: implicit declaration of function ''uuid_clear'' ../../include/blk_uuid.h: In function ''blk_uuid_compare'': ../../include/blk_uuid.h:70: error: too few arguments to function ''uuid_compare'' make[7]: *** [libvhd-journal.o] Error 1 also (though these might be a consequence of the first failure) libvhd.c: In function ''vhd_time'': libvhd.c:699: error: storage size of ''tm'' isn''t known libvhd.c:702: error: invalid application of ''sizeof'' to incomplete type ''struct tm'' libvhd.c:706: error: implicit declaration of function ''mktime'' libvhd.c: In function ''vhd_time_to_string'': libvhd.c:719: error: storage size of ''tm'' isn''t known libvhd.c:722: error: invalid application of ''sizeof'' to incomplete type ''struct tm'' libvhd.c:732: error: implicit declaration of function ''ctime_r'' libvhd.c: In function ''vhd_initialize_footer'': libvhd.c:2446: error: implicit declaration of function ''time'' make[7]: *** [libvhd.o] Error 1 so I don''t think xen-4.0.0-rc2 is compatible with Fedora''s uuid. Michael Young _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
M A Young
2010-Feb-02 23:58 UTC
[Xen-devel] Re: uuid build problems with xen 4.0.0 rc2 on Fedora 12
On Tue, 2 Feb 2010, M A Young wrote:> I am trying to build a xen 4.0.0 rc2 RPM on Fedora 12 and I am running into > compile problems at tools/blktap2/include/blk_uuid.h > Firstly, for linux it tries to include <uuid/uuid.h> but the Fedora > uuid-devel package (based on http://www.ossp.org/pkg/lib/uuid/ )Actually, you can ignore this as I have now noticed that Fedora has two rival uuid packages, and xen seems more likely to be happy with the other one (based on ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng ). Michael Young _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2010-Feb-03 00:05 UTC
Re: [Xen-devel] uuid build problems with xen 4.0.0 rc2 on Fedora 12
CentOS 5 has the correct uuid header packaged in libe2fs-devel. Fedora might well do the same thing. Another possible package is libuuid-devel -- which if it exists would actually be the libe2fs uuid implementation pulled out into a separate package. Either way: libuuid-devel/libe2fs-devel is the uuid library implementation that you need to have installed. It can coexist with uuid-devel because, for example, the headers live in different locations (uuid.h vs uuid/uuid.h). -- Keir On 02/02/2010 23:40, "M A Young" <m.a.young@durham.ac.uk> wrote:> I am trying to build a xen 4.0.0 rc2 RPM on Fedora 12 and I am running > into compile problems at tools/blktap2/include/blk_uuid.h > Firstly, for linux it tries to include <uuid/uuid.h> but the Fedora > uuid-devel package (based on http://www.ossp.org/pkg/lib/uuid/ ) has > uuid.h at /usr/include/uuid.h . If I edit to fix that I get the compile > errors > > In file included from ../../include/libvhd.h:39, > from ../../include/libvhd-journal.h:32, > from libvhd-journal.c:35: > ../../include/blk_uuid.h:35: error: field ''uuid'' has incomplete type > cc1: warnings being treated as errors > ../../include/blk_uuid.h: In function ''blk_uuid_is_nil'': > ../../include/blk_uuid.h:40: error: implicit declaration of function > ''uuid_is_null'' > ../../include/blk_uuid.h: In function ''blk_uuid_generate'': > ../../include/blk_uuid.h:45: error: implicit declaration of function > ''uuid_generate'' > ../../include/blk_uuid.h: In function ''blk_uuid_to_string'': > ../../include/blk_uuid.h:50: error: implicit declaration of function > ''uuid_unparse'' > ../../include/blk_uuid.h: In function ''blk_uuid_from_string'': > ../../include/blk_uuid.h:55: error: implicit declaration of function > ''uuid_parse'' > ../../include/blk_uuid.h: In function ''blk_uuid_copy'': > ../../include/blk_uuid.h:60: error: implicit declaration of function > ''uuid_copy'' > ../../include/blk_uuid.h: In function ''blk_uuid_clear'': > ../../include/blk_uuid.h:65: error: implicit declaration of function > ''uuid_clear'' > ../../include/blk_uuid.h: In function ''blk_uuid_compare'': > ../../include/blk_uuid.h:70: error: too few arguments to function > ''uuid_compare'' > make[7]: *** [libvhd-journal.o] Error 1 > > also (though these might be a consequence of the first failure) > libvhd.c: In function ''vhd_time'': > libvhd.c:699: error: storage size of ''tm'' isn''t known > libvhd.c:702: error: invalid application of ''sizeof'' to incomplete type > ''struct tm'' > libvhd.c:706: error: implicit declaration of function ''mktime'' > libvhd.c: In function ''vhd_time_to_string'': > libvhd.c:719: error: storage size of ''tm'' isn''t known > libvhd.c:722: error: invalid application of ''sizeof'' to incomplete type > ''struct tm'' > libvhd.c:732: error: implicit declaration of function ''ctime_r'' > libvhd.c: In function ''vhd_initialize_footer'': > libvhd.c:2446: error: implicit declaration of function ''time'' > make[7]: *** [libvhd.o] Error 1 > > so I don''t think xen-4.0.0-rc2 is compatible with Fedora''s uuid. > > Michael Young > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
M A Young
2010-Feb-03 00:16 UTC
Re: [Xen-devel] uuid build problems with xen 4.0.0 rc2 on Fedora 12
On Wed, 3 Feb 2010, Keir Fraser wrote:> CentOS 5 has the correct uuid header packaged in libe2fs-devel. Fedora might > well do the same thing. Another possible package is libuuid-devel -- which > if it exists would actually be the libe2fs uuid implementation pulled out > into a separate package. > > Either way: libuuid-devel/libe2fs-devel is the uuid library implementation > that you need to have installed. It can coexist with uuid-devel because, for > example, the headers live in different locations (uuid.h vs uuid/uuid.h).Yes, it is libuuid-devel, which I discovered for myself after sending the email. My build of the rpm still fails but it is at that packaging stage so it probably isn''t xen''s fault. Michael Young _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel