Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696880 - www-servers/varnish-4.1.8 fails to compile
Summary: www-servers/varnish-4.1.8 fails to compile
Status: RESOLVED DUPLICATE of bug 614984
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-07 10:16 UTC by Patrick ALLAERT
Modified: 2019-10-07 10:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick ALLAERT 2019-10-07 10:16:49 UTC
www-servers/varnish-4.1.8 does not compile

Reproducible: Always

Steps to Reproduce:
1. # emerge =www-servers/varnish-4.1.8
Actual Results:  
[...]
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -march=native -pipe -fno-stack-protector -pthread -Wall  -Wno-error=unused-result -c -o vtim.o `test -f '../../lib/libvarnish/vtim.c' || echo './'`../../lib/libvarnish/vtim.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -march=native -pipe -fno-stack-protector -pthread -Wall  -Wno-error=unused-result -c -o flopen.o `test -f '../../lib/libvarnish/flopen.c' || echo './'`../../lib/libvarnish/flopen.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -march=native -pipe -fno-stack-protector -pthread -Wall  -Wno-error=unused-result -c -o vut.o `test -f '../../lib/libvarnishtools/vut.c' || echo './'`../../lib/libvarnishtools/vut.c
x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../include   -O2 -march=native -pipe -fno-stack-protector -pthread -Wall  -Wno-error=unused-result -c -o opt2rst.o `test -f '../../lib/libvarnishtools/opt2rst.c' || echo './'`../../lib/libvarnishtools/opt2rst.c
In file included from varnishhist.c:50:
../../include/vcurses.h:42:4: error: #error "SysV or X/Open-compatible Curses header file required"
 #  error "SysV or X/Open-compatible Curses header file required"
    ^~~~~
