Compiling screen 4.3.1 on CentOS 5.11 emits the following error:

utmp.c:99:1: warning: "pututline" redefined
In file included from screen.h:30,
                 from utmp.c:34:
os.h:262:1: warning: this is the location of the previous definition
utmp.c: In function ‘makedead’:
utmp.c:602: error: ‘struct __exit_status’ has no member named ‘e_termination’
utmp.c:603: error: ‘struct __exit_status’ has no member named ‘e_exit’
Makefile:82: recipe for target 'utmp.o' failed
gmake: *** [utmp.o] Error 1

screen 4.2.1 compiles fine.

One difference between the two versions is line 253 in os.h.  

In 4.3.1, the line is:

# if defined(SVR4) && !defined(DGUX) && !defined(__hpux)

but in 4.2.1, the line is:

# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux)

Using the 4.2.1 line works around the issue.

Cheers,
Zube

Reply via email to