Package: fam
Version: 2.7.0-8
Severity: serious

>From my pbuilder build log:

...
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DFAM_CONF=\"/etc/fam.conf\"   
 -g -Wall -O2 -Wno-sign-compare -Wno-deprecated -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -MT DNotify.o -MD -MP -MF ".deps/DNotify.Tpo" -c -o 
DNotify.o DNotify.c++; \
        then mv -f ".deps/DNotify.Tpo" ".deps/DNotify.Po"; else rm -f 
".deps/DNotify.Tpo"; exit 1; fi
DNotify.c++:24:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
Monitor.h:45: warning: 'class Monitor' has virtual functions but non-virtual 
destructor
DNotify.h:42: warning: 'class DNotify' has virtual functions but non-virtual 
destructor
DNotify.c++: In member function 'void 
DNotify::FileWatch::add_dir_watch(DNotify::DirWatch*)':
DNotify.c++:126: error: 'realloc' was not declared in this scope
...
make[3]: *** [DNotify.o] Error 1
make[3]: Leaving directory `/tmp/buildd/fam-2.7.0/build-tree/fam-2.7.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/fam-2.7.0/build-tree/fam-2.7.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/fam-2.7.0/build-tree/fam-2.7.0'
make: *** [debian/stamp-makefile-build] Error 2

I've attached a patch which fixes the compilation for me.  (Of course,
you might want to integrate it into the main dnotify patch instead of
the separate patch I did here.)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages fam depends on:
ii  libc6                         2.3.5-11   GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-6  GCC support library
ii  libstdc++6                    4.0.2-6    The GNU Standard C++ Library v3

Versions of packages fam recommends:
ii  portmap                       5-16       The RPC portmapper

-- no debconf information
diff -urN fam-2.7.0.old/debian/patches/08_dnotify_fix.patch fam-2.7.0/debian/patches/08_dnotify_fix.patch
--- fam-2.7.0.old/debian/patches/08_dnotify_fix.patch	1970-01-01 00:00:00.000000000 +0000
+++ fam-2.7.0/debian/patches/08_dnotify_fix.patch	2006-01-13 08:28:29.000000000 +0000
@@ -0,0 +1,11 @@
+diff -urN fam-2.7.0.old/src/DNotify.c++ fam-2.7.0/src/DNotify.c++
+--- fam-2.7.0.old/src/DNotify.c++	2006-01-13 08:27:19.000000000 +0000
++++ fam-2.7.0/src/DNotify.c++	2006-01-13 08:28:01.000000000 +0000
+@@ -27,6 +27,7 @@
+ #include <string.h>
+ #include <signal.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>

Reply via email to