Subject: HylaFAX woes
To: None <current-users@NetBSD.ORG>
From: Rob Healey <rhealey@kas.helios.mn.org>
List: current-users
Date: 03/06/1995 00:32:36
Question for any port that has gotten HylaFax to run:
Did you get faxgetty to run? I'm on the Amiga m68k port to be specific,
using gcc 2.6.3 and libg++-2.6.2. It appears that the fax getty
code passes an array of structures to generic routines which then
choke since the original array structure data doesn't jibe with the
structure it's cast to. i.e.
struct foo {
char * name
mode_t p
mode_t def
}
is the original structure that is passed to a helper routine as
a void pointer. This pointer is then cast to a structure that
looks like:
struct baz {
char * name
void * p
void * def
}
Looks harmless enough but mode_t is a 16 bit quantity in NetBSD
and a void * is a 32 bit quantity. Thus pointer math no workee.
Specifically foo is a filemode structure in ServerConfig.c++ and
baz is a tag structure in FaxConfig.c++.
Any ideas? Is C++ supposed to magically handle the type conversions
from filemode*->void*->tag* ?
-Rob