|
From: Gilles D. <gr...@sc...> - 2003-10-16 21:41:19
|
I tried a "make check" of the current CVS tree on both Red Hat Linux
6.2 and Red Hat Linux 9. On 6.2, it passes with flying colours, if
I remember to chmod +x test/t_url first. On RH9, I ran into a couple
different problems.
First of all, there's the infamous WordType::instance undefined error
which has dogged Mac OS X users. Has anyone yet come up with a fix for
this, other than manually linking and changing the order of the libraries?
I tried a hack to a couple test programs to help prod the linker into
loading the needed modules from the libraries, but I don't think it's
the ideal solution (it causes a warning when t_url runs the url.cc code,
and I imagine testnet would do likewise if I got Apache to run). My hack
is below.
The other problem is the 5 tests that require Apache fail because I
can't get it to run. I commented out or modified all the lines in
test/conf/httpd.conf that were causing httpd to give error messages,
but it still won't start up. Apache 2.0.40 seems to have some problems
with the conf file in our distribution, but I wasted too many fruitless
hours yesterday to figure out what it needs. Anyone else had better luck?
I don't personally consider this a showstopper for the upcoming 3.2.0rc1,
but it would be nice to have this all working reliably in the final release.
On the bright side, the RH9 build does pass the other 9 tests, and perhaps
more importantly, it has no trouble indexing the SCRC's web site.
Here's my ugly hack to get it to link on RH9...
--- test/testnet.cc.orig 2003-07-21 07:40:22.000000000 -0500
+++ test/testnet.cc 2003-10-15 13:21:44.000000000 -0500
@@ -7,6 +7,7 @@
#include "HtHTTP.h"
#include "HtHTTPBasic.h"
#include "HtDateTime.h"
+#include "WordContext.h"
#include <URL.h>
#ifdef HAVE_STD
@@ -75,6 +76,9 @@ int main(int ac, char **av)
// Flag variable for errors
int _errors = 0;
+ // Needed to satisfy linker dependencies...
+ (void) WordContext::Initialize();
+
///////
// Retrieving options from command line with getopt
///////
--- test/url.cc.orig 2003-07-21 07:40:22.000000000 -0500
+++ test/url.cc 2003-10-15 13:19:33.000000000 -0500
@@ -38,6 +38,7 @@ using namespace std;
#include "HtConfiguration.h"
#include "URL.h"
+#include "WordContext.h"
// These should probably be tested individually
@@ -114,6 +115,7 @@ static void dourl(params_t* params)
{
if(verbose) cerr << "Test WordKey class with " <<
params->url_parents << " and " << params->url_children << "\n";
+ (void) WordContext::Initialize();
HtConfiguration* const config= HtConfiguration::config();
config->Defaults(defaults);
dolist(params);
--
Gilles R. Detillieux E-mail: <gr...@sc...>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)
|