media-video/vlc-1.1.13 fails with: CXX libskins2_plugin_la-theme_loader.lo src/theme_loader.cpp: In function ‘int gzclose_frontend(int)’: src/theme_loader.cpp:771:33: error: invalid conversion from ‘void*’ to ‘gzFile_s*’ src/theme_loader.cpp:771:33: error: initializing argument 1 of ‘int gzclose(gzFile_s*)’ src/theme_loader.cpp: In function ‘int gzread_frontend(int, void*, size_t)’: src/theme_loader.cpp:780:56: error: invalid conversion from ‘void*’ to ‘gzFile_s*’ src/theme_loader.cpp:780:56: error: initializing argument 1 of ‘int gzread(gzFile_s*, void*, unsigned int)’ src/theme_loader.cpp: In function ‘int gzwrite_frontend(int, const void*, size_t)’: src/theme_loader.cpp:789:76: error: invalid conversion from ‘void*’ to ‘gzFile_s*’ src/theme_loader.cpp:789:76: error: initializing argument 1 of ‘int gzwrite(gzFile_s*, const void*, unsigned int)’ make[6]: *** [libskins2_plugin_la-theme_loader.lo] Error 1 make[6]: Leaving directory `/var/tmp/portage/media-video/vlc-1.1.13/work/vlc-1.1.13/modules/gui/skins2' make[5]: *** [all] Error 2 make[5]: Leaving directory `/var/tmp/portage/media-video/vlc-1.1.13/work/vlc-1.1.13/modules/gui/skins2' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/media-video/vlc-1.1.13/work/vlc-1.1.13/modules/gui' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-1.1.13/work/vlc-1.1.13/modules/gui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-1.1.13/work/vlc-1.1.13/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-1.1.13/work/vlc-1.1.13' make: *** [all] Error 2 emake failed Reproducible: Always Steps to Reproduce: 1. 2.emerge =media-video/vlc-1.1.13 3. Actual Results: CXX libskins2_plugin_la-theme_loader.lo src/theme_loader.cpp: In function ‘int gzclose_frontend(int)’: src/theme_loader.cpp:771:33: error: invalid conversion from ‘void*’ to ‘gzFile_s*’ src/theme_loader.cpp:771:33: error: initializing argument 1 of ‘int gzclose(gzFile_s*)’ src/theme_loader.cpp: In function ‘int gzread_frontend(int, void*, size_t)’: src/theme_loader.cpp:780:56: error: invalid conversion from ‘void*’ to ‘gzFile_s*’ src/theme_loader.cpp:780:56: error: initializing argument 1 of ‘int gzread(gzFile_s*, void*, unsigned int)’ src/theme_loader.cpp: In function ‘int gzwrite_frontend(int, const void*, size_t)’: src/theme_loader.cpp:789:76: error: invalid conversion from ‘void*’ to ‘gzFile_s*’ src/theme_loader.cpp:789:76: error: initializing argument 1 of ‘int gzwrite(gzFile_s*, const void*, unsigned int)’ make[6]: *** [libskins2_plugin_la-theme_loader.lo] Error 1 Expected Results: To build and install fine! emerge --info '=media-video/vlc-1.1.13' Portage 2.2.0_alpha79_p68 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r2, 3.1.10-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.1.10-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6600_@_2.20GHz-with-gentoo-2.1 Timestamp of tree: Tue, 31 Jan 2012 07:00:01 +0000 ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.11.2-r1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo local Installed sets: @kde, @koffice ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ftree-vectorize -ftree-loop-linear" 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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -O2 -pipe -ftree-vectorize -ftree-loop-linear -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs candy ccache distlocks ebuild-locks fail-clean fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://gentoo.osuosl.org http://mirrors.ludost.net/gentoo/ ftp://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.bg/ http://ftp.gentoo.bg/" LANG="en_GB.UTF-8" LC_ALL="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags" LINGUAS="en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X accessibility acl acpi alsa amd64 bash-completion bitmap-fonts bluetooth branding cdr cli consolekit dbus device-mapper dri dvd dvdr dvdread egl gles gpm ipv6 kde kde4 lirc mmx mmxext mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin opengl openvg oss pam plasma policykit pppd pulseaudio python qt4 reports session spell spl sse sse2 sse3 ssl ssse3 threads truetype truetype-fonts type1-fonts udev unicode vdpau xcomposite xine xvmc zeroconf zsh-completion" ALSA_CARDS="hda-nvidia hda-intel" 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" CAMERAS="ptp2" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech clientdebug earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar timing tnt tripmate tsip ubx" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= media-video/vlc-1.1.13 was built with the following: USE="X a52 aac aalib alsa avahi bidi cdda cddb (consolekit) dbus dc1394 dirac directfb dts dvb dvd fbcon ffmpeg flac fluidsynth fontconfig gcrypt ggi gnutls id3tag ieee1394 kate kde libass libcaca libnotify libproxy libtiger libv4l libv4l2 lirc live lua matroska mmx modplug mp3 mpeg mtp (multilib) musepack ncurses nsplugin ogg opengl optimisememory oss png (policykit) projectm pulseaudio pvr qt4 remoteosd rtsp schroedinger sdl sdl-image shine shout skins speex sqlite sse stream svg taglib theora truetype twolame udev upnp v4l vaapi vcdx vlm vorbis wma-fixed x264 xcb xml xosd xv zvbi (-altivec) -atmo -debug -gme -gnome -httpd -jack -run-as-root -samba (-svga) (-win32codecs)"
Created attachment 300535 [details] build.log I don't know if that is relevant but i just upgraded to qt-4.8.0
Try with USE="-skins". The error is because incompatible code with zlib-1.2.5.2 and up (like 1.2.6)
Seems we just need to backport upstream patch as per: http://trac.videolan.org/vlc/ticket/5964
Created attachment 300539 [details, diff] vlc-1.1.13-zlib-1.2.5.2.patch Fix building with zlib >= 1.2.5.2
Created attachment 300541 [details] media-video/vlc-1.1.13.ebuild Well I edited the ebuild but patch fails. What am I doing wrong ?
(In reply to comment #5) > Created attachment 300541 [details] > media-video/vlc-1.1.13.ebuild > > Well I edited the ebuild but patch fails. > What am I doing wrong ? Use src_prepare() instead of src_unpack() because the src_unpack() doesn't switch to the source directory ${S}
Created attachment 300545 [details] media-video/vlc-1.1.13.ebuild Thank you! Now it compiles ;)
grabbed the patch from master and backported it to 1.1, thanks!
*** Bug 401861 has been marked as a duplicate of this bug. ***