Package: linux-kernel-headers
Version: 2.6.18-1
Severity: normal
File: /usr/include/linux/nbd.h

Hi,

when I try to compile nbd-server against the nbd.h currently in
linux-kernel-headers, I get the following output:

if gcc -DHAVE_CONFIG_H -I. -I. -I.    -g -O2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -g -O2 -MT nbd_server-nbd-server.o -MD -MP -MF 
".deps/nbd_server-nbd-server.Tpo" -c -o nbd_server-nbd-server.o `test -f 
'nbd-server.c' || echo './'`nbd-server.c; \
        then mv -f ".deps/nbd_server-nbd-server.Tpo" 
".deps/nbd_server-nbd-server.Po"; else rm -f ".deps/nbd_server-nbd-server.Tpo"; 
exit 1; fi
In file included from cliserv.h:42,
                 from nbd-server.c:90:
/usr/include/linux/nbd.h:80: error: expected specifier-qualifier-list before 
‘__be32’
/usr/include/linux/nbd.h:96: error: expected specifier-qualifier-list before 
‘__be32’
nbd-server.c: In function ‘mainloop’:
nbd-server.c:655: error: ‘struct nbd_reply’ has no member named ‘magic’
nbd-server.c:656: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:667: error: ‘struct nbd_request’ has no member named ‘from’
nbd-server.c:667: error: ‘struct nbd_request’ has no member named ‘from’
nbd-server.c:668: error: ‘struct nbd_request’ has no member named ‘type’
nbd-server.c:668: error: ‘struct nbd_request’ has no member named ‘type’
nbd-server.c:670: error: ‘struct nbd_request’ has no member named ‘type’
nbd-server.c:682: error: ‘struct nbd_request’ has no member named ‘len’
nbd-server.c:684: error: ‘struct nbd_request’ has no member named ‘magic’
nbd-server.c:693: error: ‘struct nbd_reply’ has no member named ‘handle’
nbd-server.c:693: error: ‘struct nbd_request’ has no member named ‘handle’
nbd-server.c:693: error: ‘struct nbd_reply’ has no member named ‘handle’
nbd-server.c:694: error: ‘struct nbd_request’ has no member named ‘from’
nbd-server.c:696: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:696: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:700: error: ‘struct nbd_request’ has no member named ‘from’
nbd-server.c:701: error: ‘struct nbd_request’ has no member named ‘type’
nbd-server.c:704: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:704: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:708: error: ‘struct nbd_request’ has no member named ‘type’
nbd-server.c:713: error: ‘struct nbd_request’ has no member named ‘from’
nbd-server.c:716: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:716: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:726: error: ‘struct nbd_request’ has no member named ‘from’
nbd-server.c:728: error: ‘struct nbd_reply’ has no member named ‘error’
nbd-server.c:728: error: ‘struct nbd_reply’ has no member named ‘error’
make[1]: *** [nbd_server-nbd-server.o] Error 1

Which is not supposed to happen.

(note that the nbd source package contains a separate nbd.h file which
is used instead, since it also needs to build on non-Linux ports; to
reproduce, remove that file before building)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-powerpc
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to