qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] nbd doesn't compile on Windows
@ 2008-07-18 16:27 C.W. Betts
  2008-07-18 16:49 ` [Qemu-devel] " Sebastian Herbszt
  0 siblings, 1 reply; 2+ messages in thread
From: C.W. Betts @ 2008-07-18 16:27 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 3922 bytes --]

When I tried to build the recent SVN version of qemu on my Windows machine using mingw/msys, I seem to run into a problem with building the nbd file.  It complains about missing headers, then won't build.


gcc -Wall -O2 -g -fno-strict-aliasing  -m32 -I. -I/home/Owner/SoureCode/qemu-svn -MMD -MP -MT nbd.o -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/Owner/SoureCode/qemu-svn/slirp -c -o nbd.o nbd.c
nbd.c:24:23: warning: sys/ioctl.h: No such file or directory
nbd.c:27:24: warning: sys/socket.h: No such file or directory
nbd.c:28:20: warning: sys/un.h: No such file or directory
nbd.c:29:24: warning: netinet/in.h: No such file or directory
nbd.c:30:25: warning: netinet/tcp.h: No such file or directory
nbd.c:31:23: warning: arpa/inet.h: No such file or directory
nbd.c:32:19: warning: netdb.h: No such file or directory
nbd.c: In function `tcp_socket_outgoing':
nbd.c:106: error: storage size of 'in' isn't known
nbd.c:107: error: storage size of 'addr' isn't known
nbd.c:110: warning: implicit declaration of function `socket'
nbd.c:110: error: `PF_INET' undeclared (first use in this function)
nbd.c:110: error: (Each undeclared identifier is reported only once
nbd.c:110: error: for each function it appears in.)
nbd.c:110: error: `SOCK_STREAM' undeclared (first use in this function)
nbd.c:115: warning: implicit declaration of function `inet_aton'
nbd.c:118: warning: implicit declaration of function `gethostbyname'
nbd.c:118: warning: assignment makes pointer from integer without a cast
nbd.c:123: error: dereferencing pointer to incomplete type
nbd.c:126: error: `AF_INET' undeclared (first use in this function)
nbd.c:127: warning: implicit declaration of function `htons'
nbd.c:130: warning: implicit declaration of function `connect'
nbd.c:106: warning: unused variable `in'
nbd.c:107: warning: unused variable `addr'
nbd.c: In function `tcp_socket_incoming':
nbd.c:145: error: storage size of 'in' isn't known
nbd.c:146: error: storage size of 'addr' isn't known
nbd.c:150: error: `PF_INET' undeclared (first use in this function)
nbd.c:150: error: `SOCK_STREAM' undeclared (first use in this function)
nbd.c:158: warning: assignment makes pointer from integer without a cast
nbd.c:163: error: dereferencing pointer to incomplete type
nbd.c:166: error: `AF_INET' undeclared (first use in this function)
nbd.c:171: warning: implicit declaration of function `setsockopt'
nbd.c:171: error: `SOL_SOCKET' undeclared (first use in this function)
nbd.c:171: error: `SO_REUSEADDR' undeclared (first use in this function)
nbd.c:175: warning: implicit declaration of function `bind'
nbd.c:179: warning: implicit declaration of function `listen'
nbd.c:145: warning: unused variable `in'
nbd.c:146: warning: unused variable `addr'
nbd.c: In function `unix_socket_incoming':
nbd.c:194: error: storage size of 'addr' isn't known
nbd.c:197: error: `PF_UNIX' undeclared (first use in this function)
nbd.c:197: error: `SOCK_STREAM' undeclared (first use in this function)
nbd.c:203: error: `AF_UNIX' undeclared (first use in this function)
nbd.c:194: warning: unused variable `addr'
nbd.c: In function `unix_socket_outgoing':
nbd.c:225: error: storage size of 'addr' isn't known
nbd.c:228: error: `PF_UNIX' undeclared (first use in this function)
nbd.c:228: error: `SOCK_STREAM' undeclared (first use in this function)
nbd.c:234: error: `AF_UNIX' undeclared (first use in this function)
nbd.c:225: warning: unused variable `addr'
nbd.c: In function `nbd_receive_negotiate':
nbd.c:319: warning: long long unsigned int format, different type arg (arg 6)
nbd.c: In function `nbd_init':
nbd.c:341: warning: implicit declaration of function `ioctl'
nbd.c:341: warning: implicit declaration of function `_IO'
nbd.c: In function `nbd_trip':
nbd.c:553: warning: long long unsigned int format, different type arg (arg 8)
make: *** [nbd.o] Error 1

[-- Attachment #2: Type: text/html, Size: 4616 bytes --]

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

* [Qemu-devel] Re: nbd doesn't compile on Windows
  2008-07-18 16:27 [Qemu-devel] nbd doesn't compile on Windows C.W. Betts
@ 2008-07-18 16:49 ` Sebastian Herbszt
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Herbszt @ 2008-07-18 16:49 UTC (permalink / raw)
  To: qemu-devel

C.W. Betts wrote:

> When I tried to build the recent SVN version of qemu on my Windows machine using mingw/msys
>  I seem to run into a problem with building the nbd file.  It complains about missing headers, then won't build.
> 
> gcc -Wall -O2 -g -fno-strict-aliasing  -m32 -I. -I/home/Owner/SoureCode/qemu-svn -MMD -MP -MT nbd.o
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -I/home/Owner/SoureCode/qemu-svn/slirp -c -o nbd.o nbd.c
> nbd.c:24:23: warning: sys/ioctl.h: No such file or directory
> nbd.c:27:24: warning: sys/socket.h: No such file or directory
> nbd.c:28:20: warning: sys/un.h: No such file or directory

This issue was already noticed. Please see
http://lists.gnu.org/archive/html/qemu-devel/2008-07/msg00106.html

- Sebastian

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

end of thread, other threads:[~2008-07-18 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 16:27 [Qemu-devel] nbd doesn't compile on Windows C.W. Betts
2008-07-18 16:49 ` [Qemu-devel] " Sebastian Herbszt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).