Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649794 - games-roguelike/rogue-5.4.4 : mdport.c:264:17: error: dereferencing pointer to incomplete type TERMINAL {aka struct term}
Summary: games-roguelike/rogue-5.4.4 : mdport.c:264:17: error: dereferencing pointer t...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2019-04-21
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2018-03-06 20:50 UTC by Toralf Förster
Modified: 2019-04-22 06:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.87 KB, text/plain)
2018-03-06 20:50 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,220.74 KB, text/plain)
2018-03-06 20:50 UTC, Toralf Förster
Details
environment (environment,93.82 KB, text/plain)
2018-03-06 20:50 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.89 KB, application/x-bzip)
2018-03-06 20:50 UTC, Toralf Förster
Details
games-roguelike:rogue-5.4.4:20180306-203146.log (games-roguelike:rogue-5.4.4:20180306-203146.log,8.71 KB, text/plain)
2018-03-06 20:50 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.41 KB, application/x-bzip)
2018-03-06 20:50 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,24.03 KB, application/x-bzip)
2018-03-06 20:50 UTC, Toralf Förster
Details
Patch for mdport.c (rogue-5.4.4-mdport.patch,263 bytes, patch)
2018-12-17 10:02 UTC, Paul Jewell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-03-06 20:50:25 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native  -DHAVE_CONFIG_H  -c mdport.c
mdport.c: In function ‘md_hasclreol’:
mdport.c:264:17: error: dereferencing pointer to incomplete type ‘TERMINAL {aka struct term}’
     if (cur_term->type.Strings == NULL)
                 ^~
make: *** [Makefile:130: mdport.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_test_20180228-181042

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:


emerge -qpv games-roguelike/rogue
[ebuild  N    ] games-roguelike/rogue-5.4.4 

!!! The following installed packages are masked:
- sci-chemistry/massxpert-3.4.0::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas Sturmlechner <asturm@gentoo.org> (04 Mar 2018)
# Dead upstream, depends on deprecated Qt4.
# Masked for removal in 30 days. Bug 645436

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 1 Toralf Förster gentoo-dev 2018-03-06 20:50:28 UTC
Created attachment 522596 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-03-06 20:50:31 UTC
Created attachment 522598 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-03-06 20:50:35 UTC
Created attachment 522600 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-03-06 20:50:38 UTC
Created attachment 522602 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-03-06 20:50:41 UTC
Created attachment 522604 [details]
games-roguelike:rogue-5.4.4:20180306-203146.log
Comment 6 Toralf Förster gentoo-dev 2018-03-06 20:50:44 UTC
Created attachment 522606 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-03-06 20:50:47 UTC
Created attachment 522608 [details]
temp.tbz2
Comment 8 Paul Jewell 2018-12-17 10:00:28 UTC
This problem can be eliminated by adding the following line to mdport.c:

#define NCURSES_INTERNALS

I will attach a patch.
Comment 9 Paul Jewell 2018-12-17 10:02:52 UTC
Created attachment 557972 [details, diff]
Patch for mdport.c

In case you are not aware, if you save this file to /etc/portage/patches/games-roguelike/rogue/ it will be picked up and applied automatically.
Comment 10 rnddim 2019-03-31 03:12:05 UTC
So upon seeing the 30 days removal notice for rogue stating that it doesn't compile against ncurses 6 (referencing this bug for that complaint), I feel I have to point out that it does:

$ ldd $(which rogue)
        linux-vdso.so.1 (0x00007ffc6f5e3000)
        libncurses.so.6 => /lib64/libncurses.so.6 (0x00007f394d27a000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f394d0ae000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f394d777000)

And runs just fine when I boot it up. Specifically I have =sys-libs/ncurses-6.1-r3 , with the "cxx" and "unicode" useflags enabled (and none of the others, except for ABI_X86 stuff), and no patches for rogue anywhere on my system. I also don't have any user patches for ncurses. So the problem is either with something more specific than just it being major version 6 of ncurses (e.g. some useflag I don't have enabled causing problems when it is), or has been fixed by a new version of the ncurses ebuild since the report was filed.
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-22 06:08:23 UTC
Package removed.