In file included from varnishhist.c:51:
../../include/vapi/vsl.h:420:1: error: unknown type name ‘FILE’
 FILE *VSL_WriteOpen(struct VSL_data *vsl, const char *name, int append,
 ^~~~
../../include/vapi/vsl.h:420:1: note: ‘FILE’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
../../include/vapi/vsl.h:40:1:
+#include <stdio.h>
 
../../include/vapi/vsl.h:420:1:
 FILE *VSL_WriteOpen(struct VSL_data *vsl, const char *name, int append,
 ^~~~
varnishhist.c: In function ‘update’:
varnishhist.c:138:15: error: ‘COLS’ undeclared (first use in this function)
  unsigned w = COLS / hist_range;
               ^~~~
varnishhist.c:138:15: note: each undeclared identifier is reported only once for each function it appears in
varnishhist.c:145:2: warning: implicit declaration of function ‘erase’; did you mean ‘raise’? [-Wimplicit-function-declaration]
  erase();
  ^~~~~
  raise
varnishhist.c:149:9: warning: implicit declaration of function ‘mvaddch’ [-Wimplicit-function-declaration]
   (void)mvaddch(LINES - 2, i, '-');
         ^~~~~~~
varnishhist.c:149:17: error: ‘LINES’ undeclared (first use in this function)
   (void)mvaddch(LINES - 2, i, '-');
                 ^~~~~
varnishhist.c:152:3: warning: implicit declaration of function ‘mvprintw’; did you mean ‘vbprintf’? [-Wimplicit-function-declaration]
   mvprintw(LINES - 1, w * k, "|1e%d", l);
   ^~~~~~~~
   vbprintf
varnishhist.c:197:2: warning: implicit declaration of function ‘refresh’; did you mean ‘regfree’? [-Wimplicit-function-declaration]
  refresh();
  ^~~~~~~
  regfree
varnishhist.c: In function ‘accumulate’:
varnishhist.c:282:9: warning: implicit declaration of function ‘sscanf’ [-Wimplicit-function-declaration]
     i = sscanf(VSL_CDATA(tr->c->rec.ptr),
         ^~~~~~
varnishhist.c:282:9: warning: incompatible implicit declaration of built-in function ‘sscanf’
varnishhist.c:282:9: note: include ‘<stdio.h>’ or provide a declaration of ‘sscanf’
varnishhist.c:125:1:
+#include <stdio.h>
  { NULL }
varnishhist.c:282:9:
     i = sscanf(VSL_CDATA(tr->c->rec.ptr),
         ^~~~~~
varnishhist.c: In function ‘do_curses’:
varnishhist.c:386:2: warning: implicit declaration of function ‘initscr’ [-Wimplicit-function-declaration]
  initscr();
  ^~~~~~~
varnishhist.c:387:2: warning: implicit declaration of function ‘raw’; did you mean ‘read’? [-Wimplicit-function-declaration]
  raw();
  ^~~
  read
varnishhist.c:388:2: warning: implicit declaration of function ‘noecho’ [-Wimplicit-function-declaration]
  noecho();
  ^~~~~~
varnishhist.c:389:2: warning: implicit declaration of function ‘nonl’; did you mean ‘nanl’? [-Wimplicit-function-declaration]
  nonl();
  ^~~~
  nanl
varnishhist.c:390:2: warning: implicit declaration of function ‘intrflush’ [-Wimplicit-function-declaration]
  intrflush(stdscr, FALSE);
  ^~~~~~~~~
varnishhist.c:390:12: error: ‘stdscr’ undeclared (first use in this function); did you mean ‘strstr’?
  intrflush(stdscr, FALSE);
            ^~~~~~
            strstr
varnishhist.c:390:20: error: ‘FALSE’ undeclared (first use in this function); did you mean ‘EILSEQ’?
  intrflush(stdscr, FALSE);
                    ^~~~~
                    EILSEQ
varnishhist.c:391:2: warning: implicit declaration of function ‘curs_set’ [-Wimplicit-function-declaration]
  curs_set(0);
  ^~~~~~~~
varnishhist.c:398:3: warning: implicit declaration of function ‘timeout’; did you mean ‘timegm’? [-Wimplicit-function-declaration]
   timeout(delay * 1000);
   ^~~~~~~
   timegm
varnishhist.c:399:17: warning: implicit declaration of function ‘getch’; did you mean ‘getwd’? [-Wimplicit-function-declaration]
   switch ((ch = getch())) {
                 ^~~~~
                 getwd
varnishhist.c:400:8: error: ‘ERR’ undeclared (first use in this function)
   case ERR:
        ^~~
varnishhist.c:409:4: warning: implicit declaration of function ‘redrawwin’ [-Wimplicit-function-declaration]
    redrawwin(stdscr);
    ^~~~~~~~~
varnishhist.c:413:4: warning: implicit declaration of function ‘endwin’ [-Wimplicit-function-declaration]
    endwin();
    ^~~~~~
varnishhist.c:448:4: warning: implicit declaration of function ‘beep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
    beep();
    ^~~~
    sleep
varnishhist.c: In function ‘usage’:
varnishhist.c:476:2: warning: implicit declaration of function ‘fprintf’ [-Wimplicit-function-declaration]
  fprintf(stderr, "Usage: %s <options>\n\n", progname);
  ^~~~~~~
varnishhist.c:476:2: warning: incompatible implicit declaration of built-in function ‘fprintf’
varnishhist.c:476:2: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
varnishhist.c:476:10: error: ‘stderr’ undeclared (first use in this function)
  fprintf(stderr, "Usage: %s <options>\n\n", progname);
          ^~~~~~
varnishhist.c:476:10: note: ‘stderr’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
varnishhist.c: In function ‘profile_error’:
varnishhist.c:486:2: warning: incompatible implicit declaration of built-in function ‘fprintf’
  fprintf(stderr, "-P: '%s' is not a valid"
  ^~~~~~~
varnishhist.c:486:2: note: include ‘<stdio.h>’ or provide a declaration of ‘fprintf’
varnishhist.c:486:10: error: ‘stderr’ undeclared (first use in this function)
  fprintf(stderr, "-P: '%s' is not a valid"
          ^~~~~~
varnishhist.c:486:10: note: ‘stderr’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
varnishhist.c: In function ‘main’:
varnishhist.c:536:8: warning: incompatible implicit declaration of built-in function ‘sscanf’
    if (sscanf(colon + 1, "%d:%d:%d", &cli_p.field,
        ^~~~~~
varnishhist.c:536:8: note: include ‘<stdio.h>’ or provide a declaration of ‘sscanf’
make[3]: *** [Makefile:504: varnishhist.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/www-servers/varnish-4.1.8/work/varnish-4.1.8/bin/varnishhist'
make[2]: *** [Makefile:398: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/www-servers/varnish-4.1.8/work/varnish-4.1.8/bin'
make[1]: *** [Makefile:540: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/www-servers/varnish-4.1.8/work/varnish-4.1.8'
make: *** [Makefile:426: all] Error 2
 * ERROR: www-servers/varnish-4.1.8::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=www-servers/varnish-4.1.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-servers/varnish-4.1.8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-servers/varnish-4.1.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/varnish-4.1.8/temp/environment'.
 * Working directory: '/var/tmp/portage/www-servers/varnish-4.1.8/work/varnish-4.1.8'
 * S: '/var/tmp/portage/www-servers/varnish-4.1.8/work/varnish-4.1.8'


Expected Results:  
No compilation error

$ emerge --info
Portage 2.3.76 (python 2.7.16-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29-r2, 4.19.44-gentoo x86_64)
=================================================================
System uname: Linux-4.19.44-gentoo-x86_64-Intel-R-_Core-TM-_i7-4910MQ_CPU_@_2.90GHz-with-gentoo-2.6
KiB Mem:    32817924 total,  10036288 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 06 Oct 2019 12:30:01 +0000
Head commit of repository gentoo: 5d2b662cdfd392ee5c7816bfe301f8cadd65a06d
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE google-chrome Intel-SDP bh-luxi NVIDIA-r2 Spotify unRAR linux-firmware linux-fw-redistributable no-source-code"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fno-stack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities aes alsa amd64 avx avx2 berkdb branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fma3 gdbm gif glamor gpm iconv icu iptables ipv6 jpeg kipi kwallet lcms libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl nsplugin nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds qml qt5 readline sdl seccomp spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb uxa vdpau vorbis widgets win32codecs wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias auth_basic authn_core auth_digest authn_file authz_core authz_host authz_user deflate dir headers env expires filter include log_config mime negotiation proxy proxy_http rewrite setenvif socache_shmcb unique_id unixd" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-2 php7-1" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-07 10:30:27 UTC

*** This bug has been marked as a duplicate of bug 614984 ***