help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen 4.0.2 build on cygwin chokes


From: Guy Harrison
Subject: Re: screen 4.0.2 build on cygwin chokes
Date: Fri, 30 Jul 2004 01:00:21 GMT
User-agent: KNode/0.7.7

Rashid Butte wrote:

> trying to build screen 4.0.2 on cygwin on Win2K
> run configure, no problem.
> run make:
> 
> CPP="gcc -E " srcdir=. sh ./osdef.sh
> AWK=gawk CC="gcc -g -O2" srcdir=. sh ./comm.sh
> gcc -c -I. -I.    -g -O2 screen.c
> gcc -c -I. -I.    -g -O2 ansi.c
> gcc -c -I. -I.    -g -O2 fileio.c
> gcc -c -I. -I.    -g -O2 mark.c
> gcc -c -I. -I.    -g -O2 misc.c
> misc.c: In function `xsetenv':
> misc.c:619: error: too few arguments to function `setenv'
> make: *** [misc.o] Error 1

#else /* USESETENV */
# if defined(linux) || defined(__convex__) || (BSD >= 199103)
  setenv(var, value, 1);
# else
  setenv(var, value);           //<--misc.c:619
# endif /* linux || convex || BSD >= 199103 */
#endif /* USESETENV */

> Ideas?

'Fraid to say, if you can't figure this one out then you need to visit
cygwin mailing lists to see if screen has been ported by someone else. This
version isn't gonna work OOTB.

Fwiw, you need to modify the conditional at 616 such that setenv(a,b,c) is
invoked instead of setenv(a,b). Exactly which macro is debatable.
Ordinarily one would use __unix__ but without in depth knowledge of screen
itself you've no idea if such will break the test for other platforms. Thus
you'll have to play safe and tag __CYGWIN__ on there instead.

If something else blows up, well like I said, you're screwed doing it
yourself! :-|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]