[Xapian-devel] xapian-omega runfilter.cc patch

Henrik Brix Andersen brix at FreeBSD.org
Tue Jul 29 19:53:36 BST 2008


Hi,

The following patch for runfilter.cc is needed for building
xapian-omega on FreeBSD:


--- runfilter.cc.orig	2008-07-03 21:16:54.000000000 +0200
+++ runfilter.cc	2008-07-03 21:18:48.000000000 +0200
@@ -25,6 +25,7 @@
 #include "safeerrno.h"
 #include <sys/types.h>
 #include <stdio.h>
+#include <signal.h>
 #include "safefcntl.h"
 
 #ifdef HAVE_SYS_TIME_H


Attempting to build xapian-omega 1.0.7 (and 1.0.6 for that matter)
without the above patch results in the following compile error:

c++ -DHAVE_CONFIG_H -I. -I./common  -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.conf\" -I/usr/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -Wconversion -fno-gnu-keywords -Wundef -Wshadow -Winit-self -Wstrict-overflow=5 -fvisibility=hidden -O2 -pipe -march=prescott -fno-strict-aliasing -I/usr/local/include -MT runfilter.o -MD -MP -MF .deps/runfilter.Tpo -c -o runfilter.o runfilter.cc
runfilter.cc: In function 'std::string stdout_to_string(const std::string&)':
runfilter.cc:69: error: 'SIGCHLD' was not declared in this scope
runfilter.cc:69: error: 'SIG_DFL' was not declared in this scope
runfilter.cc:69: error: 'signal' was not declared in this scope
*** Error code 1

Please CC: me on any replies as I am not subscribed to the
xapian-devel mailing list. Thanks.

Regards,
Brix
-- 
Henrik Brix Andersen <brix at FreeBSD.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 217 bytes
Desc: not available
Url : http://lists.xapian.org/pipermail/xapian-devel/attachments/20080729/78811253/attachment.pgp 


More information about the Xapian-devel mailing list