On 2016-04-02 11:32 +0200, Sven Joachim wrote:
> Source: screen
> Version: 4.3.1-2
> Severity: important
>
> On my system which has quite a few -dev packages installed, utmp.c does
> not compile:
>
> ,----
> | gcc -c -I. -I. -Wdate-time -D_FORTIFY_SOURCE=2
> -DETCSCREENRC='"/etc/screenrc"'
> -DSCREENENCODINGS='"/usr/share/screen/utf8encodings"' -DHAVE_CONFIG_H
> -DGIT_REV=\""`git describe --always 2>/dev/null`"\" \
> | -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
> -Wextra -Wno-unused-parameter -Wno-missing-field-initializers utmp.c
> | utmp.c:99:0: warning: "pututline" redefined
> | # define pututline xpututline
> | ^
> | In file included from screen.h:30:0,
> | from utmp.c:34:
> | os.h:262:0: note: this is the location of the previous definition
> | # define pututline pututxline
> | ^
> | utmp.c: In function 'makedead':
> | utmp.c:602:13: error: 'struct __exit_status' has no member named
> 'e_termination'
> | u->ut_exit.e_termination = 0;
> | ^
> | utmp.c:603:13: error: 'struct __exit_status' has no member named 'e_exit'
> | u->ut_exit.e_exit = 0;
> | ^
> | utmp.c: In function 'xpututline':
> | utmp.c:885:3: warning: implicit declaration of function 'pututline'
> [-Wimplicit-function-declaration]
> | pututline(u);
> | ^
> | Makefile:82: recipe for target 'utmp.o' failed
> | make[2]: *** [utmp.o] Error 1
> `----
>
> I'm attaching a complete build log from git master. This is not
> reproducible in a minimal chroot, even if libutempter-dev is installed
> (see #819781).
Found out the culprit, installing libelf-dev makes the problem
reproducible in a pbuilder chroot. Maintainers should probably revisit
bug #684386, hopefully there is a better solution than adding a
Build-Conflicts with libelf-dev on all architectures.
Cheers,
Sven