Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Trying to install XV 2.21 on DEC Alpha --- problems
@ 1993-06-29 19:42 Go Ahead Reverse My day!
  1993-06-30 13:02 ` Peter A Krauss
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Go Ahead Reverse My day! @ 1993-06-29 19:42 UTC (permalink / raw)


The company that I'm working for just received a News Alpha 500/500S AXP, 
and I decided to play around before anyone took up an serious space on it.
I got XV 3.00a but it was way to huge, and so I decided to try out 2.21
instead.  I was able to complie the Jpeg and Tiff library's without much
trouble.  At first it took me some time to figure out how to use the Imake-
file.  I did use the orginal makefile that came with it but when that didn't
work I tried the xmkmf to get a Makefile that I thought would be compabtible
with tthe Alpha;  unfortunately it still produced the same error:

Script started on Tue Jun 29 10:06:13 1993
cc -c -O          -DHAVE_JPEG -Ijpeg    -DHAVE_FSQUICK  -DHAVE_TIFF -Itiff -DHAVE_PDS -o xv.o xv.c
/usr/lib/cmplrs/cc/cfe: Error: xv.c, line 2479: 'db' undefined, reoccurrences will not be reported
   (void) XrmGetResource(theDisp->db, q_name, q_class, &type, &result);
 -------------------------------^
/usr/lib/cmplrs/cc/cfe: Error: xv.c, line 2479: member of structure or union required
   (void) XrmGetResource(theDisp->db, q_name, q_class, &type, &result);
 ---------------------------------^
*** Exit 1
Stop.
# 
script done on Tue Jun 29 10:06:27 1993

Any ideas on what might be causing this error and how to fix it....This about
how far my unix and programming knowledge goes :']

ps. It's version 1.2 OSF (I think)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to install XV 2.21 on DEC Alpha --- problems
  1993-06-29 19:42 Trying to install XV 2.21 on DEC Alpha --- problems Go Ahead Reverse My day!
@ 1993-06-30 13:02 ` Peter A Krauss
  1993-06-30 18:38 ` Ray Bellis
  1993-06-30 22:41 ` Mike Iglesias
  2 siblings, 0 replies; 5+ messages in thread
From: Peter A Krauss @ 1993-06-30 13:02 UTC (permalink / raw)


yshah@mica.meddean.luc.edu (Go Ahead Reverse My day!) writes:

|>Script started on Tue Jun 29 10:06:13 1993
|>cc -c -O          -DHAVE_JPEG -Ijpeg    -DHAVE_FSQUICK  -DHAVE_TIFF -Itiff -DHAVE_PDS -o xv.o xv.c
|>/usr/lib/cmplrs/cc/cfe: Error: xv.c, line 2479: 'db' undefined, reoccurrences will not be reported
|>   (void) XrmGetResource(theDisp->db, q_name, q_class, &type, &result);
|> -------------------------------^
|>/usr/lib/cmplrs/cc/cfe: Error: xv.c, line 2479: member of structure or union required
|>   (void) XrmGetResource(theDisp->db, q_name, q_class, &type, &result);
|> ---------------------------------^
|>*** Exit 1
|>Stop.
|># 
|>script done on Tue Jun 29 10:06:27 1993

|>Any ideas on what might be causing this error and how to fix it....This about
|>how far my unix and programming knowledge goes :']

