nxcomp-1.4.0-23 wont compile; wrong cc1plus command line options and errors in Types.h Reproducible: Always Steps to Reproduce: 1.emerge -v nxcomp 2. 3. Actual Results: g++ -c -O3 -Wno-deprecated -Wmissing-declarations -Wnested-externs - DIN_ADDR_T=in_addr_t -DVERSION=\"1.4.0\" -I/usr/X11R6/include - DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" - DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes Loop.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++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ touch depend.status g++ -c -O3 -Wno-deprecated -Wmissing-declarations -Wnested-externs - DIN_ADDR_T=in_addr_t -DVERSION=\"1.4.0\" -I/usr/X11R6/include - DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" - DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes Binder.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++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ g++ -c -O3 -Wno-deprecated -Wmissing-declarations -Wnested-externs - DIN_ADDR_T=in_addr_t -DVERSION=\"1.4.0\" -I/usr/X11R6/include - DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" - DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes Children.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++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ In file included from Control.h:24, from Loop.cpp:69: Types.h: In member function `void T_data::clear()': Types.h:95: error: `start' undeclared (first use this function) Types.h:95: error: (Each undeclared identifier is reported only once for each function it appears in.) Types.h:95: error: `finish' undeclared (first use this function) Types.h:95: error: `destroy' undeclared (first use this function) Types.h:97: error: `deallocate' undeclared (first use this function) Types.h:99: error: `end_of_storage' undeclared (first use this function) Types.h: In member function `void T_messages::clear()': Types.h:129: error: `start' undeclared (first use this function) Types.h:129: error: `finish' undeclared (first use this function) Types.h:129: error: `destroy' undeclared (first use this function) Types.h:131: error: `deallocate' undeclared (first use this function) Types.h:133: error: `end_of_storage' undeclared (first use this function) In file included from Children.cpp:27: Types.h: In member function `void T_data::clear()': Types.h:95: error: `start' undeclared (first use this function) Types.h:95: error: (Each undeclared identifier is reported only once for each function it appears in.) Types.h:95: error: `finish' undeclared (first use this function) Types.h:95: error: `destroy' undeclared (first use this function) Types.h:97: error: `deallocate' undeclared (first use this function) Types.h:99: error: `end_of_storage' undeclared (first use this function) Types.h: In member function `void T_messages::clear()': Types.h:129: error: `start' undeclared (first use this function) Types.h:129: error: `finish' undeclared (first use this function) Types.h:129: error: `destroy' undeclared (first use this function) Types.h:131: error: `deallocate' undeclared (first use this function) Types.h:133: error: `end_of_storage' undeclared (first use this function) make: *** [Children.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Loop.o] Error 1 !!! ERROR: net-misc/nxcomp-1.4.0 failed. !!! Function src_compile, Line 27, Exitcode 2 !!! compile problem !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Error-free compilation :) Trying to do some experiments with freenx (commented out the entry in package.mask) but emerge fails when getting to nxcomp-sources while doing: #emerge -Dpv net-misc/nxserver-freenx These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-misc/nxcomp-1.4.0 0 kB [ebuild UD] net-misc/nxproxy-1.3.2 [1.4.0] 73 kB [ebuild N ] net-misc/nxssh-1.4.0 +ipv6 +kerberos +pam +tcpd 839 kB [ebuild UD] net-misc/nxclient-1.3.2-r1 [1.4.0-r2] 823 kB [ebuild N ] dev-tcltk/expect-5.40.0-r2 +X 509 kB [ebuild N ] net-misc/nxserver-freenx-0.2.4 23 kB Total size of downloads: 2,268 kB Let me know if I can help testing patches. Thanks! /
nxcomp-1.4.0-23 wont compile; wrong cc1plus command line options and errors in Types.h Reproducible: Always Steps to Reproduce: 1.emerge -v nxcomp 2. 3. Actual Results: g++ -c -O3 -Wno-deprecated -Wmissing-declarations -Wnested-externs - DIN_ADDR_T=in_addr_t -DVERSION=\"1.4.0\" -I/usr/X11R6/include - DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" - DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes Loop.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++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ touch depend.status g++ -c -O3 -Wno-deprecated -Wmissing-declarations -Wnested-externs - DIN_ADDR_T=in_addr_t -DVERSION=\"1.4.0\" -I/usr/X11R6/include - DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" - DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes Binder.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++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ g++ -c -O3 -Wno-deprecated -Wmissing-declarations -Wnested-externs - DIN_ADDR_T=in_addr_t -DVERSION=\"1.4.0\" -I/usr/X11R6/include - DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" - DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith -Wstrict- prototypes -Wmissing-prototypes Children.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++ cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ In file included from Control.h:24, from Loop.cpp:69: Types.h: In member function `void T_data::clear()': Types.h:95: error: `start' undeclared (first use this function) Types.h:95: error: (Each undeclared identifier is reported only once for each function it appears in.) Types.h:95: error: `finish' undeclared (first use this function) Types.h:95: error: `destroy' undeclared (first use this function) Types.h:97: error: `deallocate' undeclared (first use this function) Types.h:99: error: `end_of_storage' undeclared (first use this function) Types.h: In member function `void T_messages::clear()': Types.h:129: error: `start' undeclared (first use this function) Types.h:129: error: `finish' undeclared (first use this function) Types.h:129: error: `destroy' undeclared (first use this function) Types.h:131: error: `deallocate' undeclared (first use this function) Types.h:133: error: `end_of_storage' undeclared (first use this function) In file included from Children.cpp:27: Types.h: In member function `void T_data::clear()': Types.h:95: error: `start' undeclared (first use this function) Types.h:95: error: (Each undeclared identifier is reported only once for each function it appears in.) Types.h:95: error: `finish' undeclared (first use this function) Types.h:95: error: `destroy' undeclared (first use this function) Types.h:97: error: `deallocate' undeclared (first use this function) Types.h:99: error: `end_of_storage' undeclared (first use this function) Types.h: In member function `void T_messages::clear()': Types.h:129: error: `start' undeclared (first use this function) Types.h:129: error: `finish' undeclared (first use this function) Types.h:129: error: `destroy' undeclared (first use this function) Types.h:131: error: `deallocate' undeclared (first use this function) Types.h:133: error: `end_of_storage' undeclared (first use this function) make: *** [Children.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Loop.o] Error 1 !!! ERROR: net-misc/nxcomp-1.4.0 failed. !!! Function src_compile, Line 27, Exitcode 2 !!! compile problem !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Error-free compilation :) Trying to do some experiments with freenx (commented out the entry in package.mask) but emerge fails when getting to nxcomp-sources while doing: #emerge -Dpv net-misc/nxserver-freenx These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-misc/nxcomp-1.4.0 0 kB [ebuild UD] net-misc/nxproxy-1.3.2 [1.4.0] 73 kB [ebuild N ] net-misc/nxssh-1.4.0 +ipv6 +kerberos +pam +tcpd 839 kB [ebuild UD] net-misc/nxclient-1.3.2-r1 [1.4.0-r2] 823 kB [ebuild N ] dev-tcltk/expect-5.40.0-r2 +X 509 kB [ebuild N ] net-misc/nxserver-freenx-0.2.4 23 kB Total size of downloads: 2,268 kB Let me know if I can help testing patches. Thanks! /©harlie
# emerge info Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r4 i686) ================================================================= System uname: 2.6.8-gentoo-r4 i686 Pentium III (Coppermine) Gentoo Base System version 1.5.3 distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -mfpmath=sse -O3 -mmmx -msse -mno-sse2 -mno-sse3 -mno-3dnow -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -mfpmath=sse -O3 -mmmx -msse -mno-sse2 -mno-sse3 -mno-3dnow -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo ftp://ftp.sunet.se/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu ftp://ftp.solnet.ch/mirror/Gentoo/ ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://mir.zyrianes.net/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://gentoo.gehlin.com/gentoo-portage" USE="X X509 afs apache2 avi bcmath berkdb bitmap-fonts bzlib cdb cdr cpdflib crypt cups dba dedicated dio divx4linux dvb dvd dvdr encode esd ethereal extensions f77 foomaticdb ftp gd gd-external gdbm gif gmp gnome gnutls gstreamer gtk gtk2 icq imagemagick imap imlib ipv6 java javascript jpeg kde kerberos krb4 ldap libg++ libwww lm_sensors mad mailwrapper md5sum mikmod mime mmx mng motif mozilla mpeg msn mysql mysqli nas ncurses nls nntp nocardbus oggvorbis pam pcre pdflib perl php plotutils png pnp python qt readline samba sasl sdl shared sharedmem slang snmp sockets sse ssl szip tcltk tcpd tiff truetype unicode usb vhosts wmf x86 xinerama xml2 xmms xosd xpm xprint xvid zlib"
Created attachment 41870 [details, diff] makefile.in.patch Patch to get rid of gcc-complaints, to save as /usr/portage/net-misc/nxcomp/files/nxcomp-1.4.0.makefile.in.patch
Created attachment 41874 [details, diff] types.h.patch Patch to rid of Types.h errors, to save as /usr/portage/net-misc/nxcomp/files/nxcomp-1.4.0.types.h.patch
Created attachment 41879 [details] Proposal to nxcomp-1.4.0-r1.ebuild Proposal to nxcomp-1.4.0-r1.ebuild
Didn't get rid of some warnings: 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++ Package compiled & installed OK, but I can't say for sure that it works cos I don't know how to test it... Someone could perhaps tell me how to test? /
Didn't get rid of some warnings: 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++ Package compiled & installed OK, but I can't say for sure that it works cos I don't know how to test it... Someone could perhaps tell me how to test? /©harlie
Works for me. (i saw those warnings too, but they _should_ not do any harm, just a cosmetic issue) But I had to emerge nxcomp-1.4.0 manually, shouldn't it be a dependency of nxclient-1.4.0?
Bump! Any chance to get theese patches applied to portage? :) Thanks! /
Bump! Any chance to get theese patches applied to portage? :) Thanks! /©harlie
please add fixes to portage. it's nice to be able to compile this with gcc 3.4.
*** Bug 64066 has been marked as a duplicate of this bug. ***
Hrm. I don't use gcc 3.4 myself, as it's not yet considered ready for widespread use on x86. Have you tried this w/ nxcomp-1.4.0-30 at all? I won't be committing the nxcomp ebuild. The nxcomp library is installed through the net-misc/nx-x11 ebuild now. net-misc/nxcomp will be going away when we drop support for NX-1.3.2. Best regards, Stu
*** Bug 72112 has been marked as a duplicate of this bug. ***
Stu, sorry for not gettin back for so long :/ Well, no; I haven't tried nxcomp-1.4.0-30 since it ain't available through portage (anymore?). I have only nxcomp-1.3.2-r1.ebuild in my portage, and it's having the same compilation errors as bug subject.... Anyway, as you said, I'm skipping this ebuild and try to emerge nxserver-freenx (with the dep. of nx-x11) but it doesn't compile... But I guess, that's another bug :) Thanks! /Charlie
Please try the new nx-x11-1.4.0-r4 version; this has compiled for me on ppc (which uses gcc-3.4). Best regards, Stu
Hi, the new Version compiles on my System too! But when i start nxviewer i get this error. junior@pcjunior ~ $ nxviewer nxviewer: symbol lookup error: /usr/NX/lib/libXcompext.so.1: undefined symbol: _NXEnableCleanGet nxclient works fine MfG Christian
Closing this bug as I have no longer a problem, works like a charm w. net-misc/nx-x11-1.4.0-r4 and net-misc/nxserver-freenx-0.2.8. Can even suspend/resume WindowMaker-sessions, but NOT between OSes, e.g. a session started w. nxclient on a WinXP couldn't be resumed by a nxclient in Linux and vice versa. Anyway that's probably another bug at !M. Thanks! /Charlie