From: Roberto@sunsci.cern.ch (Roberto Divia CERN-ECP/DS +41 22 767 4994)
Subject: Re: GNU Netfax
Organization: CERN - European Laboratory for Particle Physics
Date: Mon, 9 Nov 1992 17:30:27 GMT

Well, I have something running. The daemon executes the requests as it should.
Only problem: I cannot send faxes only to other faxes. The transmission
aborts in the middle of the G3 dump with the remote fax going in "error"
state. Strange but true, I can fax to other computers. Same problem
receiving faxes. No idea what's wrong..

Some hints for the installation:

Hint 1: as root, execute faxspooler -l8& at startup. The output
from the daemon is almost self-explanatory.

Hint 2: follow the instructions of the INSTALL file, combined with the
README and some common sense. I have created a small script to install
the files:

#! /bin/csh -v
install cmd/fax/fax /usr/local/bin
install cmd/faxenq/faxenq /usr/local/bin
install cmd/faxmail/faxmail /usr/local/bin
install cmd/faxps/faxps /usr/local/bin
install cmd/faxq/faxq /usr/local/bin
install cmd/faxrm/faxrm /usr/local/bin
install cmd/faxsend/faxsend /usr/local/bin
install cmd/faxspooler/faxspooler /usr/local/bin
install ps/*.ps /usr/local/lib/fax
install script/*.sh /usr/local/lib/fax

Note my choice of library and paths (almost the default ones). The various
makefiles need an install target and their dependencies are not very
good. Until now, for every modification made to one module I have rebuilt
the whole package (2 minutes).

Hint 3: if you dump the faxes in the /com/fax area (as suggested by the
standard configuration), remember to create the directory.

Hint 4: change cmd/faxps/faxps.c line 187 from
	ps_file = mktemp("/tmp/faxdXXXXXX");
into
        char template[] = "/tmp/faxdXXXXXX";
        ps_file = mktemp(template);
Without this mod, "fax" core dumps (i think that mktemp tries to change
the read-only template string).

Hint 5: in lib/libutil/alarm.c change the references of cfree into free.

Without the points 4 and 5 the package doesn`t compile. Without point
3 it doesn't run. Point 2 is to move the files in the expected areas.
Without point 1, all the commands abort with "can't connect to fax daemon"
status. Ah, I have also installed the pbmplus package and changed the
path of the file script/ppmtog3.sh (it expected the pnmcut and pbmtog3
in /usr/local/bin while I have them in the X11 area). Without the
pbmplus you cannot manipulate the G3 files...

To verify the protocol, I have changed lib/libfax/gen.c in the line
setting M0 (speaker off) into M2L2 (speaker always on at medium
volume), a sort of "checkpoint" in the library. This way I can "hear"
how things are going.

That's basically it. I have gcc 2.3.1 and fax-3.2.1. Ghostscript is at
version 2.4. The hardware setup includes a SPARCstation IPX connected to a
SupraFAXModem plus. I have verified the modem setup via "tip" and some read
through the modem user manual. I am still looking for a description of the
Class 2 Fax software (the one used by the package to talk to the modem).
For the time being I extract what I can from the code, written in a very
good style (congratulations). I am working on the library during my spare
time. Don't expect too much! If I'll get something reasonable, I`ll send
the results to the net.
--- 
|   Roberto Divia`      | Love at  first sight  is one of the greatest |
|   =============       | labor-saving devices the world has ever seen |
|  CERN :  European Laboratory for Particle Physics,  1211  Geneva  23 |
|  Switzerland (CH)                                                    |
Newsgroups: gnu.misc.discuss