CProlog for a HP 9000 running HP-UX 
Author Message
 CProlog for a HP 9000 running HP-UX

I am naively trying to compile CProlog 1.5 on the Hewlett-Packard HP 9000
which runs HP-UX.  HP-UX is a System V based Unix. The HP-UX C compiler chokes
on several constructions that the Mt. Xinu (BSD) C-compiler allows.

Can anyone tell me where I can find a CProlog that will compile on a System V
machine, or even better under HP-UX?  Can anyone tell me where I can find a
more recent version of CProlog?

I am not sure why the BSD C compiler compiles the code that the HP-UX compiler
chokes on.  As far as I can see the code is incorrect.  Basically a variable
that is defined as 'pointer to a pointer' is dereferenced.  E.G.:

/* The original EMAS Prolog in IMP relies too much on pointers being
   just addresses, independently of the type pointed to, for me to be
   able to do anything about it. To help satisfy the compiler's view
   of typing, addresses are objects of type PTR, which are then cast
   into the appopriate types.
*/
typedef unsigned **PTR;
static  PTR f, d, b, k, k1, y, p, l, arg1;
 .......
        if (k->NextVar == NULL ||
            (SC(k->NextVar,>=,pauxstk) && SC(k->NextVar,<,ptr))) {
            k->VarValue += rglb;
            if (k->NextVar) k->NextVar += rauxstk;
            k += k->VarLen;
        }

In the above code fragment the compiler complains about dereferencing the
variable k.  ('Cannot select field of non-structure.' and 'Incompatible types
in cast.') SC is a macro that does a signed-comparison between the 1st and 3rd
arguements.

                                                   Thank you,
                                                   Anne Louise Gockel
                                                   Cornell Computer Services




Wed, 17 Feb 1993 13:51:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Oberon-System for HP-9000 (HP-UX 8.07)

2. Problems with Alsys Ada + HP 9000/800 + HP-UX 7.0

3. Tk4.b1 on a HP 9000/380, hp-ux 9.03

4. Cannot install TCL 8.0.4 on HP-9000 server (model 811) running HPUX 11.00

5. HP - UX Fortran 9000 LaPack

6. Problem compiling tree-3.2.6 on HP-UX 9.0.1 9000/720

7. expect 4.1 for hp-ux 8.0 on 9000/425

8. HP Server VS. HP 9000 Series

9. Help with Elk on HP 425t running HP-UX 8.0

10. Are Threads or Pthreads supported in HP-UX and Python on HP-UX :)

11. Tk/Tcl for the HP-9000 (HPUX)

12. Build problems on HP-UX with HP C compiler

 

 
Powered by phpBB® Forum Software