qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] nbd doesn't compile on Windows


From: C.W. Betts
Subject: [Qemu-devel] nbd doesn't compile on Windows
Date: Fri, 18 Jul 2008 10:27:52 -0600

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]