Bug 219945 - x11/xterm: Unable to build xterm-329
Summary: x11/xterm: Unable to build xterm-329
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-12 20:55 UTC by Ashish SHUKLA
Modified: 2017-06-13 07:01 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ehaupt)


Attachments
build-fix, to be in next version of xterm (4.92 KB, patch)
2017-06-12 22:39 UTC, Thomas E. Dickey
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ashish SHUKLA freebsd_committer 2017-06-12 20:55:15 UTC
Hi,

I have xterm with following options:

===> The following configuration options are available for xterm-329:
     256COLOR=on: Enable 256-color support
     DABBREV=off: Enable support for dabbrev-expand
     DECTERM=off: Enable DECterm Locator support
     GNOME=off: GNOME desktop environment support
     LOGGING=off: Enable logging terminal I/O to a file
     LUIT=on: Use LUIT for locale convertion from/to UTF-8
     PCRE=off: Use Perl Compatible Regular Expressions
     REGIS=off: Enable ReGIS graphics support
     SCRNDUMP=off: Enable XHTML and SVG screen dumps
     SIXEL=on: Enable Sixel graphics support
     WCHAR=on: Enable wide-character support
     XINERAMA=on: X11 Xinerama extension support
====> Options available for the radio 3D: you can only select none or one of them
     XAW3D=off: Link with Xaw 3d library
     XAW3DXFT=on: Link with Xaw 3d xft (extended fonts) library
     NEXTAW=off: Link with neXT Athena library
===> Use 'make config' to modify these settings



Following is the build log:

