On Sat, 16 Dec 2000 10:16:27 -0800 (PST), Ti Kan wrote:

>On my Linux machine 0.92.0 compiled perfectly all the way to the end.

:-)
This is a kind of standard environment ...
But I can ensure that it usually builds also on 1-2 other operating systems ...

>On my UnixWare 2.1.2 machine, though, it bombs while compiling mwm.
>This happens when I point configure to use the UnixWare X11R5 headers
>or the X11R6.3 headers.  It successfully compiles a bunch of files, then
>fails at mwm.c:
>
>-------------------------------
>gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include/Motif-1.2    
>-I../../../include/Motif-1.2             
-I/usr/X11R6/include            -DMWM_DDIR=\"/usr/local/lib/X11/mwm\"           
-DXLIB_PATH=\"/usr/X11R6/lib\"         -DXINCL_PATH=\"/usr/X11R6/include\"    -O2 
-I/usr/X11R6/include  
-c mwm.c
>In file included from /usr/X11R6/include/X11/Xproto.h:78,
>                 from mwm.c:77:
>/usr/X11R6/include/X11/Xprotostr.h:56: conflicting types for `gethostname'
>/usr/local/lib/gcc-lib/i386-pc-sysv4.2uw2.1.2/2.95.2/include/unistd.h:154: previous 
>declaration of 
`gethostname'
>/usr/X11R6/include/X11/Xprotostr.h: In function `gethostname':
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>/usr/X11R6/include/X11/Xprotostr.h:58: warning: structure defined inside parms
>/usr/X11R6/include/X11/Xprotostr.h:58: storage class specified for parameter 
>`xSegment'
>/usr/X11R6/include/X11/Xprotostr.h:64: warning: structure defined inside parms
>/usr/X11R6/include/X11/Xprotostr.h:64: storage class specified for parameter `xPoint'
>/usr/X11R6/include/X11/Xprotostr.h:69: warning: structure defined inside parms
>/usr/X11R6/include/X11/Xprotostr.h:69: storage class specified for parameter 
>`xRectangle'
>/usr/X11R6/include/X11/Xprotostr.h:77: warning: structure defined inside parms
>/usr/X11R6/include/X11/Xprotostr.h:77: storage class specified for parameter `xArc'
>In file included from mwm.c:77:
[...]
>gmake[3]: *** [mwm.o] Error 1
>gmake[3]: Leaving directory 
>`/mnt/bazooka/home/ti/src/X11/lesstif-0.92.0.uw2/clients/Motif-1.2/mwm'
>gmake[2]: *** [all-recursive] Error 1
>gmake[2]: Leaving directory 
>`/mnt/bazooka/home/ti/src/X11/lesstif-0.92.0.uw2/clients/Motif-1.2'
>gmake[1]: *** [all-recursive] Error 1
>gmake[1]: Leaving directory `/mnt/bazooka/home/ti/src/X11/lesstif-0.92.0.uw2/clients'
>gmake: *** [all-recursive] Error 1
>-------------------------------
>
>Somehow I think this is a local problem, but looking at the offending
>header files I can't see anything glaringly wrong...  Xproto.h and Xprotostr.c
>are used elsewhere in the compile and it doesn't seem to fail?

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

Anyway I agree it's a local problem and to actually see what's wrong
you might have to produce a "gcc -E ..." output and look at this.

?
Arggghhhh

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


---
Alexander Mai
[EMAIL PROTECTED]


Reply via email to