From: rolfl@ulrik.uio.no (Rolf Lindgren)
Subject: Installing Ghostview 1.4 on Ultrix 4.2C
Organization: Institutt for Humanistisk Informatikk, Blindern, Oslo, Norway
Distribution: gnu
Date: Thu, 15 Oct 1992 15:05:14 GMT

I'm trying to install Ghostview 1.4 on the above configuration. Make
(and lint!) choke and give the following:


	MAKE:

This is what I get, after fiddeling somewhat with the makefile:

bash$ make
cc  -O2 -lm -lc  -I/usr/include -I/local/include     -DNON_BLOCKING_IO  -DSELFILE -DHOME_ON_DEMAND -DXAW_BC   -c main.c -o main.o
cpp: warning /local/include/X11/Xaw/Form.h:76: XtNtop redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:58: XtNforceBars redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:59: XtNallowHoriz redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:60: XtNallowVert redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:61: XtNuseBottom redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:62: XtNuseRight redefined
cpp: warning /local/include/X11/Xaw/Box.h:60: XtNhSpace redefined
cpp: warning /local/include/X11/Xaw/Box.h:61: XtNvSpace redefined
cpp: warning /local/include/X11/Xaw/Label.h:69: XtNforeground redefined
cpp: warning /local/include/X11/Xaw/Label.h:70: XtNlabel redefined
cpp: warning /local/include/X11/Xaw/Label.h:71: XtNfont redefined
cpp: warning /local/include/X11/Xaw/Text.h:96: XtNselection redefined
ccom: Error: main.c, line 62: syntax error
           XtOffsetOf(AppResources, show_title),        "Immediate", (XtPointer)1},
      ---------------------------^
ccom: Error: main.c, line 62: syntax error
           XtOffsetOf(AppResources, show_title),        "Immediate", (XtPointer)1},
      --------------------------------------------------------------------------^
ccom: Error: main.c, line 64: syntax error
           XtOffsetOf(AppResources, show_date),         "Immediate", (XtPointer)1},
      --------------------------------------^
ccom: Error: main.c, line 64: redeclaration of XtOffsetOf
           XtOffsetOf(AppResources, show_date),         "Immediate", (XtPointer)1},
      ----------------------------------------^
ccom: Error: main.c, line 64: syntax error
           XtOffsetOf(AppResources, show_date),         "Immediate", (XtPointer)1},
      --------------------------------------------------------------------------^
ccom: Error: main.c, line 66: syntax error
           XtOffsetOf(AppResources, show_locator),      "Immediate", (XtPointer)1},
      -----------------------------------------^
ccom: Error: main.c, line 66: redeclaration of XtOffsetOf
           XtOffsetOf(AppResources, show_locator),      "Immediate", (XtPointer)1},
      -------------------------------------------^
(ccom): main.c, line 66: cannot recover from earlier errors: goodbye!
           XtOffsetOf(AppResources, show_locator),      "Immediate", (XtPointer)1},
      --------------------------------------------------------------------------^
make: *** [main.o] Error 1

	LINT:

Lint essentially agrees that something is amiss in line 62:

bash$ lint -I/usr/include -I/local/include main.c
cpp: warning /local/include/X11/Xaw/Form.h:76: XtNtop redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:58: XtNforceBars redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:59: XtNallowHoriz redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:60: XtNallowVert redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:61: XtNuseBottom redefined
cpp: warning /local/include/X11/Xaw/Viewport.h:62: XtNuseRight redefined
cpp: warning /local/include/X11/Xaw/Box.h:60: XtNhSpace redefined
cpp: warning /local/include/X11/Xaw/Box.h:61: XtNvSpace redefined
cpp: warning /local/include/X11/Xaw/Label.h:69: XtNforeground redefined
cpp: warning /local/include/X11/Xaw/Label.h:70: XtNlabel redefined
cpp: warning /local/include/X11/Xaw/Label.h:71: XtNfont redefined
cpp: warning /local/include/X11/Xaw/Text.h:96: XtNselection redefined

main.c
==============
(62)  syntax error
(62)  syntax error
(64)  syntax error
(64)  redeclaration of XtOffsetOf
(64)  syntax error
(66)  syntax error
(66)  redeclaration of XtOffsetOf
(ccom): (66)  
        **** cannot recover from this error ****

Fatal error in: /usr/lib/cmplrs/cc/cpp Broken pipe 


==============
name defined but never used
    dot_bits    dot(3)
    menu16_bits         menu16(3)
    tie_fighter_bits    tie_fighter(3)
    version     main.c(58)
    resources           main.c(60)
    show_title          main.c(62)
    XtPointer           main.c(62)

	



Any and all suggestions are welcome, 

Thank you,

-roffe





--
       Rolf Lindgren           |       "The opinions expressed above are
       616 Bjerke Studentheim  |        not necessarily those of anyone"
       N-0589 OSLO 5           |           rolf.lindgren@usit.uio.no 

Newsgroups: gnu.ghostscript.bug