Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Help with compiling 3.1.4 on HPUX 10.20



On Fri, 21 Aug 1998, Matthew Lovell wrote:

> Hi,
> 
> I grabbed zsh-3.1.4 earlier today and have tried compiling under both
> gcc and HP's ansic.  I seem to have some header problem, but I'm at
> somewhat of a loss.
> 
> I would appreciated any help/advice you could offer.
> 
>   cc: "watch.c", line 130: error 1588: "ut_xtime" undefined.
>   cc: "watch.c", line 130: error 1531: Invalid member of struct or union.
>   cc: "watch.c", line 144: error 1531: Invalid member of struct or union.
>   cc: "watch.c", line 144: error 1563: Expression in if must be scalar.
>   cc: "watch.c", line 158: error 1531: Invalid member of struct or union.
>   cc: "watch.c", line 417: error 1588: "ut_xtime" undefined.
>   cc: "watch.c", line 417: error 1531: Invalid member of struct or union.
>   cc: "watch.c", line 417: error 1531: Invalid member of struct or union.
>   cc: "watch.c", line 417: error 1563: Expression in if must be scalar.
>   cc: "watch.c", line 419: error 1531: Invalid member of struct or union.
>   cc: "watch.c", line 419: error 1531: Invalid member of struct or union.     
> 
> Thanks!
> 
> -- 
> 
> Matthew Lovell                       voice: (970) 898-6264 
> Hewlett-Packard FSL                    fax: (970) 898-2510 
> 3404 E. Harmony Rd. MS A0         location: 3UR4
> Fort Collins, CO 80528-9599         mailto:lovell@xxxxxxxxx
> 
> 

I had this a few months ago when I first got 3.1.4 compiled under HP-UX
10.20; I do not remember what did I do at the time; I suspect I just used
gcc instead of HP cc ; I don't quite managed to grasp the sequence of
#if's and #defines just before the redefinition of ut_time as ut_xtime;
however, brute 

#undef REAL_UTMPX_FILE

before 

#if !defined(WATCH_STRUCT_UTMP) && defined(REAL_UTMPX_FILE) &&
         defined(HAVE_STRUCT_UTMPX)

sorted the problem for me. ( I haven't tested the functionality provided
by this part of the shell, though; it seems to work OK. )

Also I can't fathom why when I compiled zsh-3.1.4 today for this test both
with gcc 2.8.1 and cc, I got over 700k stripped executables, while on the
1st of June my executable was just 548k...

-------------------------that's my version of the compiler-----------
marge# what /usr/bin/cc
/tmp/zsh-3.1.4/Src
/usr/bin/cc:
              LINT A.10.32.16 CXREF  A.10.32.16
        HP92453-01 A.10.32.17 HP C Compiler
         /usr/lib/libc: $Revision: 76.3 $
--------------------------------------------------------------------

Regards, 

Chavdar Ivanov           | Talbot Way, Small Heath Business Park
Delcam UK Limited        | Birmingham B10 0HJ, United Kingdom
Customer Support Dept.   | (+44)121-6831014




Messages sorted by: Reverse Date, Date, Thread, Author