[Xapian-discuss] Ticket #282: omindex-assorted-enhancements.patch woes

Frank John Bruzzaniti frank.bruzzaniti at gmail.com
Mon Feb 2 13:23:45 GMT 2009


I would really like to try out the features in the patch above.  But I
can't ever seem to get the resulting omindex.cc to "make".

I tried updating to rev 10801 from the SVN then run /bootstrap but then
I seem to get errors compiling everything when I try and do "make" (I'm
using ubuntu 8.10).

So I thought I'd try an apply the patch to the latest stable version
1.0.10.  The patch created a reject file but I edited in the two lines
it rejected myself.

But when I run "make" I get the following errors:

omindex.o: In function `main':
/home/frankie/Desktop/xapian-omega-1.0.10/omindex.cc:874: undefined
reference to `read_config_file()'
/home/frankie/Desktop/xapian-omega-1.0.10/omindex.cc:987: undefined
reference to `log_dir'
collect2: ld returned 1 exit status

Could anyone suggest what I've dome wrong?




FYI Here's the reject file:

***************
*** 397,406 ****
      } else if (mimetype == "text/rtf") {
  	// The --text option unhelpfully converts all non-ASCII characters to
  	// "?" so we use --html instead, which produces HTML entities.
- 	string cmd = "unrtf --nopict --html 2>/dev/null " +
shell_protect(file);
  	MyHtmlParser p;
  	try {
- 	    p.parse_html(stdout_to_string(cmd));
  	} catch (ReadError) {
  	    cout << "\"" << cmd << "\" failed - skipping\n";
  	    return;
--- 426,435 ----
      } else if (mimetype == "text/rtf") {
  	// The --text option unhelpfully converts all non-ASCII characters to
  	// "?" so we use --html instead, which produces HTML entities.
+ 	string cmd = "unrtf --nopict --html " + shell_protect(file);
  	MyHtmlParser p;
  	try {
+ 	    p.parse_html(run_cmd(cmd));
  	} catch (ReadError) {
  	    cout << "\"" << cmd << "\" failed - skipping\n";
  	    return;




More information about the Xapian-discuss mailing list