[libvirt] Libvirt 0.7.7 compile under mingw

Hi, I'm trying to compile 0.7.7 under XP/mingw and I have this issue : In file included from util/conf.c:24: util/util.h:119: error: syntax error before "uid_t" util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error: syntax error before "uid_t" util/util.h:130: warning: function declaration isn't a prototype I have configure in this way (msys based path) : ./configure --host=i686-pc-mingw32 --without-sasl --without-avahi --without-polkit --without-python --without-xen --without-qemu --without-lxc --without-openvz --without-libvirtd --without-phyp --without-vbox --prefix=/mingw/ Any help ? Best reagards Arnaud Champion

On 03/10/2010 08:47 AM, Dev.Atom wrote:
Hi,
I'm trying to compile 0.7.7 under XP/mingw and I have this issue :
In file included from util/conf.c:24: util/util.h:119: error: syntax error before "uid_t" util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error: syntax error before "uid_t" util/util.h:130: warning: function declaration isn't a prototype
Can you show the relevant chunk of the preprocessor output around this area (use 'make V=1' to get a verbose run with the gcc command line used, then edit that command line to use -E)? Perhaps there's a macro expansion going awry? Maybe this is a more generic gnulib issue? -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

2010/3/10 Dev.Atom <arnaud.champion@devatom.fr>:
Hi,
I'm trying to compile 0.7.7 under XP/mingw and I have this issue :
In file included from util/conf.c:24: util/util.h:119: error: syntax error before "uid_t" util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error: syntax error before "uid_t" util/util.h:130: warning: function declaration isn't a prototype
I have configure in this way (msys based path) :
./configure --host=i686-pc-mingw32 --without-sasl --without-avahi --without-polkit --without-python --without-xen --without-qemu --without-lxc --without-openvz --without-libvirtd --without-phyp --without-vbox --prefix=/mingw/
Any help ?
Best reagards
Arnaud Champion
I have some patches and setup instructions lying around to make libvirt compilable on Windows using MinGW/MSYS. I think I should clean them up and get them upstream. Regarding the uid_t issue: IIRC there is no numeric user ID on Windows, so all uid_t related code is basically a noop on Windows. What's missing here is the definition of the uid_t type, this is fixed in my patches. There are some other issues on Windows that I also fixed already. I think I can get the fixes upstream this week. Matthias

On Wed, Mar 10, 2010 at 10:01:55PM +0100, Matthias Bolte wrote:
2010/3/10 Dev.Atom <arnaud.champion@devatom.fr>:
Hi,
I'm trying to compile 0.7.7 under XP/mingw and I have this issue :
In file included from util/conf.c:24: util/util.h:119: error: syntax error before "uid_t" util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error: syntax error before "uid_t" util/util.h:130: warning: function declaration isn't a prototype
I have configure in this way (msys based path) :
./configure --host=i686-pc-mingw32 --without-sasl --without-avahi --without-polkit --without-python --without-xen --without-qemu --without-lxc --without-openvz --without-libvirtd --without-phyp --without-vbox --prefix=/mingw/
Any help ?
Best reagards
Arnaud Champion
I have some patches and setup instructions lying around to make libvirt compilable on Windows using MinGW/MSYS. I think I should clean them up and get them upstream.
Regarding the uid_t issue: IIRC there is no numeric user ID on Windows, so all uid_t related code is basically a noop on Windows. What's missing here is the definition of the uid_t type, this is fixed in my patches.
There are some other issues on Windows that I also fixed already. I think I can get the fixes upstream this week.
That would be nice ! Thanks :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

Hi, Okay, so I will wait for these patches, to continue -------------------------------------------------- From: "Matthias Bolte" <matthias.bolte@googlemail.com> Sent: Wednesday, March 10, 2010 10:01 PM To: "Dev.Atom" <arnaud.champion@devatom.fr> Cc: <libvirt-list@redhat.com> Subject: Re: [libvirt] Libvirt 0.7.7 compile under mingw
2010/3/10 Dev.Atom <arnaud.champion@devatom.fr>:
Hi,
I'm trying to compile 0.7.7 under XP/mingw and I have this issue :
In file included from util/conf.c:24: util/util.h:119: error: syntax error before "uid_t" util/util.h:121: warning: function declaration isn't a prototype util/util.h:129: error: syntax error before "uid_t" util/util.h:130: warning: function declaration isn't a prototype
I have configure in this way (msys based path) :
./configure --host=i686-pc-mingw32 --without-sasl --without-avahi --without-polkit --without-python --without-xen --without-qemu --without-lxc --without-openvz --without-libvirtd --without-phyp --without-vbox --prefix=/mingw/
Any help ?
Best reagards
Arnaud Champion
I have some patches and setup instructions lying around to make libvirt compilable on Windows using MinGW/MSYS. I think I should clean them up and get them upstream.
Regarding the uid_t issue: IIRC there is no numeric user ID on Windows, so all uid_t related code is basically a noop on Windows. What's missing here is the definition of the uid_t type, this is fixed in my patches.
There are some other issues on Windows that I also fixed already. I think I can get the fixes upstream this week.
Matthias
participants (4)
-
Daniel Veillard
-
Dev.Atom
-
Eric Blake
-
Matthias Bolte