Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409603 - media-video/smplayer2-0.7.1 with dev-libs/quazip-0.2.3 and sys-libs/zlib-1.2.6 - /usr/include/quazip/ioapi.h:38:44: error: expected initializer before ‘OF’
Summary: media-video/smplayer2-0.7.1 with dev-libs/quazip-0.2.3 and sys-libs/zlib-1.2....
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 07:19 UTC by Markus Peloquin
Modified: 2012-03-25 23: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 Markus Peloquin 2012-03-25 07:19:05 UTC
In file included from /usr/include/quazip/zip.h:58:0,
                 from /usr/include/quazip/quazip.h:39,
                 from /var/tmp/portage/media-video/smplayer2-0.7.1_p20120301/work/smplayer2-0.7.1_p20120301/src/findsubtitles/findsubtitleswindow.cpp:39:
/usr/include/quazip/ioapi.h:38:44: error: expected initializer before ‘OF’
/usr/include/quazip/ioapi.h:39:44: error: expected initializer before ‘OF’
/usr/include/quazip/ioapi.h:40:45: error: expected initializer before ‘OF’
[...]

zlib-1.2.6 changed the OF macro to _Z_OF, and <quazip-0.4.3 (quazip adapted to the new zlib sometime after 0.4).

I found that bug 388705 decided to ignore the problem, even though the fix is simple: have <dev-libs/quazip-0.4.3 depend on <sys-libs/zlib-1.2.6. Obviously, the workaround is to just keyword the newer quazip.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-25 13:50:51 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
3) Please post your `emerge -vpq media-video/smplayer' output in a comment.
Comment 2 Markus Peloquin 2012-03-25 17:13:32 UTC
I should amend the above to say that <dev-libs/quazip-0.4.3 should depend on <sys-libs/zlib-1.2.5.1. The only official versions were 1.2.5 and 1.2.6, so those are the only ones I examined.

Since I opened this bug, I updated my version of quazip so smplayer2 would build. To downgrade it, I'd need to downgrade zlib and virtuoso-server, and I'm not sure if that's it. Then downgrade quazip and bring zlib and virtuoso-server back to their current versions. ... I read the output of build.log. That was THE error.



Portage 2.2.0_alpha95 (default/linux/amd64/10.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.3.0-gentoo x86_64)
=================================================================
System uname: Linux-3.3.0-gentoo-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.1
Timestamp of tree: Sun, 25 Mar 2012 06:15:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo perl-experimental enlightenment galadriel
Installed sets: @enlightenment-live, @enlightenment-modules
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10 AdobeFlash-10.1 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS=""
GENTOO_MIRRORS=" http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE en en_US nb nb_NO no"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/perl-experimental /var/lib/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi afs alsa amd64 arts bash-completion berkdb branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cvs cxx dbus dga directfb dri dts dvd dvdr eds emboss encode exif expat fam fbcon ffmpeg firefox flac fontconfig fortran ftp gcj gd gdu geoip ggi gif gpm gstreamer gtk iconv icu imagemagick imap ipod ipv6 java jpeg jpeg2k kde kerberos ladspa lame lapack latex lcms ldap libedit libnotify lzma lzo mad maildir mbox mms mmx mng modules motroska mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack musicbrainz nas ncurses networkmanager nls nntp nptl nptlonly offensive ogg openal openexr opengl openmp pam pango pcre pdf perl plotutils png policykit portaudio postgres ppds pppd python qt3support qt4 quicktime readline samba sasl sdl semantic-desktop session smp speex spell sse sse2 ssl startup-notification static-libs subversion svg sysfs syslog taglib tcpd theora threads tiff truetype udev unicode usb vim-syntax vorbis wavpack wifi wmf wxwidgets x264 xattr xcb xcomposite xft xine xinetd xml xorg xosd xpm xulrunner xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev keyboard joystick mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE en en_US nb nb_NO no" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx r700 radeon" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



[ebuild   R   ] media-video/smplayer2-0.7.1_p20120301  USE="download-subs -debug" LINGUAS="de en_US -ar -bg -ca -cs -da -el -es -et -eu -fi -fr -gl -hu -it -ja -ka -ko -ku -lt -mk -nl -pl -pt -pt_BR -ro -ru -sk -sl -sr -sv -tr -uk -vi -zh_CN -zh_TW"
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-25 17:45:08 UTC
Sadly, this ChangeLog entry is incomplete:

*quazip-0.4.4 (13 Feb 2012)

  13 Feb 2012; Justin Lecher <jlec@gentoo.org> quazip-0.4.3-r1.ebuild,
  +quazip-0.4.4.ebuild, +files/quazip-0.4.4-zlib.patch, metadata.xml:
  Version Bump

But it should have fixed the issue already. I shouldn't think smplayer is broken because of this.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-25 17:46:56 UTC
Also, it appears you are mixing the stable and unstable branch here. This is generally unsupported, and the bug within the unstable branch has already been fixed in unstable quazip.
Comment 5 Markus Peloquin 2012-03-25 23:30:42 UTC
Invalid, huh?

Strange... my experience has been that I should be able to run an unstable version of something. If I unmask that package, emerge will tell me what else I need to unmask to make it build.

I mean, all I wanted for was something like this in the quazip-0.2.3, quazip-0.3 ebuilds:

-DEPEND="sys-libs/zlib
+DEPEND="<sys-libs/zlib-1.2.5.1
     x11-libs/qt-gui:4"