===>  Cleaning for xterm-329
===>  License MIT accepted by the user
===>   xterm-329 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by xterm-329 for building
===>  Extracting for xterm-329
=> SHA256 Checksum OK for xterm-329.tgz.
=> SHA256 Checksum OK for bsd-xterm-icons-1.tgz.
===>  Patching for xterm-329
===>   xterm-329 depends on executable: luit - found
===>   xterm-329 depends on file: /usr/local/lib/libncurses.so.6 - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/xineramaproto.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/xft.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/ice.pc - found
===>   xterm-329 depends on file: /usr/local/libdata/pkgconfig/xinerama.pc - found
===>   xterm-329 depends on shared library: libfontconfig.so - found (/usr/local/lib/libfontconfig.so)
===>   xterm-329 depends on shared library: libXaw3dxft.so - found (/usr/local/lib/libXaw3dxft.so)
===>  Configuring for xterm-329
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-portbld-freebsd11.0
checking host system type... amd64-portbld-freebsd11.0
Configuring for freebsd11.0
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking version of cc... 3.8.0
checking for cc option to accept ANSI C... none needed
checking $CC variable... ok
checking how to run the C preprocessor... cpp
checking for mawk... (cached) /usr/bin/awk
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for lint... lint
checking if _XOPEN_SOURCE really is set... yes
checking if SIGWINCH is defined... yes
checking for ncurses/curses.h... yes
checking for ncurses/term.h... yes
checking for stdlib.h... (cached) yes
checking for sys/ptem.h... no
checking for sys/ttydefaults.h... yes
checking for term.h... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for wchar.h... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for nl_langinfo and CODESET... yes
checking for signal global datatype... volatile sig_atomic_t
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for time_t... yes
checking for cc_t in <termios.h> or <termio.h>... yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for off_t... (cached) yes
checking for gethostname... (cached) yes
checking for getlogin... yes
checking for initgroups... yes
checking for mkdtemp... (cached) yes
checking for putenv... (cached) yes
checking for unsetenv... (cached) yes
checking for sched_yield... (cached) yes
checking for setpgid... yes
checking for strftime... (cached) yes
checking for tcgetattr... yes
checking for waitpid... (cached) yes
checking for wcswidth... yes
checking for wcwidth... (cached) yes
checking for lastlog.h... no
checking for paths.h... (cached) yes
checking for lastlog path... no
checking for utmp implementation... utmpx
checking if utmpx.ut_host is declared... yes
checking if utmpx.ut_syslen is declared... no
checking if utmpx.ut_name is declared... ut_user
checking for exit-status in utmpx... no
checking if utmpx.ut_xtime is declared... define
checking if utmpx.ut_session is declared... no
checking if utmpx is SYSV flavor... yes
checking for lastlog.h... (cached) no
checking for struct lastlog... no
checking for sys/param.h... (cached) yes
checking if POSIX saved-ids are supported... yes
checking if we want full tgetent function... yes
checking for full tgetent function... -ltermcap
checking for termcap.h... yes
checking for X applications class... XTerm
checking for directory to install resource files... ${exec_prefix}/lib/X11/app-defaults
checking for the icon name... xterm-color
checking for icon symlink to use... NONE
checking for directory to install pixmaps... ${datadir}/pixmaps
checking for directory to install icons... no
checking if icon theme should be used... no
checking for icon(s) to install... icons/xterm-color_48x48.xpm
checking for icon name... xterm-color
checking if you want to install desktop files... yes
checking for desktop-file-install... yes
checking for requested desktop-category... auto
checking for install-permissions reference... xterm
checking for PATH separator... :
checking for xterm... /usr/local/bin/xterm
checking for symbolic link to create to xterm... xterm
checking if you want to disable openpty... no
checking if you want to disable setuid... no
checking if you want to disable setgid... no
checking if you want to run xterm setuid to a given user... no
checking if you want to run xterm setgid to match utmp/utmpx file... no
checking if you want to link with utempter... yes
checking if we can link with utempter library... yes
checking if external errno is declared... yes
checking if external errno exists... yes
checking for explicit tty group name... auto...
checking for tty group name... tty
checking if we may use the tty group... yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for POSIX wait functions... yes
checking if external sys_nerr is declared... yes
checking if external sys_nerr exists... yes
checking if external sys_errlist is declared... yes
checking if external sys_errlist exists... yes
checking for termios.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for X11/Intrinsic.h... yes
checking if we should define SYSV... no
checking for elf_begin in -lelf... yes
checking if this is an SVR4 system... no
checking for X... libraries /usr/local/lib, headers /usr/local/include
checking for gethostbyname... (cached) yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking if you want to use pkg-config... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for usable X Toolkit package... no
checking for X11/DECkeysym.h... yes
checking for X11/Sunkeysym.h... yes
checking for X11/XF86keysym.h... yes
checking for X11/XKBlib.h... yes
checking for X11/Xpoll.h... yes
checking for X11/extensions/XKB.h... yes
checking if you want to use the Xpm library for colored icon... yes
checking for X11/xpm.h... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking if you want to use the Xinerama extension... yes
checking if you want to link with Xaw 3d library... no
checking if you want to link with Xaw 3d xft library... yes
checking if you want to link with neXT Athena library... no
checking if you want to link with Athena-Plus library... no
checking for XextCreateExtension in -lXext... yes
checking for usable X Toolkit package... (cached) no
checking for X11/Xaw3dxft/SimpleMenu.h... yes
checking for XawSimpleMenuAddGlobalActions in -lXaw3dxft -lXmu... yes
checking for X11/Xpoll.h... (cached) yes
checking for declaration of fd_set... sys/types.h
checking for declaration of fd_mask... sys/types.h
checking for IRIX 6.5 baud-rate redefinitions... no
checking for XcursorGetTheme in -lXcursor... yes
checking for stropts.h... no
checking for grantpt... yes
checking for ptsname... yes
checking for posix_openpt... yes
checking if grantpt really works... yes
checking for pty features...  pty_isatty pty_tcsetattr tty_tcsetattr
checking for openpty in -lutil... yes
checking for util.h... no
checking for libutil.h... (cached) yes
checking for pty.h... no
checking if we can use XkbQueryExtension... yes
checking for XkbQueryExtension... yes
checking if we can use XkbKeycodeToKeysym... yes
checking for XkbKeycodeToKeysym... yes
checking for XKB Bell extension... yes
checking for Xutf8LookupString... yes
checking if you want narrow prototypes for X libraries... yes
checking if we should use imake to help... yes
checking for xmkmf... /usr/local/bin/xmkmf
configure: WARNING: Cannot run /usr/local/bin/xmkmf
checking for groff... /usr/bin/groff
checking for nroff... /usr/bin/nroff
checking for program to convert manpage to html... /usr/bin/groff
checking for default terminal-id... vt420
checking for default terminal-type... xterm
checking if backarrow-key should be BS... yes
checking if backarrow-key should be treated as erase... no
checking for default backspace/DEL setting... maybe
checking for default pty initial erase setting... False
checking if alt should send ESC... no
checking if meta should send ESC... no
checking for tic... yes
checking for private terminfo-directory... none
checking if you want active-icons... yes
checking if you want ANSI color... yes
checking if you want 16 colors like aixterm... yes
checking if you want 256 colors... yes
checking if you want blinking cursor... yes
checking if you want to ignore Linux's broken palette-strings... no
checking if you want to allow broken string-terminators... yes
checking if you want to compile-in icon data... no
checking if you want printable 128-159... yes
checking if you want bold colors mapped like IBM PC... yes
checking if you want separate color-classes... yes
checking if you want color-mode enabled by default... yes
checking if you want support for color highlighting... yes
checking if you want support for doublesize characters... yes
checking if you want fallback-support for box characters... yes
checking if you want to allow spawning new xterms... no
checking if you want to use double-buffering... no
checking if you want to use FreeType library... yes
checking for FreeType configuration script... auto
checking for FreeType config... /usr/local/bin/pkg-config xft
checking for /usr/local/bin/pkg-config cflags... -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/freetype2 
checking for /usr/local/bin/pkg-config libs...  -L/usr/local/lib -lXft 
checking if we can link with FreeType libraries... yes
checking for XftDrawCharSpec... yes
checking for XftDrawSetClip... yes
checking for XftDrawSetClipRectangles... yes
checking for usable Xft/fontconfig package... no
checking if you want support for HP-style function keys... no
checking if you want support for SCO-style function keys... no
checking if you want support for Sun-style function keys... yes
checking if you want saved-lines stored as a FIFO... yes
checking if you want support for internationalization... yes
checking if you want support for initial-erase setup... yes
checking if you want support for input-method... yes
checking if X libraries support input-method... yes
checking if you want support for load-vt-fonts... no
checking if you want support for logging... no
checking if you want support for iconify/maximize translations... yes
checking if you want NumLock to override keyboard tables... yes
checking if you want support for get/set of base64 selection data... yes
checking if you want support for pty-handshaking... yes
checking if you want support for mouse in readline applications... no
checking if you want support for regular-expression selections... yes
checking if you want to use PCRE for regular-expressions... no
checking for regcomp... yes
checking for regular-expression headers... regex.h
checking if you want support for right-scrollbar... yes
checking if you want check for redundant name-change... yes
checking if you want support for selection-actions... yes
checking if you want support for session management... yes
checking if you want to use termcap function-keys... yes
checking if you want to use termcap-query/report... yes
checking if you want support for tek4014... yes
checking if you want pulldown menus with a toolbar... no
checking if you want VT52 emulation... yes
checking if you want wide-attribute support... yes
checking if you want wide-character support... yes
checking if you want only 16-bit character support... no
checking if you want to use mini-luit/Latin9 built-in support... no
checking if you want to use luit... yes
checking for xterm-filter... no
checking for xterm-filter... no
checking for bluit... no
checking for luit... /usr/local/bin/luit
checking if you want dynamic-abbreviation support... no
checking if you want DECterm Locator support... no
checking if you want XHTML and SVG screen dump support... no
checking if you want ReGIS graphics support... no
checking if you want sixel graphics support... yes
checking if you want VT420 rectangle support... yes
checking if you want -ziconbeep option... yes
checking if you want debugging traces... no
checking if you want to use dmalloc for testing... no
checking if you want to use dbmalloc for testing... no
checking if you want to use valgrind for testing... no
checking if you want to perform memory-leak testing... no
checking if you want to see long compiling messages... yes
checking if you want magic cookie emulation... no
checking for tigetstr... yes
checking if you want to turn on gcc warnings... no
checking if filesystem supports mixed-case filenames... yes
checking for exctags... exctags
checking for exetags... no
checking for etags... etags
checking for exctags... yes
checking for etags... yes
checking for an rpath option... -Wl,-rpath,
checking if rpath-hack should be disabled... no
checking for updated LDFLAGS... maybe
checking for ldd... ldd
configure: creating ./config.status
config.status: creating Makefile
config.status: creating df-install
config.status: creating minstall
config.status: creating xtermcfg.h
===>  Building for xterm-329
cc -I. -I. -DHAVE_CONFIG_H -I/usr/local/include -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=11 -DOSMINORVERSION=0 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/freetype2 -DDEFCLASS=\"XTerm\"  -O2 -g -march=haswell  -fstack-protector -fno-strict-aliasing  -c ./button.c
cc -I. -I. -DHAVE_CONFIG_H -I/usr/local/include -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=11 -DOSMINORVERSION=0 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/freetype2 -DDEFCLASS=\"XTerm\"  -O2 -g -march=haswell  -fstack-protector -fno-strict-aliasing  -c ./cachedGCs.c
/usr/bin/awk '/^CASE_/{printf "#define %s %d\n", $1, n++}' < VTparse.def >VTparse.hin
cc -I. -I. -DHAVE_CONFIG_H -I/usr/local/include -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -DNARROWPROTO=1 -DFUNCPROTO=15 -DOSMAJORVERSION=11 -DOSMINORVERSION=0 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/freetype2 -DDEFCLASS=\"XTerm\"  -O2 -g -march=haswell  -fstack-protector -fno-strict-aliasing  -c ./charproc.c
./charproc.c:3703:25: error: no member named 'graphics_regis_def_wide' in 'TScreen'
                            result = screen->graphics_regis_def_wide;
                                     ~~~~~~  ^
