zsh-workers
 help / color / mirror / code / Atom feed
* Os2
@ 2008-11-27 16:33 Elbert Pol
  2008-11-27 17:03 ` Os2 Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Elbert Pol @ 2008-11-27 16:33 UTC (permalink / raw)
  To: zsh-workers

Hello,

I've try to port zsh to os2 and it fails with the "make"

I use Gcc v4.32

utils.c: In function 'adjustwinsize':
utils.c:1537: error: 'struct ttyinfo' has no member named 'winsize'
utils.c:1538: error: 'struct ttyinfo' has no member named 'winsize'
make.exe[2]: *** [utils.o] Error 1
make.exe[2]: Leaving directory `U:/zsh-4.3.9/Src'
make.exe[1]: *** [modobjs] Error 2
make.exe[1]: Leaving directory `U:/zsh-4.3.9/Src'
make.exe: *** [all] Error 1
Any thoughts ?


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

* Re: Os2
  2008-11-27 16:33 Os2 Elbert Pol
@ 2008-11-27 17:03 ` Peter Stephenson
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2008-11-27 17:03 UTC (permalink / raw)
  To: Elbert Pol, zsh-workers

On Thu, 27 Nov 2008 17:33:49 +0100
Elbert Pol <e.pol@chello.nl> wrote:
> Hello,
> 
> I've try to port zsh to os2 and it fails with the "make"
> 
> I use Gcc v4.32
> 
> utils.c: In function 'adjustwinsize':
> utils.c:1537: error: 'struct ttyinfo' has no member named 'winsize'
> utils.c:1538: error: 'struct ttyinfo' has no member named 'winsize'
> make.exe[2]: *** [utils.o] Error 1
> make.exe[2]: Leaving directory `U:/zsh-4.3.9/Src'
> make.exe[1]: *** [modobjs] Error 2
> make.exe[1]: Leaving directory `U:/zsh-4.3.9/Src'
> make.exe: *** [all] Error 1
> Any thoughts ?

That's a bug in the source code.

Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.206
diff -u -r1.206 utils.c
--- Src/utils.c	30 Oct 2008 15:34:18 -0000	1.206
+++ Src/utils.c	27 Nov 2008 16:59:16 -0000
@@ -1534,8 +1534,10 @@
 adjustwinsize(int from)
 {
     static int getwinsz = 1;
+#ifdef TIOCGWINSZ
     int ttyrows = shttyinfo.winsize.ws_row;
     int ttycols = shttyinfo.winsize.ws_col;
+#endif
     int resetzle = 0;
 
     if (getwinsz || from == 1) {


-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


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

* Os2
@ 2008-11-27 20:00 Elbert Pol
  0 siblings, 0 replies; 3+ messages in thread
From: Elbert Pol @ 2008-11-27 20:00 UTC (permalink / raw)
  To: zsh-workers

Hi Peter,

That fixed it :P Thankz

I see now at the end of make:
gcc -Zexe -Zomf -Zmap -Zargs-wild -Zbin-files -D__ST_MT_ERRNO__ -s 
-rdynamic -o zsh.exe main.o  `cat stamp-modobjs`   -lgdbm -lsocket -ldl 
-lncursesw -lm  -lc
gcc: unrecognized option '-rdynamic'
make.exe[2]: Entering directory `U:/zsh-4.3.9/Src'
make.exe[3]: Entering directory `U:/zsh-4.3.9/Src/Builtins'
make.exe[3]: Leaving directory `U:/zsh-4.3.9/Src/Builtins'
make.exe[3]: Entering directory `U:/zsh-4.3.9/Src/Modules'
make.exe[3]: Leaving directory `U:/zsh-4.3.9/Src/Modules'
make.exe[3]: Entering directory `U:/zsh-4.3.9/Src/Zle'
make.exe[3]: Leaving directory `U:/zsh-4.3.9/Src/Zle'
make.exe[2]: Leaving directory `U:/zsh-4.3.9/Src'
make.exe[1]: Leaving directory `U:/zsh-4.3.9/Src'
make.exe[1]: Entering directory `U:/zsh-4.3.9/Doc'
make.exe[1]: Nothing to be done for `all'.
make.exe[1]: Leaving directory `U:/zsh-4.3.9/Doc'


And when i start Zsh i get
U:\zsh-4.3.9\Src>zsh.exe
ttyname() not implemented: Error 0
zsh: bad tcgets: invalid argument




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

end of thread, other threads:[~2008-11-27 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-27 16:33 Os2 Elbert Pol
2008-11-27 17:03 ` Os2 Peter Stephenson
2008-11-27 20:00 Os2 Elbert Pol

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