While emerging redhat-artwork-0.63-r1 (for gnome 2.2) compilation fails. Reproducible: Always Steps to Reproduce: 1. Start with a clean gnome 2.2 system 2. Try to emerge redhat-artwork Actual Results: Compilation Error Expected Results: It should have compiled Here's about 20 lines of stdio, to trace when it went wrong: gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=i686 -O3 -pipe -Wall -c main.c main.c: In function `cursor_get_image': main.c:243: parse error before `*' main.c:249: `tmp_pixbuf' undeclared (first use in this function) main.c:249: (Each undeclared identifier is reported only once main.c:249: for each function it appears in.) main.c:237: warning: unused variable `image' make[4]: *** [main.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/redhat-artwork-0.63-r1/work/redhat-artwork-0.63/art/cursor/cursorthemegen' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/redhat-artwork-0.63-r1/work/redhat-artwork-0.63/art/cursor' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/redhat-artwork-0.63-r1/work/redhat-artwork-0.63/art' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/redhat-artwork-0.63-r1/work/redhat-artwork-0.63' make: *** [all-recursive-am] Error 2 !!! ERROR: x11-themes/redhat-artwork-0.63-r1 failed. !!! Function src_compile, Line 68, Exitcode 2 !!! (no error message) Here's emerge info: Portage 2.0.47-r2 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r10 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/home/distfiles" PKGDIR="/home/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi cups encode jpeg libg++ libwww mikmod mmx motif mpeg ncurses pdflib quicktime spell truetype xml2 xmms xv berkdb esd gdbm gif gnome gnome-libs gtk imlib java oggvorbis opengl pam perl png python readline sdl slang ssl tcpd tiff X -kde -arts -nls -svga -crypt -qt -qtmt -gpm samba dvd mozilla moznoirc moznocompose" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Redhat is now using a xfree86 cvs snapshot with "translucent" mouse cursor support in its betas (which is where the current version of redhat-artwork is being pulled from). What version of XFree86 are you using?
I was using xfree-4.2.1. Can you give me your opinion on the stability of xfree-4.2.99.4? If that's not a stable enough option, do you have any suggestions for a polished gnome 2.2 theme for my users? I suppose this "bug" is just because I was using the wrong version of xfree! Thanks for the clarification.
I can compile it with xfree-4.2.1, but I need to apply a small patch because of gcc-2.95. Modify the ebuild like this: src_unpack() { cd ${WORKDIR} rpm2targz ${DISTDIR}/${A} tar xzf ${P}*.src.tar.gz tar xzf ${P}.tar.gz cd ${P} patch -p0 < ${FILESDIR}/cursorthemegen-gcc-2.95.patch } and save the following attachement in your redhat-artwork/files directory. I don't think cursor will work with xfree-4.2.1 though, but at least it will emerge and gtk engine will work.
Created attachment 8809 [details, diff] redhat-artwork/files/cursorthemegen-gcc-2.95.patch The gcc-2.95 patch.
TGL, wow, thanks for the patch. How hard would it be to modify the redhat-artwork-6x ebuild to check for gentoo or gcc version? IMHO, this would be a valuable patch for us stability/compatibility freaks who distrust gcc 3.x. (I plan on switching somewhere around 3.4.5, in case anyone's wondering) Wait a second, isn't this called a back-port? I am satisfied with manually patching, and if I'm the only one with this bug, then I suppose it's resolved. Thanks
thanks for the patch. it makes good sense. i wonder what the redhat people were thinking with that main.c .. :) i've committed it to redhat-artwork-0.63-r1 and redhat-artwork-0.65. please test and see if it works for gcc-2.95
works for me