Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281770 - dev-cpp/gtkmm-2.16.0 failes to compile with >=gtk+-2.17*
Summary: dev-cpp/gtkmm-2.16.0 failes to compile with >=gtk+-2.17*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: GNOME C++ Bindings Maintainers (OBSOLETE)
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords: Inclusion
: 292451 305829 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-17 14:58 UTC by Steffen Hau
Modified: 2010-06-17 17:05 UTC (History)
9 users (show)

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


Attachments
copy to $FILESDIR, ebuild patch will go next :-) (gtkmm-2.16.0-recentinfo_cc.patch,678 bytes, patch)
2009-08-19 23:44 UTC, Jan Psota
Details | Diff
ebuild patch, as promised :-) (gtkmm-2.16.0.ebuild.patch,622 bytes, text/plain)
2009-08-19 23:46 UTC, Jan Psota
Details
recent version from ftp.gnome.org (gtkmm-2.18.1.ebuild,907 bytes, text/plain)
2009-09-23 12:27 UTC, Michael Weber (RETIRED)
Details
recent version from ftp.gnome.org (pangomm-2.26.0.ebuild,637 bytes, text/plain)
2009-09-23 12:28 UTC, Michael Weber (RETIRED)
Details
recent version from ftp.gnome.org (glibmm-2.22.1.ebuild,1.28 KB, text/plain)
2009-09-23 12:29 UTC, Michael Weber (RETIRED)
Details
gtkmm-2.18.1.ebuild (gtkmm-2.18.1.ebuild,808 bytes, text/plain)
2009-10-02 13:56 UTC, Michael Weber (RETIRED)
Details
pangomm-2.26.0.ebuild (pangomm-2.26.0.ebuild,534 bytes, text/plain)
2009-10-02 13:57 UTC, Michael Weber (RETIRED)
Details
glibmm-2.22.1.ebuild (glibmm-2.22.1.ebuild,1.18 KB, text/plain)
2009-10-02 13:58 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Hau 2009-08-17 14:58:06 UTC
Build of gtkmm-2.16.0 failes with gtk-2.17+. I get following error:

recentinfo.cc: In member function 'bool
Gtk::RecentInfo::get_application_info(const Glib::ustring&,
Glib::StringArrayHandle&, guint&, time_t&) const':
recentinfo.cc:192: error: invalid conversion from 'gchar**' to 'const gchar**'
recentinfo.cc:192: error: initializing argument 3 of 'gboolean
gtk_recent_info_get_application_info(GtkRecentInfo*, const gchar*, const
gchar**, guint*, time_t*)'

I've installed gtk+ from layman's gnome overlay. There is already a fix for this in gtkmm's master branch (see http://git.gnome.org/cgit/gtkmm/commit/?id=3927a139db7529c2368194e6b2684f5b596e957d). I had to enable maintainer mode in configure, so that all relevant files get regenerated (I didn't know any other way to achieve this). Perhaps one should provide an updated ebuild with gtkmm-2.17 where this issue does not occur.



Reproducible: Always

Steps to Reproduce:
1. emerge gtkmm with gtk-2.17+
2.
3.

Actual Results:  
Build failes


