Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118706 - media-gfx/jhead-2.5 does not compile with gcc4 (patch included)
Summary: media-gfx/jhead-2.5 does not compile with gcc4 (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-01-11 14:12 UTC by Bernard Cafarelli
Modified: 2006-01-11 15:09 UTC (History)
0 users

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


Attachments
GCC 4 patch to jhead 2.5 (jhead-2.5-gcc40.patch,1.46 KB, patch)
2006-01-11 14:13 UTC, Bernard Cafarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Cafarelli gentoo-dev 2006-01-11 14:12:14 UTC
jhead was recently bumped to version 2.5, , a few gc4 fixes are still needed to let it compile:

>>> Compiling source in /var/tmp/portage/jhead-2.5/work/jhead-2.5 ...
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c jhead.c -o jhead.o
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c jpgfile.c -o jpgfile.o
jpgfile.c: In function 'SaveThumbnail':
jpgfile.c:349: attention : pointer targets in assignment differ in signedness
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c exif.c -o exif.o
jhead.c: In function 'ProcessFile':
jhead.c:935: attention : pointer targets in assignment differ in signedness
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c gpsinfo.c -o gpsinfo.o
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c makernote.c -o makernote.o
exif.c: In function 'PrintFormatNumber':
exif.c:332: erreur: membre gauche de l'affectation invalide
make: *** [exif.o] Erreur 1

!!! ERROR: media-gfx/jhead-2.5 failed.

the older (jhead 2.4) gcc4 patch does not apply cleanly, so I made a new one removing the warnings and the error

emerge info:
Portage 2.1_pre3-r1 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-ck1 x86_64)
=================================================================
System uname: 2.6.15-ck1 x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System version 1.12.0_pre13
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mir.zyrianes.net/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/gentopia"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi aim alsa audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cddb cdr crypt cups curl dbus dga dio dlloader dts dvb dvd dvdr dvdread emboss encode ethereal exif expat ffmpeg fftw flac foomaticdb fortran ftp gb gcj gd gdbm geoip gif gimp glut gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv idn imagemagick imap imlib ipv6 jabber java jikes joystick jpeg junit lcms libcaca libwww live lua lzw lzw-tiff mad matroska mbox mikmod mime mng mono mozilla mp3 mpeg msn musicbrainz nas ncurses nls nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl php pic png posix ppds python qt quicktime readline real recode ruby samba scanner sdl slang speex spell sqlite ssl svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd vorbis wifi wmf wxwindows xface xine xinerama xml xml2 xmms xosd xpm xv xvid yahoo zlib elibc_glibc kernel_linux linguas_fr linguas_fr_FR userland_GNU"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Bernard Cafarelli gentoo-dev 2006-01-11 14:13:11 UTC
Created attachment 76861 [details, diff]
GCC 4 patch to jhead 2.5
Comment 2 Alberto Zennaro 2006-01-11 14:58:27 UTC
This patch works on ~ppc with gcc 4.0.2
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2006-01-11 15:09:41 UTC
Thanks, in cvs.