Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420773 - x11-wm/icewm does not build against x11-libs/libX11-1.5.0 (conflict with deprecated macro in Xlib.h)
Summary: x11-wm/icewm does not build against x11-libs/libX11-1.5.0 (conflict with depr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop WM Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 419473
  Show dependency tree
 
Reported: 2012-06-12 07:44 UTC by Helmut Jarausch
Modified: 2012-06-16 13:27 UTC (History)
1 user (show)

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


Attachments
build log for icewm-1.3.7 (build.log,9.02 KB, text/plain)
2012-06-12 14:48 UTC, Helmut Jarausch
Details
use_ICEWM_deprecated.patch (use_ICEWM_deprecated.patch,711 bytes, patch)
2012-06-13 14:12 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2012-06-12 07:44:35 UTC
x11-libs/libX11-1.50 installs  /usr/include/X11/Xlib.h
which contains in line 1689 onwards

extern XHostAddress *XListHosts(
    Display*		/* display */,
    int*		/* nhosts_return */,
    Bool*		/* state_return */
);
_X_DEPRECATED
extern KeySym XKeycodeToKeysym(
    Display*		/* display */,
#if NeedWidePrototypes
    unsigned int	/* keycode */,
#else
    KeyCode		/* keycode */,
#endif
    int			/* index */
);

which doesn't compile due to the  _X_DEPRECATED line.



emerge --info x11-libs/libX11
Portage 2.2.0_alpha110 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.15-r2, 3.4.0-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.1
Timestamp of tree: Tue, 12 Jun 2012 06:15:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.4_pre20120429::progress, 3.2.4_pre20120429::progress, 3.3_pre20120429::progress
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3, 4.8.0_pre9999::local
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo local sunrise
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j4"
PKGDIR="/usr/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 /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp gnome gpm gtk gtk2 iconv ipv6 jpeg kde lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt qt3support qt4 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="ati radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

x11-libs/libX11-1.5.0 was built with the following:
USE="ipv6 (multilib) -doc -static-libs -test"
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-12 12:09:36 UTC
> dev-lang/python:          2.7.4_pre20120429::progress, 3.2.4_pre20120429::progress, 3.3_pre20120429::progress
> sys-devel/gcc:            4.5.3-r2, 4.6.3, 4.8.0_pre9999::local

Can you please attach logs of the failure that you are seeing? And ensure that it is not related to above packages?
Comment 2 Helmut Jarausch 2012-06-12 14:47:53 UTC
(In reply to comment #1)
> > dev-lang/python:          2.7.4_pre20120429::progress, 3.2.4_pre20120429::progress, 3.3_pre20120429::progress
> > sys-devel/gcc:            4.5.3-r2, 4.6.3, 4.8.0_pre9999::local
> 
> Can you please attach logs of the failure that you are seeing? And ensure
> that it is not related to above packages?

gcc-config -l shows that gcc-4.5.3-r2 is the active compiler (main stream)
eselect python list shows that python2.7 is active which is rock solid (this includes 2.7.4_pre20120429). Furthermore I'm using this Python version
a lot. It's more than unlikely that this version should be the culprit.

I encountered the problem when trying to reinstall  x11-wm/icewm.
I have attached the build log.

It fails with
Entering directory `/var/tmp/portage/x11-wm/icewm-1.3.7/work/icewm-1.3.7/src'
  CXX      ymsgbox.o
In file included from ylib.h:9:0,
                 from ymsgbox.cc:12:
/usr/include/X11/Xlib.h:1694:1: error: 'deprecated' was not declared in this scope
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this is the line mentioned in my first report.

Many thanks for looking into it,
Helmut.
Comment 3 Helmut Jarausch 2012-06-12 14:48:38 UTC
Created attachment 315107 [details]
build log for icewm-1.3.7
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-12 15:46:06 UTC
If other packages fail to build against libX11-1.5.0, please file a separate bug for them.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-13 14:12:29 UTC
Created attachment 315197 [details, diff]
use_ICEWM_deprecated.patch

Patch to make icewm build against libX11-1.5.0
Will apply in a couple of days if there are no objections.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-16 13:27:31 UTC
Fixed in CVS.