zsh-workers
 help / color / mirror / code / Atom feed
* zsh-2.6-beta17 : compiling on SCO - results
@ 1996-05-15  2:15 Peter Bray
  1996-05-15  8:36 ` Jos Backus
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Peter Bray @ 1996-05-15  2:15 UTC (permalink / raw)
  To: zsh-workers; +Cc: Peter Bray


Note : Not list member (zsh-workers)

Greetings,

	I have grabbed beta17 and compiled it on

		SunOS 4.1.3_U1
		Solaris 2.4
		Solaris 2.5
		SCO 3.2v4.2 (Pentium/EISA/1 CPU)

	with ./configure --prefix=/opt/utils using gcc 2.7.2

	The Sun based platforms as expected compile without problem,
but as is usual SCO is another matter.

zsh configuration
-----------------
zsh version           : 2.6-beta17
host operating system : sco3.2v4.2
source code location  : .
compiler              : gcc
compiler flags        : -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2
binary install path   : /opt/utils/bin
man page install path : /opt/utils/man
info install path     : /opt/utils/info

Unfortunately this gives the following when compiling

        gcc -c -I.. -I. -I.  -DHAVE_CONFIG_H -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2 builtin.c
In file included from zsh.h:35,
                 from builtin.c:32:
system.h:114: redefinition of `struct timezone'
In file included from system.h:219,
                 from zsh.h:35,
                 from builtin.c:32:
/usr/include/sys/select.h:41: redefinition of `struct timeval'
builtin.c: In function `bin_kill':
builtin.c:663: warning: left-hand operand of comma expression has no effect
builtin.c: In function `bin_pwd':
builtin.c:872: warning: left-hand operand of comma expression has no effect
builtin.c: In function `bin_dirs':
builtin.c:897: warning: left-hand operand of comma expression has no effect
builtin.c: In function `cd_new_pwd':
builtin.c:1242: warning: left-hand operand of comma expression has no effect
builtin.c: In function `printdirstack':
builtin.c:1271: warning: left-hand operand of comma expression has no effect
builtin.c:1274: warning: left-hand operand of comma expression has no effect
builtin.c: In function `printcompctl':
builtin.c:2212: warning: left-hand operand of comma expression has no effect
builtin.c:2215: warning: left-hand operand of comma expression has no effect
builtin.c:2255: warning: left-hand operand of comma expression has no effect
builtin.c:2259: warning: left-hand operand of comma expression has no effect
builtin.c:2272: warning: left-hand operand of comma expression has no effect
builtin.c:2279: warning: left-hand operand of comma expression has no effect
builtin.c:2282: warning: left-hand operand of comma expression has no effect
builtin.c:2287: warning: left-hand operand of comma expression has no effect
builtin.c:2308: warning: left-hand operand of comma expression has no effect
builtin.c:2311: warning: left-hand operand of comma expression has no effect
builtin.c: In function `printqt':
builtin.c:2336: warning: left-hand operand of comma expression has no effect
builtin.c: In function `fclist':
builtin.c:2631: warning: left-hand operand of comma expression has no effect
builtin.c: In function `bin_times':
builtin.c:5222: warning: left-hand operand of comma expression has no effect
builtin.c:5224: warning: left-hand operand of comma expression has no effect
builtin.c:5226: warning: left-hand operand of comma expression has no effect
builtin.c:5228: warning: left-hand operand of comma expression has no effect
builtin.c: In function `printquoted':
builtin.c:5531: warning: left-hand operand of comma expression has no effect
builtin.c:5534: warning: left-hand operand of comma expression has no effect
builtin.c:5536: warning: left-hand operand of comma expression has no effect
builtin.c:5537: warning: left-hand operand of comma expression has no effect
builtin.c:5539: warning: left-hand operand of comma expression has no effect
builtin.c:5545: warning: left-hand operand of comma expression has no effect
builtin.c:5548: warning: left-hand operand of comma expression has no effect
builtin.c:5549: warning: left-hand operand of comma expression has no effect
builtin.c:5552: warning: left-hand operand of comma expression has no effect
builtin.c:5556: warning: left-hand operand of comma expression has no effect
builtin.c:5557: warning: left-hand operand of comma expression has no effect
builtin.c:5561: warning: left-hand operand of comma expression has no effect
*** Error code 1
 
Stop.
*** Error code 1
 
Stop.


Now am not going to say that I know the cause of the problems, but the 
fix which seemed to work for me is the following

In Src/Makefile change :

CFLAGS   = -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2

to

CFLAGS   = -D__sco -O2

this seems to get rid of the 
 warning: left-hand operand of comma expression has no effect

and in Src/system.h to comment out the following sections :

/* PDB Modification for SCO
#ifdef __sco
struct timezone {
    short minutes;
};
#endif
*/

/* PDB Modification for SCO
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
*/

It would seem that sys/select.h redefines timeval and that timezone is
already defined. I think that some a little more fundamental may be wrong
(ie the configure on SCO) but I thought I share these experiences to
hopely leave someone who knows what they are doing to investiage the real
problems.

Remember this is SCO 3.2v4.2

Regards,
Peter
------------------------------------------------------------------------------
Peter Bray: Intelligent Network Development           Phone : (02) 395 3958
            Network Technology Group - Telstra        Fax   : (02) 395 3225
Street    : Lvl 9, Telecom Plaza, 320 Pitt St, Sydney Email : 
Mail      : Locked Bag 6581, GPO Sydney, NSW, 1100     pbray@ind.tansu.com.au
------------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: zsh-2.6-beta17 : compiling on SCO - results
@ 1996-05-15  9:15 Joachim Reith
  0 siblings, 0 replies; 5+ messages in thread
From: Joachim Reith @ 1996-05-15  9:15 UTC (permalink / raw)
  To: zsh-workers; +Cc: pbray

Hello,

I have the same problem described by Peter, but
on sco3.2v5.0.2 (newer version).

./configure gives me

zsh configuration
-----------------
zsh version           : 2.6-beta17
host operating system : sco3.2v5.0.2
source code location  : .
compiler              : gcc
compiler flags        : -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2
binary install path   : /usr/local/bin
man page install path : /usr/local/man
info install path     : /usr/local/info

the compilation runs until:

        gcc -c -I.. -I. -I.  -DHAVE_CONFIG_H -D__sco  -Wall -Wno-implicit -Wmiss
ing-prototypes -O2 builtin.c
In file included from zsh.h:35,
                 from builtin.c:32:
system.h:114: redefinition of `struct timezone'
*** Error code 1 (bu21)

