Package: nbd-client
Version: 1:2.9.25-2
Severity: serious
Tags: patch
Justification: fails to build from source

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

make[3]: Entering directory `/tmp/nbd-2.9.25'
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"'  -g -O2 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 
-c -o nbd_server-nbd-server.o `test -f 'nbd-server.c' || echo './'`nbd-server.c
nbd-server.c: In function ‘exptrim’:
nbd-server.c:1477:28: error: ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in 
this function)
nbd-server.c:1477:28: note: each undeclared identifier is reported only once 
for each function it appears in
make[3]: *** [nbd_server-nbd-server.o] Error 1
make[3]: Leaving directory `/tmp/nbd-2.9.25'

Fixed by the following patch:

- --- /tmp/nbd-server.c 2012-02-18 20:30:10.399561659 +0000
+++ nbd-server.c        2012-02-18 20:29:14.975848442 +0000
@@ -1461,7 +1461,7 @@
  * file to resparsify stuff that isn't needed anymore (see NBD_CMD_TRIM)
  */
 int exptrim(struct nbd_request* req, CLIENT* client) {
- -#ifdef HAVE_FALLOC_PH
+#if HAVE_FALLOC_PH
        FILE_INFO prev = g_array_index(client->export, FILE_INFO, 0);
        FILE_INFO cur = prev;
        int i = 1;


- -- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (550, 'stable-updates'), (550, 'stable'), (540, 'testing'), (530, 
'unstable'), (520, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nbd-client depends on:
ii  debconf [debconf-2.0]         1.5.41     Debian configuration management sy
ii  initscripts                   2.88dsf-22 scripts for initializing and shutt
ii  libc6                         2.13-26    Embedded GNU C Library: Shared lib

nbd-client recommends no packages.

nbd-client suggests no packages.

- -- debconf information excluded

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk9ACrUACgkQshl/216gEHjlYgCg3GcUB9JGMsNKMID0I0h1Fplj
/zYAoI7RaGfQ9FHQI8yzAlhpOqeObNfR
=tC3y
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to