home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / misc / discuss / 4050 < prev    next >
Encoding:
Text File  |  1992-12-20  |  2.7 KB  |  87 lines

  1. Newsgroups: gnu.misc.discuss
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!newsserver.technet.sg!swispl
  3. From: swispl@solomon.technet.sg (SW International)
  4. Subject: GS 2.52 on ICL DRS6000 ?
  5. Message-ID: <BzG0D6.1BH@newsserver.technet.sg>
  6. Sender: news@newsserver.technet.sg
  7. Nntp-Posting-Host: solomon.technet.sg
  8. Organization: TECHNET, Singapore
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. Date: Fri, 18 Dec 1992 06:51:06 GMT
  11. Lines: 74
  12.  
  13.  
  14. Hello everyone !
  15.  
  16. We have here a DRS6000 from ICL, running SVR4:
  17. # uname -a
  18. unix unicorn 4.0 5.1.04 DRS 6000 sparc
  19.  
  20. I have tried building Ghostscript 2.5.2 on this machine using the
  21. SVR$ settings. I have several problems:
  22.  
  23. a) In gdevepsn.c (line 101 and 107) I get an Initialiser doesn't fit
  24.     warning, showing values of 131 and 168. They are assigned
  25.     to char, so I assume that char is *signed*?
  26.  
  27. b) In iinit.c, there are a few places where it seems that a constant
  28.     variable is assigned to. I don't have my ANSI-Standards around,
  29.     but this looks wrong to me:
  30.  
  31. ---- iinit.c ----
  32. [...]
  33.    163    /* Run the initialization procedures of the individual operator files. */
  34.    164    void
  35.    165    zop_init()
  36.    166    {    op_def_ptr _ds *tptr;
  37.    167        op_def_ptr def;
  38.         ^^^^^^^^^^op-def_ptr is typedef'd const in opdef.h
  39.    168        for ( tptr = op_defs_all; *tptr != 0; tptr++ )
  40.    169           {    for ( def = *tptr; def->oname != 0; def++ ) ;
  41.                               ^^^ assigned here             ^^^^
  42.    170            if ( def->proc != 0 )
  43.    171                ((void (*)(P0()))(def->proc))();
  44.    172           }
  45.    173    }
  46.    174    /* Initialize the operator table. */
  47.    175    void
  48.    176    op_init()
  49.    177    {    int count = 1;
  50.    178        op_def_ptr _ds *tptr;
  51.    179        op_def_ptr def;
  52.                 ^^^^^^^^^^^^^^same here
  53.    180        const char _ds *nstr;
  54.    181    
  55.    182        /* Do a first pass just to count the operators. */
  56.    183    
  57.    184        for ( tptr = op_defs_all; *tptr != 0; tptr ++ )
  58.    185         for ( def = *tptr; def->oname != 0; count++, def++ )
  59.                        ^^^^and here
  60. [...]
  61. --------
  62. and some other places.
  63.  
  64.     It looks wrong, but I'm not a ANSI guru, and my H&S is far away...
  65.     My compiler certainly barfs here..
  66.  
  67. c)    The gettimeofday of the DRS6000 only knows one argument, the
  68.     struct time pointer, not the struct timezone one. I can use
  69.     the global timezone variable to get around it, but is there
  70.     a better way?
  71.  
  72.  
  73. So here is my foremost question: Has anyone got GS to run on such
  74. a machine and is willing to share the info?
  75.  
  76. Thx alot
  77.  
  78. Mathias
  79.  
  80. --
  81. SW International Systems Pte Ltd     |  "I've got a plan so cunning 
  82.     14, Science Park Drive           | you could put a tail on it and
  83.     Singapore Science Park           | call it a weasel".. Black Adder
  84.     Singapore 0511                   | 
  85.     Tel: (65) 778-0066               |
  86.     Fax: (65) 777-9401               | swispl@solomon.technet.sg
  87.