Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545912 - app-arch/p7zip-9.38.1 compile failed: error: ‘OSVERSIONINFO’ was not declared in this scope
Summary: app-arch/p7zip-9.38.1 compile failed: error: ‘OSVERSIONINFO’ was not declared...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 04:36 UTC by lbv5051
Modified: 2015-04-08 14:59 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,455.50 KB, text/x-log)
2015-04-08 04:39 UTC, lbv5051
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lbv5051 2015-04-08 04:36:40 UTC
../../../../CPP/7zip/UI/FileManager/FM.cpp: In function ‘bool IsLargePageSupported()’:
../../../../CPP/7zip/UI/FileManager/FM.cpp:354:3: error: ‘OSVERSIONINFO’ was not declared in this scope
   OSVERSIONINFO versionInfo;
   ^
../../../../CPP/7zip/UI/FileManager/FM.cpp:355:3: error: ‘versionInfo’ was not declared in this scope
   versionInfo.dwOSVersionInfoSize = sizeof(versionInfo);
   ^
../../../../CPP/7zip/UI/FileManager/FM.cpp:356:8: error: ‘::GetVersionEx’ has not been declared
   if (!::GetVersionEx(&versionInfo))
        ^
../../../../CPP/7zip/UI/FileManager/FM.cpp:358:35: error: ‘VER_PLATFORM_WIN32_NT’ was not declared in this scope
   if (versionInfo.dwPlatformId != VER_PLATFORM_WIN32_NT || versionInfo.dwMajorVersion < 5)
                                   ^
makefile.list:250: recipe for target 'FM.o' failed
make[1]: *** [FM.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/app-arch/p7zip-9.38.1/work/p7zip_9.38.1/CPP/7zip/UI/FileManager'
makefile:80: recipe for target '7zFM' failed
make: *** [7zFM] Error 2


Reproducible: Always

Steps to Reproduce:
1. emerge p7zip
Comment 1 lbv5051 2015-04-08 04:38:22 UTC
emerge --info

Portage 2.2.18 (python 3.4.3-final-0, default/linux/x86/13.0/desktop/kde, gcc-4.9.2, glibc-2.20-r2, 3.19.3-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.3-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     4138852 total,   2085848 free
KiB Swap:    4000148 total,   4000148 free
Timestamp of repository gentoo: Wed, 08 Apr 2015 04:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

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

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y --quiet-build n --autounmask n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gcj gdbm geoip gif gimp glamor gpm gstreamer gtk gzip hddtemp iconv icq icu idn imagemagick jabber javascript jpeg kde kipi lame lcms libass libnotify libsamplerate lm_sensors lzma lzo mad matroska mbox mikmod mmx mng modplug modules mp3 mp4 mpeg ncurses nls nptl nsplugin offensive ogg opengl openmp pam pango pch pcntl pcre pdf phonon plasma png policykit posix ppds qt3support qt4 quicktime rdesktop readline scanner sdl semantic-desktop session smp snmp speex spell sqlite sse sse2 sse3 ssl startup-notification suid svg symlink syslog tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vim-syntax vnc vorbis wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
USE_PYTHON="2.7 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 lbv5051 2015-04-08 04:39:06 UTC
Created attachment 400804 [details]
build.log
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-04-08 14:59:48 UTC
  08 Apr 2015; Justin Lecher <jlec@gentoo.org>
  +files/p7zip-9.38.1-osversion.patch, p7zip-9.38.1.ebuild:
  Fix compilation problems on x86, bug #545912