[Bug 262641] sysutils/screen: build error on stable/12 r371750 (1be600552e5f853c0585742d6b618e66541a81c7)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Mar 2022 08:12:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262641

            Bug ID: 262641
           Summary: sysutils/screen: build error on stable/12 r371750
                    (1be600552e5f853c0585742d6b618e66541a81c7)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
          Assignee: cy@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)

I use Synth for building packages. In this instance, I'm running the latest
stable/12 for amd64:

=> Building sysutils/screen
Started : Friday, 18 MAR 2022 at 06:39:52 UTC
Platform: 12.3-STABLE FreeBSD 12.3-STABLE #807 r371750: Thu Mar 17 01:48:00 CET
2022     root@[REDACTED]:/usr/obj/usr/src/amd64.amd64/sys/PE1950  amd64

This is how the port is configured:

# This file is auto-generated by 'make config'.
# Options for screen-4.6.2_3
_OPTIONS_READ=screen-4.6.2_3
_FILE_COMPLETE_OPTIONS_LIST=INFO NETHACK SHOWENC SYSTEM_SCREENRC XTERM_256
SOCKETS NAMED_PIPES NCURSES_DEFAULT NCURSES_BASE NCURSES_PORT
OPTIONS_FILE_SET+=INFO
OPTIONS_FILE_SET+=NETHACK
OPTIONS_FILE_SET+=SHOWENC
OPTIONS_FILE_SET+=SYSTEM_SCREENRC
OPTIONS_FILE_SET+=XTERM_256
OPTIONS_FILE_SET+=SOCKETS
OPTIONS_FILE_UNSET+=NAMED_PIPES
OPTIONS_FILE_SET+=NCURSES_DEFAULT
OPTIONS_FILE_UNSET+=NCURSES_BASE
OPTIONS_FILE_UNSET+=NCURSES_PORT

The build didn't go very far before the system compiler had had enough:

--------------------------------------------------------------------------------
--  Phase: build
--------------------------------------------------------------------------------
===>  Building for screen-4.9.0
gmake[1]: Entering directory
'/construction/xports/sysutils/screen/work/screen-4.9.0'
CPP="cpp -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"'" srcdir=. sh
./osdef.sh
AWK=/usr/bin/awk CC="cc -O2 -pipe -fno-omit-frame-pointer  -I/usr/include
-DCOLORS256 -fstack-protector-strong -fno-strict-aliasing " srcdir=. sh
./comm.sh
AWK=/usr/bin/awk srcdir=. sh ./term.sh
sh ./tty.sh tty.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  putenv.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  term.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  kmapdef.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  screen.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  ansi.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  fileio.c
cc -c -I. -I.  -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=\"\" \
     -O2 -pipe -fno-omit-frame-pointer  -I/usr/include -DCOLORS256
-fstack-protector-strong -fno-strict-aliasing  mark.c
screen.c:1215:5: warning: expression result unused [-Wunused-value]
    *--av;
    ^~~~~
screen.c:2789:10: error: duplicate case value '101'
    case 'e':
         ^
screen.c:2766:7: note: previous case defined here
        case 'e':
             ^
1 warning and 1 error generated.
gmake[1]: *** [Makefile:82: screen.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory
'/construction/xports/sysutils/screen/work/screen-4.9.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /xports/sysutils/screen

The same version of Screen built successfully on fairly recent main and
stable/13, both amd64.

-- 
You are receiving this mail because:
You are the assignee for the bug.