[GRASS5] fifo configure

Grass Developers,

I recently installed GRASS 5.0.0. I configured it for fifos and had two
problems:

(1) Configuring with "--enable-fifo" is not enough, "--disable-socket" is
also needed. Is that how it is supposed to work? The configure help says
that "--enable-fifo" will use the FIFO XDriver instead of sockets, which
suggests that sockets are automatically disabled.

(2) The monitorcap file did not work until I added full paths.

Bev Wallace
Lockheed Martin, Sunnyvale, CA, USA
beverly.t.wallace@lmco.com

Wallace, Beverly T wrote:

I recently installed GRASS 5.0.0. I configured it for fifos and had two
problems:

Just out of curiosity, was there any particular reason for using
FIFOs? Is this a system which simply doesn't support sockets, or is
there a problem with the socket code?

(1) Configuring with "--enable-fifo" is not enough, "--disable-socket" is
also needed. Is that how it is supposed to work? The configure help says
that "--enable-fifo" will use the FIFO XDriver instead of sockets, which
suggests that sockets are automatically disabled.

OK; this can be fixed easily enough.

(2) The monitorcap file did not work until I added full paths.

This is due to:

  date: 2002/01/04 17:04:17; author: andreas; state: Exp; lines: +14 -14
  removed absolute paths in monitorcap file

in:

  src/display/devices/HTMLMAP/Gmakefile
  src/display/devices/HTMLMAP/moncap.entry
  src/display/devices/PNGdriver/Gmakefile
  src/display/devices/PNGdriver/moncap.entry
  src/display/devices/monitorcap/Gmakefile
  src/display/devices/monitorcap/monitorcap

Andreas: was there a specific reason for this change? It won't work
with FIFOs (and the field is ignored when using sockets).

There are two solutions here:

1. (the easy way): revert the change.

2. (the hard way): modify the code to prepend $GISBASE to the paths.
This could be done either in src/libes/raster/io.c (for clients) and
src/display/devices/lib/connect_fifo.c (for drivers), or by modifying
R_parse_monitorcap().

The only reason to choose option 2 is so that the GRASS directory can
be moved easily.

--
Glynn Clements <glynn.clements@virgin.net>

On Tue, Feb 04, 2003 at 01:50:35AM +0000, Glynn Clements wrote:

Wallace, Beverly T wrote:

> I recently installed GRASS 5.0.0. I configured it for fifos and had two
> problems:

Just out of curiosity, was there any particular reason for using
FIFOs? Is this a system which simply doesn't support sockets, or is
there a problem with the socket code?

> (1) Configuring with "--enable-fifo" is not enough, "--disable-socket" is
> also needed. Is that how it is supposed to work? The configure help says
> that "--enable-fifo" will use the FIFO XDriver instead of sockets, which
> suggests that sockets are automatically disabled.

OK; this can be fixed easily enough.

> (2) The monitorcap file did not work until I added full paths.

This is due to:

  date: 2002/01/04 17:04:17; author: andreas; state: Exp; lines: +14 -14
  removed absolute paths in monitorcap file

in:

  src/display/devices/HTMLMAP/Gmakefile
  src/display/devices/HTMLMAP/moncap.entry
  src/display/devices/PNGdriver/Gmakefile
  src/display/devices/PNGdriver/moncap.entry
  src/display/devices/monitorcap/Gmakefile
  src/display/devices/monitorcap/monitorcap

Andreas: was there a specific reason for this change? It won't work
with FIFOs (and the field is ignored when using sockets).

I found this reference:
http://grass.itc.it/pipermail/grass5/2001-December/001441.html
http://intevation.de/rt/webrt?serial_num=48&display=History

As far as I remember the reason was the possibility to
relocate the binaries.

Markus

Glynn Clements wrote:

> (2) The monitorcap file did not work until I added full paths.

This is due to:

        date: 2002/01/04 17:04:17; author: andreas; state: Exp; lines: +14 -14
        removed absolute paths in monitorcap file

in:

        src/display/devices/HTMLMAP/Gmakefile
        src/display/devices/HTMLMAP/moncap.entry
        src/display/devices/PNGdriver/Gmakefile
        src/display/devices/PNGdriver/moncap.entry
        src/display/devices/monitorcap/Gmakefile
        src/display/devices/monitorcap/monitorcap

Andreas: was there a specific reason for this change? It won't work
with FIFOs (and the field is ignored when using sockets).

sorry, i can't remember why i removed the absolute paths. But i suspect
it was because the install script does not replace the paths, so it is
not relocatable with absolute paths.
IMHO the binary installation script does not modify the paths, so the
package would'nt be relocatable with absolute paths.

The other question is why FIFOs are needed in this case.

Andreas

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850