Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614984 - www-servers/varnish-5.1.1 - In file included from varnishhist.c:50:0: ../../include/vcurses.h:42:4: error: #error "SysV or X/Open-compatible Curses header file required"
Summary: www-servers/varnish-5.1.1 - In file included from varnishhist.c:50:0: ../../i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 696880 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-04-08 08:26 UTC by stathis
Modified: 2022-07-22 15:47 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,129.83 KB, text/plain)
2017-04-08 08:27 UTC, stathis
Details
emerge --info (emerge-info.txt,6.03 KB, text/plain)
2017-04-08 08:28 UTC, stathis
Details
varnish-5.1.3-r1 (varnish-5.1.3-r1.ebuild,2.25 KB, text/plain)
2018-06-18 21:11 UTC, jeremy mills
Details
varnish-5.1.3-tinfo.patch (varnish-5.1.3-tinfo.patch,1.00 KB, patch)
2018-06-18 21:13 UTC, jeremy mills
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stathis 2017-04-08 08:26:58 UTC
When emerging www-servers/varnish-5.1.1 it fails (see attached build.log)

Seems to be related to ncurses detection.


Reproducible: Always

Steps to Reproduce:
1. emerge www-servers/varnish 
Actual Results:  
Fails to build (see build.log for error context)

Expected Results:  
Should build and install normally.

It is probably related to sys-libs/ncurses, which is installed. I have installed both  sys-libs/ncurses-5.9-r101(5/5) and sys-libs/ncurses-6.0-r1(0/6)
Comment 1 stathis 2017-04-08 08:27:39 UTC
Created attachment 469452 [details]
build.log
Comment 2 stathis 2017-04-08 08:28:36 UTC
Created attachment 469454 [details]
emerge --info
Comment 3 stathis 2017-04-13 15:05:42 UTC
I found out that the problem stems from the compilation of ncurses. I compile sys-libs/ncurses:0 (that's v6.x) with -tinfo in order for varnish 5.1.x to compile successfully. 

With the tinfo flag enabled on ncurses, varnish fails with the aforementioned error.
Comment 4 Ștefan Talpalaru 2017-05-22 16:24:03 UTC
I made a pull request upstream to support an ncurses library with split tinfo: https://github.com/varnishcache/varnish-cache/pull/2331

It's just a matter of updating m4/ax_with_curses.m4 and replacing a deprecated variable in 3 Makefile.am files.
Comment 5 jeremy mills 2018-06-18 21:11:39 UTC
Created attachment 536302 [details]
varnish-5.1.3-r1

varnish revbump for tinfo patch (lkatest stable keyworded varnish)
Comment 6 jeremy mills 2018-06-18 21:13:07 UTC
Created attachment 536304 [details, diff]
varnish-5.1.3-tinfo.patch

patch to build varnish with sys-libs/ncurses USE=tinfo
Comment 7 jeremy mills 2018-06-18 21:13:51 UTC
Give those a try for those of you on stable keyworded systems.
Comment 8 Craig Andrews gentoo-dev 2018-11-09 21:43:10 UTC
Should be fixed by varnish 6.0.1, stable request at bug 670794
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-07 10:30:27 UTC
*** Bug 696880 has been marked as a duplicate of this bug. ***