Alexander Mai writes:
> Well, somehow it might be the issue with gethostname.
> Why is there a function gethostname() within a header??

There is no function within a header, but the unistd.h on my machine
has a prototype as follows:

extern int gethostname(char *, size_t);

but mwm's fallback declaration has the second argument as int, producing a
type conflict error.

At any rate, I shouldn't be getting into this fallback.  On many SVR4-based
boxes gethostname() and many other networking service functions are
in the libsocket and libnsl libraries, so perhaps configure should do some
additional checks and do the right thing.
Just about any networking commands on UnixWare (as well as Solaris and
other SVR4 based platforms) need -lsocket -lnsl.

I tried forcing #define HAVE_GETHOSTNAME in LTconfig.h and adding
"-lICE -lSM -lsocket -lnsl" to the clients/mwm/Makefile and now mwm compiles
fine.  I think -lICE -lSM should also be something that configure would
automagically put in...

> ?
> Arggghhhh
> 
> There's a typo in mwm.c :-<
> Please try adding a semicolon after the "fallback" prototype for gethostname() in 
>mwm.c!

Yup, that's definitely a typo in mwm.c.

-Ti (author of xmcd, xmmix)
-- 
    ///  Ti Kan                Vorsprung durch Technik
   ///   AMB Research Laboratories, Sunnyvale, CA. USA
  ///    [EMAIL PROTECTED]
 //////  http://www.ibiblio.org/tkan/
///

Reply via email to