Problem: g++ -c -O3 -fno-rtti -fno-exceptions -Wno-deprecated -DIN_ADDR_T=in_addr_t -DVERSION=\"1.5.0\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -fPIC ServerStore.cpp RenderExtension.h:231: error: ISO C++ forbids declaration of 'RenderMinorExtensionStore' with no type RenderExtension.h:231: error: expected ';' before '*' token RenderExtension.h:233: error: ISO C++ forbids declaration of 'RenderMinorExtensionStore' with no type RenderExtension.h:233: error: expected ';' before '*' token make: *** [ClientStore.o] Error 1 make: *** Waiting for unfinished jobs.... emerge --info: Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.3.6-r2, 2.6.14-rc5-mm1 i686) ================================================================= System uname: 2.6.14-rc5-mm1 i686 AMD Athlon(tm) XP 2800+ Gentoo Base System version 1.12.0_pre14 distcc[13900] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc/state failed: No such file or directory [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.3.5-r2, 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 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -ggdb -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/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/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -ggdb -O2 -pipe" DISTDIR="/mnt/aux/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /mnt/aux/portage-overlay" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 7zip aac acpi aim alsa ao apache2 audiofile avi bash-completion bzip2 chroot cli crypt cups curl emacs fam ffmpeg flac flood gd gif glut gmp gstreamer idn imagemagick jack joystick jpeg lcms libsamplerate mad mhash mikmod mmap mmx mng mp3 mp4live mpeg mpeg2 mysql ncurses nocardbus nosendmail nptl nptlonly offensive ogg oscar pam pcre php png readline rtc ruby sharedmem slang sndfile speex sse ssl szip theora tiff transcode udev unicode usb utf8 uudeview vidix vorbis webdav xml xvid zip zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Created attachment 77678 [details, diff] nxcomp-1.5.0-gcc4.patch Patch from site stripped from copyright notice (saying it's BSD/GPL-2). Patch works.
Created attachment 77679 [details, diff] nxcomp-1.5.0-r1.ebuild.diff Patch to ebuild, with modular X bonus.
Those patches wfm, many thanks
=net-misc/nxssh-1.5.0-r2 from the overlay ebuild fails to compile with GCC4, unlike =net-misc/nxssh-1.5.0 from the official portage. i686-pc-linux-gnu-g++ -c -O3 -fno-rtti -fno-exceptions -Wmissing-declarations -Wnested-externs -DIN_ADDR_T=in_addr_t -DVERSION=\"1.5.0\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith ServerStore.cpp cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC but not for C++ In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include/g++-v4/backward/iostream.h:31, from Misc.h:21, from Message.h:25, from ServerStore.h:21, from ServerStore.cpp:18: /usr/lib/gcc/i686-pc-linux-gnu/4.0.2/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. RenderExtension.h:231: error: ISO C++ forbids declaration of 'RenderMinorExtensionStore' with no type RenderExtension.h:231: error: expected ';' before '*' token RenderExtension.h:233: error: ISO C++ forbids declaration of 'RenderMinorExtensionStore' with no type RenderExtension.h:233: error: expected ';' before '*' token make: *** [ClientStore.o] Error 1 make: *** Waiting for unfinished jobs....
All of these cleanups look good to me. Stuart, can we please get them added?
Hi, I've added the GCC-4 patch to Portage. Many thanks for it. I'll come back and tackle modular-X support when I have a modular-X system up and working. Best regards, Stu