Portage 2.2_rc38 (default/linux/x86/10.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-rc5-HAUIHAU i686)
=================================================================
System uname: Linux-2.6.31-rc5-HAUIHAU-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 17 Aug 2009 10:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 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.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/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="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-j4"
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/layman/sectools /usr/local/portage/layman/gnome /usr/local/portage/layman/hauihau"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility acl acpi alsa apache2 bash-completion berkdb bidi bluetooth branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli cracklib crypt ctype cups curl dbus dedicated dga directfb doc dri dts dv dvd dvdr dvdread encode examples exif ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz glut gmp gnome gnutls gphoto2 gstreamer gtk gtk2 hal htmlhandbook iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 isdnlog java java5 java6 javascript jpeg jpeg2k lame lcms ldap libcaca libnotify libsamplerate lua mad mikmod mmap mmx mng mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls noseamonkey nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcmcia pcre pdf perl php plasma png policykit posix ppds pppd python qt4 quicktime readline reflection rss rtc ruby samba sasl sdl session sndfile snmp sockets spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb userlocales v4l2 vcd vim-syntax visualization vorbis win32codecs x264 x86 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio_qv fuji kodak konica minolta mustek panasonic samsung sonydscf1 sonydscf55 toshiba" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 hubertstar 2009-08-19 10:16:12 UTC
I comfirm this bug.
Comment 2 Jan Psota 2009-08-19 23:44:18 UTC
Created attachment 201747 [details, diff]
copy to $FILESDIR, ebuild patch will go next :-)
Comment 3 Jan Psota 2009-08-19 23:46:54 UTC
Created attachment 201748 [details]
ebuild patch, as promised :-)
Comment 4 Jan Psota 2009-08-20 08:40:31 UTC
I know that it eliminates the effect, not cause, but at least it now compiles.
Comment 5 Steffen Hau 2009-08-25 10:58:43 UTC
The cause is an change in the corresponding function in gtk-2.17+. Your fix has already be included in gtkmm-2.17, but it needs glibmm-2.21+ to build. Perhaps both new versions should be included in the overlay.
Comment 6 Bernard Tremblay 2009-09-01 21:07:42 UTC
(In reply to comment #5)
> The cause is an change in the corresponding function in gtk-2.17+. Your fix has
> already be included in gtkmm-2.17, but it needs glibmm-2.21+ to build. Perhaps
> both new versions should be included in the overlay.
> 

I have gtk+ and gtkmm 2.17.9 from the gnome overlay and I had to install glibmm 2.21.1 and pangomm 2.25.1.3 wich was needed too in a local overlay.  But it compile nicely now.

Thanks for the information,
                      BT
Comment 7 Bernard Tremblay 2009-09-01 21:10:49 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > The cause is an change in the corresponding function in gtk-2.17+. Your fix has
> > already be included in gtkmm-2.17, but it needs glibmm-2.21+ to build. Perhaps
> > both new versions should be included in the overlay.
> > 
> 
> I have gtk+ and gtkmm 2.17.9 from the gnome overlay and I had to install glibmm
> 2.21.1 and pangomm 2.25.1.3 wich was needed too in a local overlay.  But it
> compile nicely now.
> 
> Thanks for the information,
>                       BT
> 

sorry it's rather glibmm 2.21.4 (last build available on 2009-09-01 12h00).
Comment 8 tman 2009-09-10 11:25:03 UTC
it would be nice if someone can fix the depencies of this ebuild for gtkmm in the gnome overlay. or better insert the new gtkmm-2.17 with all needed depencies.

thanks a lot
Comment 9 Michael Weber (RETIRED) gentoo-dev 2009-09-23 12:27:14 UTC
Created attachment 205007 [details]
recent version from ftp.gnome.org

added to http://svn.xmw.de/gentoo-overlay/
Comment 10 Michael Weber (RETIRED) gentoo-dev 2009-09-23 12:28:35 UTC
Created attachment 205008 [details]
recent version from ftp.gnome.org

needed by gtkmm-2.18, added to http://svn.xmw.de/gentoo-overlay/
Comment 11 Michael Weber (RETIRED) gentoo-dev 2009-09-23 12:29:00 UTC
Created attachment 205010 [details]
recent version from ftp.gnome.org

needed by gtkmm-2.18, added to http://svn.xmw.de/gentoo-overlay/
Comment 12 Romain Perier (RETIRED) gentoo-dev 2009-09-24 20:12:17 UTC
You can drop SRC_URL (I think you meant SRC_URI) because already defined by gnome2.eclass, and drop the restrict too

Comment 13 Steffen Hau 2009-09-29 01:49:48 UTC
I've seen that gtkmm-2.16.0 is no longer in gnome-overlay but now in the portage tree. Will there be updated ebuilds from the ebuild maintainers in next future or is gnome-overlay willing to import newer ebuilds in their overlay?
Comment 14 Clemmitt M. Sigler 2009-10-01 13:06:29 UTC
(In reply to comment #12)
> You can drop SRC_URL (I think you meant SRC_URI) because already defined by
> gnome2.eclass, and drop the restrict too

For use on x86:

I took the gtkmm-2.18.1.ebuild, pangomm-2.26.0.ebuild and glibmm-2.22.1.ebuild files attached by Michael Weber and removed the "SRC_UR[IL]" and "restrict" lines from them, then added the ~x86 KEYWORD.  These three ebuilds seem to build and install fine under x86, and initial testing by running apps linking to their dynamic libraries showed no obvious problems.  HTH.

Clemmitt
Comment 15 Michael Weber (RETIRED) gentoo-dev 2009-10-02 13:56:46 UTC
Created attachment 205837 [details]
gtkmm-2.18.1.ebuild

w/o SRC_URI/RESTICT 
w/~x86
Comment 16 Michael Weber (RETIRED) gentoo-dev 2009-10-02 13:57:59 UTC
Created attachment 205839 [details]
pangomm-2.26.0.ebuild

w/o SRC_URI/RESTICT 
w/~x86
Comment 17 Michael Weber (RETIRED) gentoo-dev 2009-10-02 13:58:38 UTC
Created attachment 205840 [details]
glibmm-2.22.1.ebuild

w/o SRC_URI/RESTICT 
w/ ~x86
Comment 18 Michael Weber (RETIRED) gentoo-dev 2009-10-16 18:16:12 UTC
Comment on attachment 205840 [details]
glibmm-2.22.1.ebuild

reviewed version in gnome-overlay
Comment 19 Michael Weber (RETIRED) gentoo-dev 2009-10-16 18:16:56 UTC
Comment on attachment 205839 [details]
pangomm-2.26.0.ebuild

reviewed version in gnome-overlay
Comment 20 Michael Weber (RETIRED) gentoo-dev 2009-10-16 18:20:28 UTC
Comment on attachment 205837 [details]
gtkmm-2.18.1.ebuild

newer working version (2.18.2) in gnome-overlay
Comment 21 Michael Weber (RETIRED) gentoo-dev 2009-10-16 18:24:01 UTC
I think this one is no longer a gnome overlay issue due to updated/newer versions in gnome-overlay. 

Maybe the issue is moved into portage tree, the current /usr/portage/dev-cpp/gtkmm/gtkmm-2.16.0.ebuild from portage reads >=x11-libs/gtk+-2.15.5 but no <x11-libs/gtk+-2.17. I have no machine to test this.

May someone rename/close this bug? thx
Comment 22 Sebastian Luther (few) 2009-11-09 07:47:04 UTC
*** Bug 292451 has been marked as a duplicate of this bug. ***
Comment 23 Sebastian Luther (few) 2009-11-09 07:48:26 UTC
The bug is in the portage tree now. See duplicate above.
Comment 24 Pacho Ramos gentoo-dev 2010-02-20 15:26:59 UTC
*** Bug 305829 has been marked as a duplicate of this bug. ***
Comment 25 Pacho Ramos gentoo-dev 2010-06-17 17:05:56 UTC
We already have compatible versions in the tree for newer gtk+