./charproc.c:3704:26: error: no member named 'graphics_regis_def_high' in 'TScreen'
                            result2 = screen->graphics_regis_def_high;
                                      ~~~~~~  ^
2 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/x11/xterm/work/xterm-329
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11/xterm
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/xterm


Could you please look ?

Thanks!
Comment 1 Emanuel Haupt freebsd_committer 2017-06-12 21:43:27 UTC
Added author.
Comment 2 Emanuel Haupt freebsd_committer 2017-06-12 21:44:52 UTC
This has already been reported to the author via mail. Meanwhile, one workaround is to enable the regis option along with sixel.
Comment 3 Ashish SHUKLA freebsd_committer 2017-06-12 22:25:32 UTC
Thanks, confirmed build after enabling option REGIS.
Comment 4 Thomas E. Dickey 2017-06-12 22:39:18 UTC
Created attachment 183443 [details]
build-fix, to be in next version of xterm

This is the first fix for the next version of xterm.
I'll be continuing with #219800
Comment 5 commit-hook freebsd_committer 2017-06-13 06:59:43 UTC
A commit references this bug:

Author: ehaupt
Date: Tue Jun 13 06:59:20 UTC 2017
New revision: 443487
URL: https://svnweb.freebsd.org/changeset/ports/443487

Log:
  Provide a patch to fix building when the non default option SIXEL is enabled
  without the REGIS option. This does not affect default options and therefore
  no PORTREVISION bump is required. This regression does not affect the quarterly
  branch therefore no MFH is required.

  PR:		219945 (based on)
  Submitted by:	ashish@FreeBSD.org, Thomas Dickey <dickey@his.com> (author)

Changes:
  head/x11/xterm/files/
  head/x11/xterm/files/patch-charproc.c
Comment 6 Emanuel Haupt freebsd_committer 2017-06-13 07:01:53 UTC
Quickfix committed.