Skip to main content.
home | support | download

Back to List Archive

2.2.4-rc1 on Windows under Cygwin

From: Greg Fenton <greg_fenton(at)>
Date: Fri May 30 2003 - 13:56:25 GMT
[Sorry if this is a repeat, but again I don't see my email from last
night in the SWISH-E archives...]

Before I crawl into code and start hacking, I thought I'd post a
problem I've run into and see if it is currently being addressed.

I have build swish-e from CVS on Windows using Cygwin.  The good news
is that it Just Works:

1. ./configure
2. make

(I'm sure "make install" would work too, but I haven't needed to yet).

The problem I run into is when I try to spider a site.  My swish.conf

   IndexDir ../prog-bin/

When I run swish-e under Cygwin, I get:

   Indexing Data Source: "External-Program"
   Indexing "./" not found

The problem seems, from my brief browse of the code, to be in extprog.c
line 161:

  /* -------------------------------------- */
  #ifdef _WIN32

      make_windows_path( cmd );

  /* -------------------------------------- */

I'm pretty sure that what is happening is that "./" is getting
converted to ".\", which interpreted by the Cygwin environment
(a true BASH shell) becomes "" [\s is simply an "s"].

I'm happy to provide a patch, but before I do I want to find out if:
 (a) I'm on the right path,
 (b) is anyone actively working on this particular code and
 (c) does anyone have a solution other than adding more to the #ifdef

As for (c), by adding __CYGWIN__ to the #ifdef we create an executable
that is usable by Cygwin *or* one that is usable outside of Cygwin. 
Another option would be to build one executable for WIN32 and offer a
flag (or runtime detection) for deciding on whether to convert paths.


Greg Fenton

Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
Received on Fri May 30 13:56:35 2003