Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405323 - sys-block/partimage-0.6.9 with sys-libs/zlib-1.2.6 - imagefile.cpp:348:58: erreur: cannot convert ‘gzFile_s**’ to ‘gzFile’ for argument ‘1’ to ‘int gzwrite(gzFile, voidpc, unsigned int)’
Summary: sys-block/partimage-0.6.9 with sys-libs/zlib-1.2.6 - imagefile.cpp:348:58: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 415923 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-22 19:03 UTC by Xavier Miller (RETIRED)
Modified: 2012-09-24 12:16 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,26.77 KB, text/plain)
2012-02-22 20:04 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2012-02-22 19:03:11 UTC
sys-block/partimage-0.6.9 compile with sys-libs/zlib-1.2.5.1-r2 but not with sys-libs/zlib-1.2.6 :

imagefile.cpp: In member function ‘void CImage::write(void*, DWORD, bool)’:
imagefile.cpp:348:58: error: cannot convert ‘gzFile_s**’ to ‘gzFile’ for argument ‘1’ to ‘int gzwrite(gzFile, voidpc, unsign



Reproducible: Always

Steps to Reproduce:
1. install <sys-libs/zlib-1.2.6 and emerge partimage : OK
2. install =sys-libs/zlib-1.2.6 and emerge partimage : NOK
3.
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2012-02-22 19:04:36 UTC
I don't think this is related to GCC-4.6, but with the brand new zlib release (end january 2012)

emerge --info
Portage 2.2.0_alpha88 (default/linux/amd64/10.0/no-multilib, gcc-4.6.2, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 21 Feb 2012 18:30:01 +0000
distcc 3.1 x86_64-gentoo-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3
dev-util/cmake:           2.8.7-r3
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.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
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 pandaboard pd-overlay proaudio qt
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="x86_64-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg candy distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5"
PKGDIR="/var/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="/usr/local/portage/overlay /var/lib/layman/pandaboard /var/lib/layman/pd-overlay /var/lib/layman/pro-audio /var/lib/layman/qt"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 amr apng branding bzip2 cairo cdda cddb cli consolekit cracklib crypt cups cxx dbus device-mapper dri dssi encode exif fat ffmpeg fftw flac fortran gif gpm gstreamer gudev iconv id3tag jack jpeg ladspa lame libsamplerate lxde mmx modules mp3 mpeg mudflap ncurses nls nptl nptlonly ntfs ogg opengl openmp osc pam pcre pdf png policykit pppd qt4 readline rubberband samba sdl session sna sqlite sse sse2 ssl ssse3 svg sysfs tcpd threads tiff truetype udev unicode usb vorbis wmf x264 xcb xorg xvid zlib" ALSA_CARDS="hda-intel usb-audio virmidi" 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" DVB_CARDS="usb-af9015" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-22 19:55:40 UTC
Please attach the entire build log to this bug report.
Comment 3 Xavier Miller (RETIRED) gentoo-dev 2012-02-22 20:04:17 UTC
Created attachment 302903 [details]
build.log

There seems there is a signature change in zlib...
Comment 4 Manfred Knick 2012-03-04 08:40:05 UTC
(In reply to comment #3)

Reason / solution (patch) upstream:

"partimage 0.6.9 bug with zlib"

"partimage erroneously uses gzFile * instead of gzFile.
The patch below corrects this.
Without this patch, partimage will not compile with zlib 1.2.6."

http://www.partimage.org/forums/viewtopic.php?p=2752&sid=c81d830b2605927b66eaf35898a6b55b

Thanks.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-03-04 09:57:03 UTC
+  04 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> partimage-0.6.9.ebuild,
+  +files/partimage-0.6.9-zlib-1.2.5.2.patch:
+  Fix building with zlib >= 1.2.5.2 wrt #405323 by Xavier Miller and Manfred
+  Knick
Comment 6 Michael Palimaka (kensington) gentoo-dev 2012-05-14 15:16:41 UTC
*** Bug 415923 has been marked as a duplicate of this bug. ***
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2012-09-24 12:03:15 UTC
(In reply to comment #6)
> *** Bug 415923 has been marked as a duplicate of this bug. ***

If this is fixed in the new version, please mark it stable as this is breaking stage building.

(I didn't reopened the bug to let you chose between that and a new stabilization bug)
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-09-24 12:16:30 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > *** Bug 415923 has been marked as a duplicate of this bug. ***
> 
> If this is fixed in the new version, please mark it stable as this is
> breaking stage building.
> 
> (I didn't reopened the bug to let you chose between that and a new
> stabilization bug)

See bug 436094.