Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274206 - media-gfx/showimg-0.9.5-r1 fails to build with gcc-4.4.0
Summary: media-gfx/showimg-0.9.5-r1 fails to build with gcc-4.4.0
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 09:57 UTC by Matthias Schwarzott
Modified: 2010-02-24 15:21 UTC (History)
4 users (show)

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


Attachments
complete build log (media-gfx:showimg-0.9.5-r1:20090615-095234.log,237.79 KB, text/plain)
2009-06-15 09:58 UTC, Matthias Schwarzott
Details
My emerge --info (info.txt,4.75 KB, text/plain)
2009-08-28 16:24 UTC, Alexey Shildyakov
Details
Fixes compilation on my system (amd64, gcc-4.4) (showimg-0.9.5-gcc-4.4.patch,1.17 KB, patch)
2009-10-18 20:17 UTC, Alexandra Parker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2009-06-15 09:57:55 UTC
media-gfx/showimg-0.9.5-r1 fails to build with gcc-4.4.0.

/usr/qt/3/bin/moc ./connection.h -o connection.moc
/bin/sh ../../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../showimg/kexi -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium3 -mtune=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions  -include ../../../showimg/kexi/kexi_global.h -D__KEXIDB__ -DMAKE_KEXI_DB_LIB -include ../../../showimg/kexi/kexidb/global.h -c -o connection.lo connection.cpp
connection.cpp:790:2: warning: #warning IS this ok for all engines?: if (!autoinc && !field->isPrimaryKey() && field->isNotNull())
In file included from /usr/qt/3/include/qwindowdefs.h:47,
                 from /usr/qt/3/include/qobject.h:46,
                 from ../../../showimg/kexi/kexidb/connection.h:23,
                 from connection.cpp:20:
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':
/usr/qt/3/include/qstring.h:197: warning: conversion to 'char' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/usr/qt/3/include/qstring.h:222: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/usr/qt/3/include/qstring.h:223: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/usr/qt/3/include/qstring.h:267: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/usr/qt/3/include/qstring.h:365: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/usr/qt/3/include/qstring.h:365: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
In file included from /usr/qt/3/include/qobject.h:48,
                 from ../../../showimg/kexi/kexidb/connection.h:23,
                 from connection.cpp:20:
/usr/qt/3/include/qevent.h: In constructor 'QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason, const QPoint&, const QPoint&, int)':
/usr/qt/3/include/qevent.h:432: warning: conversion to 'unsigned char' from 'uint' may alter its value
/usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)':
/usr/qt/3/include/qevent.h:523: warning: conversion to 'unsigned char' from 'uint' may alter its value
In file included from connection.cpp:30:
cursor.h: At global scope:
cursor.h:223: warning: 'typedef' was ignored in this declaration
In file included from ../../../showimg/kexi/kexiutils/identifier.h:24,
                 from connection.cpp:37:
../../../showimg/kexi/kexiutils/validator.h:47: warning: 'typedef' was ignored in this declaration
connection.cpp: In member function 'QString KexiDB::Connection::selectStatement(KexiDB::QuerySchema&, bool, int) const':
connection.cpp:955: error: 'KexiDB::Field' is an inaccessible base of 'KexiDB::QueryAsterisk'
make[5]: *** [connection.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5-r1/work/showimg-0.9.5/showimg/kexi/kexidb'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5-r1/work/showimg-0.9.5/showimg/kexi/kexidb'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5-r1/work/showimg-0.9.5/showimg/kexi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5-r1/work/showimg-0.9.5/showimg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/showimg-0.9.5-r1/work/showimg-0.9.5'
make: *** [all] Error 2
 *
 * ERROR: media-gfx/showimg-0.9.5-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4302:  Called kde_src_compile 'all'
 *             environment, line 3110:  Called kde_src_compile 'make'
 *             environment, line 3102:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make


Using "CXX=g++-4.3.3 emerge showimg" it builds fine.

$ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.0, glibc-2.10.1-r0, 2.6.29-tuxonice-r3 i686)
=================================================================
System uname: Linux-2.6.29-tuxonice-r3-i686-AMD_Athlon-tm-_XP_3000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 14 Jun 2009 09:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     9999
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -mtune=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/udev/rules.d /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -mtune=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/my-distfiles"
FEATURES="assume-digest ccache distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://mirror.jamit.de/gentoo/"
LANG="de_DE.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="de en en_GB"
PKGDIR="/usr/my-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/overlays/zzam /usr/local/overlays/vdr/vdr-xine-overlay /usr/local/overlays/vdr/testing /usr/local/overlays/layman/sunrise /usr/local/overlays/layman/science /usr/local/overlays/gentoo.de /usr/local/overlays/dev-overlay"
SYNC="cvs://zzam@cvs.gentoo.org:/var/cvsroot"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa amr apache2 artswrappersuid audacious bash-completion berkdb bluetooth branding bzip2 cairo cap caps cdaudio cddb cdparanoia cdr cli cracklib crypt css cups curl cvs dbus doc dri dts dvb dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg firefox font-server fortran fuse gcj gdbm gif gimpprint glut gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 hal hbci iconv imap ipv6 isdnlog java jpeg jpeg2k kde kdeprefix kdexdeltas kipi lapack latex libdvdread libnotify lirc logitech-mouse mad midi mikmod mjpeg mmx mmxext mng mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin nvram offensive ogg opengl openmp pam pcre pdf perl php png ppds pppd projectx python qt3 qt3support qt4 quotes readline reflection regex samba session sms sndfile spell spl sql sqlite sse ssl startup-notification subversion svg sysfs taglib tcltk tcpd theora threads tiff truetype unicode usb userlocales v4l v4l2 vcd vdr visualization vorbis webdav win32codecs wma wmf x264 x86 xcomposite xext xinerama xml xorg xrandr xslt xulrunner xv xvid zlib zvbi" ALSA_CARDS="emu10k1 intel8x0" 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 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" CAMERAS="ptp2" DVB_CARDS="ttpci usb-wt220u dibusb-usb2 usb-dib0700" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text xosd" LINGUAS="de en en_GB" LIRC_DEVICES="serial" QEMU_SOFTMMU_TARGETS="i386 x86_64%" QEMU_USER_TARGETS="i386 x86_64" USERLAND="GNU" VIDEO_CARDS="nvidia v4l vesa vbdev nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Schwarzott gentoo-dev 2009-06-15 09:58:22 UTC
Created attachment 194754 [details]
complete build log
Comment 2 Alexey Shildyakov 2009-08-28 16:23:35 UTC
Confirm it on ~amd64
Comment 3 Alexey Shildyakov 2009-08-28 16:24:30 UTC
Created attachment 202507 [details]
My emerge --info
Comment 4 Navid Zamani 2009-09-19 01:24:19 UTC
Same problem here. I’ve written a mail to the developer (Richard Groult at http://www.jalix.org/projects/showimg/), in the hope he might chime in. :)

I have GCC 4.4.1 installed. So it’s not just 4.4.0. This is the last package with the old libxcb in it.
Comment 5 Navid Zamani 2009-09-19 01:26:34 UTC
Are you sure it’s because of GCC at all?
The following line in the build log suggests a incompatibility with (a perhaps new version of) KexiDB:

> connection.cpp:955: error: 'KexiDB::Field' is an inaccessible base of
'KexiDB::QueryAsterisk'
Comment 6 anomen 2009-10-13 07:52:20 UTC
confirmed,
x86_64-pc-linux-gnu-4.3.3 compiles
x86_64-pc-linux-gnu-4.4.1 fails
Comment 7 Alexandra Parker 2009-10-18 20:17:56 UTC
Created attachment 207507 [details, diff]
Fixes compilation on my system (amd64, gcc-4.4)

I changed from protected to public inheritance one a class in kexidb. I don't know if this is safe, but the code is casting it like it should be public. This allowed compilation to continue until it met discarded qualifiers in exif.cpp:413. gcc picked char *strstr(char*,const char*) to match the assignment of the return, but the first arg was const, so I just changed the assignment target to const char* and gcc picked const char *strstr(const char*, const char*) instead.

I can't test the executable from where I am, only the compilation.
Comment 8 Navid Zamani 2009-10-21 02:58:50 UTC
What does that mean: PMASKED / Pending removal: 2009-12-01?

Sounds like the top-down Nazi commandment of doom… eradicating everything that’s “incompatible”. ;)

Google tells me nothing. Could someone elaborate?
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-10-30 18:22:37 UTC
Heh.

The "Status Whiteboard" and "Keywords" fields are used by us to search easily for certain bugs.

Showimg is KDE3-only application, and KDE3 will be removed from tree, there's nothing more to it.
Comment 10 Navid Zamani 2009-10-31 01:03:53 UTC
(In reply to comment #9)
> Showimg is KDE3-only application, and KDE3 will be removed from tree, there's
> nothing more to it.

Which is sad, since KDE4 is is still as giant unusable piece of trash, which in some aspects is a retrogression and starts to support the same concepts of total global retardation (by preferring simplicity over freedom, instead of *both*), that Gentoo is so proud of. :(

I, for one, will not even think of moving away from KDE 3.5.10 before KDE 4.5 is out, and then I will only check to see how heavy the modifications would have to be, to make it usable for people who actually *use* both their brain and the computer, instead of just playing with colorful clickables.

So then… Let's close this bug, just as the idea of KDE as a good desktop environment. :/
Comment 11 Navid Zamani 2009-11-13 17:51:56 UTC
Oh by the way. I got it to work. To those who want to keep it, I recommend the “kde3” overlay.