If I comment out the struct timezone in system.h
(same as Peter):

tedesco@Src> diff system.h system.h-
113c113
< /* #ifdef __sco
---
> #ifdef __sco
117c117
< #endif */
---
> #endif


the compilation runs without any error.


P.S.: gcc --version  2.7-95q4
I don't have problems with 
CFLAGS   = -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2



|>		SCO 3.2v4.2 (Pentium/EISA/1 CPU)
|>
|>	with ./configure --prefix=/opt/utils using gcc 2.7.2
|>
|>	The Sun based platforms as expected compile without problem,
|>but as is usual SCO is another matter.
|>
|>zsh configuration
|>-----------------
|>zsh version           : 2.6-beta17
|>host operating system : sco3.2v4.2
|>source code location  : .
|>compiler              : gcc
|>compiler flags        : -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2
|>binary install path   : /opt/utils/bin
|>man page install path : /opt/utils/man
|>info install path     : /opt/utils/info
|>
|>Unfortunately this gives the following when compiling
|>
|>        gcc -c -I.. -I. -I.  -DHAVE_CONFIG_H -D__sco  -Wall -Wno-implicit -Wmissing-prototypes -O2 
builtin.c
|>In file included from zsh.h:35,
|>                 from builtin.c:32:
|>system.h:114: redefinition of `struct timezone'
|>
|> ... stuff deleted



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

end of thread, other threads:[~1996-05-15 18:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-15  2:15 zsh-2.6-beta17 : compiling on SCO - results Peter Bray
1996-05-15  8:36 ` Jos Backus
1996-05-15 15:45 ` Zoltan Hidvegi
1996-05-15 18:03 ` Wayne Davison
1996-05-15  9:15 Joachim Reith

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).