Change it to 

  (void) XrmGetResource(((_XPrivDisplay)theDisp)->db, q_name, ...
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

mfg  Peter
--
Peter A. Krauss                 Peter.A.Krauss@regent.e-technik.tu-muenchen.de
Lehrstuhl fuer                                                    Institute of
Rechnergestuetztes Entwerfen                      Electronic Design Automation
Technische Universitaet Muenchen       Technical University of Munich, Germany


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to install XV 2.21 on DEC Alpha --- problems
  1993-06-29 19:42 Trying to install XV 2.21 on DEC Alpha --- problems Go Ahead Reverse My day!
  1993-06-30 13:02 ` Peter A Krauss
@ 1993-06-30 18:38 ` Ray Bellis
  1993-06-30 21:54   ` Dan Mosedale
  1993-06-30 22:41 ` Mike Iglesias
  2 siblings, 1 reply; 5+ messages in thread
From: Ray Bellis @ 1993-06-30 18:38 UTC (permalink / raw)


In article <20q5vt$fbm@mica.meddean.luc.edu> yshah@mica.meddean.luc.edu (Go Ahead Reverse My day!) writes:

I think you have to add `-DXLIB_ILLEGAL_ACCESS' to the defines
in the Imakefile.  DEC use their own version of X11R5 which has
slightly different #include files.  Some parts of the `Display'
structure are missing, and others (which shouldn't be used by
application programmers) are #ifdef'd out by default.  These
can be reenabled using the above #define.

Ray.
--
------------------------------------------------------------------------------
R. P. Bellis				E-Mail:	<rpb@psy.ox.ac.uk>
Dept. of Experimental Psychology	Whois:	(RB83)
University of Oxford			Tel:	+44 865 271419
South Parks Road			Fax:	+44 865 310447
Oxford OX1 3UD
------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to install XV 2.21 on DEC Alpha --- problems
  1993-06-30 18:38 ` Ray Bellis
@ 1993-06-30 21:54   ` Dan Mosedale
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Mosedale @ 1993-06-30 21:54 UTC (permalink / raw)


rpb@psy.ox.ac.uk (Ray Bellis) writes:
>
>I think you have to add `-DXLIB_ILLEGAL_ACCESS' to the defines
>in the Imakefile.  DEC use their own version of X11R5 which has
>slightly different #include files.  Some parts of the `Display'

Are this (and other #define's like it, if there are such) documented
somewhere?  For those of us porting X stuff, this could be very
handy...
-- 
Dan Mosedale, Systems Admin            Email: mosedale@genome.Stanford.EDU
Stanford Genome Sequencing Center      


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Trying to install XV 2.21 on DEC Alpha --- problems
  1993-06-29 19:42 Trying to install XV 2.21 on DEC Alpha --- problems Go Ahead Reverse My day!
  1993-06-30 13:02 ` Peter A Krauss
  1993-06-30 18:38 ` Ray Bellis
@ 1993-06-30 22:41 ` Mike Iglesias
  2 siblings, 0 replies; 5+ messages in thread
From: Mike Iglesias @ 1993-06-30 22:41 UTC (permalink / raw)


In article <20q5vt$fbm@mica.meddean.luc.edu> yshah@mica.meddean.luc.edu (Go Ahead Reverse My day!) writes:
>
>  [problems with building xv deleted]
>
>Any ideas on what might be causing this error and how to fix it....This about
>how far my unix and programming knowledge goes :']

Get the copy of xv from ftp.ncsa.uiuc.edu (in /DEC_Alpha).  That one builds
on our Alpha 3000/300, although I had to fix one of the files.  Use
the patch below.


Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
University of California, Irvine     BITNET:      iglesias@uci
Office of Academic Computing         uucp:        ...!ucbvax!ucivax!iglesias
Distributed Computing Support        phone:       (714) 856-6926


*** xvtiffwr.c.dist	Wed Jun 30 15:40:24 1993
--- xvtiffwr.c	Wed Jun 30 10:42:01 1993
***************
*** 6,11 ****
--- 6,14 ----
   * WriteTIFF(fp,pic,w,h,r,g,b,numcols,style,raw,fname)
   */
  
+ #define LONG int
+ #define U_LONG unsigned int
+ 
  #include "tiffio.h"
  
  #ifndef _VA_LIST


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1993-06-30 22:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-06-29 19:42 Trying to install XV 2.21 on DEC Alpha --- problems Go Ahead Reverse My day!
1993-06-30 13:02 ` Peter A Krauss
1993-06-30 18:38 ` Ray Bellis
1993-06-30 21:54   ` Dan Mosedale
1993-06-30 22:41 ` Mike Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox