zsh-workers
 help / color / mirror / code / Atom feed
* Compile problems on HP-UX 11.00
@ 1998-10-23 16:59 Richard Whittaker
  1998-10-23 17:37 ` benjamin
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Whittaker @ 1998-10-23 16:59 UTC (permalink / raw)
  To: zsh-workers

Hi there.. 

I'm trying to compile ZSH on an HP-UX 11.00 machine with stock everything,
and I'm getting the following warnings with each .c files that the machine
tries to compile:

        cc -c -I.  -DHAVE_CONFIG_H -O  -o watch.o watch.c
cpp: "/usr/include/sys/stdsyms.h", line 15: warning 2001: Redefinition of
macro _INCLUDE_POSIX_SOURCE.
cpp: "/usr/include/sys/stdsyms.h", line 19: warning 2001: Redefinition of
macro _INCLUDE_XOPEN_SOURCE.
cpp: "/usr/include/sys/stdsyms.h", line 22: warning 2001: Redefinition of
macro _INCLUDE_HPUX_SOURCE.



Then the whole works dies miserably with the following death message:

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.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Has anyone run into this before?.. I tried a search of the list archives,
and have not found any references to HP-UX 11, which is why I'm resorting
to posting to the list.. 

Any help would be much appreciated!

Thanks,
Richard W. 


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

* Re: Compile problems on HP-UX 11.00
  1998-10-23 16:59 Compile problems on HP-UX 11.00 Richard Whittaker
@ 1998-10-23 17:37 ` benjamin
  1998-10-23 18:02   ` Kevin Sullivan
  0 siblings, 1 reply; 4+ messages in thread
From: benjamin @ 1998-10-23 17:37 UTC (permalink / raw)
  To: Richard Whittaker; +Cc: zsh-workers

I ran into the same thing with what I think is an HP-UX 10.20 machine.
My solution was to comment out lines 88-98 in Src/watch.c .. not a
great fix, but it eliminated the problem. Althought this machine has
<utmpx.h>, struct utmpx (or for that matter, anything else!) doesn't
have any definition of ut_xtime. However, since HP's aren't my primary
machines, a simple hack made me happy enough.

Hope this helps.. and maybe this can be fixed at some point..

Ben

Richard Whittaker said:
> Hi there.. 
> 
> I'm trying to compile ZSH on an HP-UX 11.00 machine with stock everything,
> and I'm getting the following warnings with each .c files that the machine
> tries to compile:
> 
>         cc -c -I.  -DHAVE_CONFIG_H -O  -o watch.o watch.c
> cpp: "/usr/include/sys/stdsyms.h", line 15: warning 2001: Redefinition of
> macro _INCLUDE_POSIX_SOURCE.
> cpp: "/usr/include/sys/stdsyms.h", line 19: warning 2001: Redefinition of
> macro _INCLUDE_XOPEN_SOURCE.
> cpp: "/usr/include/sys/stdsyms.h", line 22: warning 2001: Redefinition of
> macro _INCLUDE_HPUX_SOURCE.
> 
> 
> 
> Then the whole works dies miserably with the following death message:
> 
> 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.
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1
> 
> Stop.
> 
> Has anyone run into this before?.. I tried a search of the list archives,
> and have not found any references to HP-UX 11, which is why I'm resorting
> to posting to the list.. 
> 
> Any help would be much appreciated!
> 
> Thanks,
> Richard W. 
> 


-- 
Ben Korvemaker
benjamin@cs.ualberta.ca
	Friends help you move.  Real friends help you move bodies.


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

* Re: Compile problems on HP-UX 11.00
  1998-10-23 17:37 ` benjamin
@ 1998-10-23 18:02   ` Kevin Sullivan
  1998-10-23 19:25     ` Kevin Sullivan
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Sullivan @ 1998-10-23 18:02 UTC (permalink / raw)
  To: benjamin; +Cc: richard, zsh-workers


I had the same problem however, I changed line Src/watch.c
from:
< # define ut_time ut_xtime
to:
> # define ut_time ut_tv.tv_sec 

Again.. I am sure there is a better way. This is just what I 
did. 

  -Kevin

benjamin@cs.ualberta.ca writes:
> I ran into the same thing with what I think is an HP-UX 10.20 machine.
> My solution was to comment out lines 88-98 in Src/watch.c .. not a
> great fix, but it eliminated the problem. Althought this machine has
> <utmpx.h>, struct utmpx (or for that matter, anything else!) doesn't
> have any definition of ut_xtime. However, since HP's aren't my primary
> machines, a simple hack made me happy enough.
> 
> Hope this helps.. and maybe this can be fixed at some point..
> 
> Ben
> 
> Richard Whittaker said:
> > Hi there.. 
> > 
> > I'm trying to compile ZSH on an HP-UX 11.00 machine with stock everything,
> > and I'm getting the following warnings with each .c files that the machine
> > tries to compile:
> > 
> >         cc -c -I.  -DHAVE_CONFIG_H -O  -o watch.o watch.c
> > cpp: "/usr/include/sys/stdsyms.h", line 15: warning 2001: Redefinition of
> > macro _INCLUDE_POSIX_SOURCE.
> > cpp: "/usr/include/sys/stdsyms.h", line 19: warning 2001: Redefinition of
> > macro _INCLUDE_XOPEN_SOURCE.
> > cpp: "/usr/include/sys/stdsyms.h", line 22: warning 2001: Redefinition of
> > macro _INCLUDE_HPUX_SOURCE.
> > 
> > 
> > 
> > Then the whole works dies miserably with the following death message:
> > 
> > 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.
> > *** Error exit code 1
> > 
> > Stop.
> > *** Error exit code 1
> > 
> > Stop.
> > *** Error exit code 1
> > 
> > Stop.
> > 
> > Has anyone run into this before?.. I tried a search of the list archives,
> > and have not found any references to HP-UX 11, which is why I'm resorting
> > to posting to the list.. 
> > 
> > Any help would be much appreciated!
> > 
> > Thanks,
> > Richard W. 
> > 
> 
> 
> -- 
> Ben Korvemaker
> benjamin@cs.ualberta.ca
> 	Friends help you move.  Real friends help you move bodies.
> 


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

* Re: Compile problems on HP-UX 11.00
  1998-10-23 18:02   ` Kevin Sullivan
@ 1998-10-23 19:25     ` Kevin Sullivan
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Sullivan @ 1998-10-23 19:25 UTC (permalink / raw)
  To: benjamin, richard, zsh-workers


I left out some critical information in my explanation of the change I 
made. Dooh.. I am made this change in version zsh-3.1.4 with no
patches.  In any event here is a context diff I made of the file
Src/watch.c:

diff -c original_watch.c changed_watch.c
*** original_watch.c     Sun May 31 09:08:15 1998
--- changed_watch.c   Wed Jun 17 08:12:19 1998
***************
*** 88,94 ****
  #if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE)
  # define WATCH_STRUCT_UTMP struct utmpx
  # undef ut_time
! # define ut_time ut_xtime
  # define WATCH_UTMP_FILE REAL_UTMPX_FILE
  # ifdef REAL_WTMPX_FILE
  #  define WATCH_WTMP_FILE REAL_WTMPX_FILE
--- 88,94 ----
  #if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE)
  # define WATCH_STRUCT_UTMP struct utmpx
  # undef ut_time
! # define ut_time ut_tv.tv_sec /* kevins */
  # define WATCH_UTMP_FILE REAL_UTMPX_FILE
  # ifdef REAL_WTMPX_FILE
  #  define WATCH_WTMP_FILE REAL_WTMPX_FILE


Kevin Sullivan writes:
> 
> I had the same problem however, I changed line Src/watch.c
> from:
> < # define ut_time ut_xtime
> to:
> > # define ut_time ut_tv.tv_sec 
> 
> Again.. I am sure there is a better way. This is just what I 
> did. 
> 
>   -Kevin
> 


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

end of thread, other threads:[~1998-10-23 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-23 16:59 Compile problems on HP-UX 11.00 Richard Whittaker
1998-10-23 17:37 ` benjamin
1998-10-23 18:02   ` Kevin Sullivan
1998-10-23 19:25     ` Kevin Sullivan

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).