Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67538 - nxcomp-1.4.0-23 wont compile; errors in Types.h
Summary: nxcomp-1.4.0-23 wont compile; errors in Types.h
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo NX Server project
URL:
Whiteboard:
Keywords:
: 64066 72112 (view as bug list)
Depends on:
Blocks: 64066 76387
  Show dependency tree
 
Reported: 2004-10-14 05:34 UTC by Charlie Gehlin
Modified: 2005-03-18 14:41 UTC (History)
4 users (show)

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


Attachments
makefile.in.patch (nxcomp-1.4.0.makefile.in.patch,602 bytes, patch)
2004-10-15 07:30 UTC, Charlie Gehlin
Details | Diff
types.h.patch (nxcomp-1.4.0.types.h.patch,1.60 KB, patch)
2004-10-15 07:32 UTC, Charlie Gehlin
Details | Diff
Proposal to nxcomp-1.4.0-r1.ebuild (nxcomp-1.4.0-r1.ebuild,1.16 KB, text/plain)
2004-10-15 07:34 UTC, Charlie Gehlin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Gehlin 2004-10-14 05:34:13 UTC
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!
/
Comment 1 Charlie Gehlin 2004-10-14 05:34:13 UTC
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
Comment 2 Charlie Gehlin 2004-10-14 05:36:42 UTC
# 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"
Comment 3 Charlie Gehlin 2004-10-15 07:30:43 UTC
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
Comment 4 Charlie Gehlin 2004-10-15 07:32:06 UTC
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
Comment 5 Charlie Gehlin 2004-10-15 07:34:13 UTC
Created attachment 41879 [details]
Proposal to nxcomp-1.4.0-r1.ebuild

Proposal to nxcomp-1.4.0-r1.ebuild
Comment 6 Charlie Gehlin 2004-10-15 08:06:33 UTC
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?

/
Comment 7 Charlie Gehlin 2004-10-15 08:06:33 UTC
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
Comment 8 Philipp Kirchner 2004-11-21 12:05:41 UTC
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?
Comment 9 Charlie Gehlin 2004-12-20 03:31:16 UTC
Bump! Any chance to get theese patches applied to portage? :)
Thanks!

/
Comment 10 Charlie Gehlin 2004-12-20 03:31:16 UTC
Bump! Any chance to get theese patches applied to portage? :)
Thanks!

/©harlie
Comment 11 Daniel Holth 2005-01-01 16:58:38 UTC
please add fixes to portage. it's nice to be able to compile this with gcc 3.4.
Comment 12 Stuart Herbert (RETIRED) gentoo-dev 2005-01-02 01:29:40 UTC
*** Bug 64066 has been marked as a duplicate of this bug. ***
Comment 13 Stuart Herbert (RETIRED) gentoo-dev 2005-01-02 01:30:44 UTC
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
Comment 14 Stuart Herbert (RETIRED) gentoo-dev 2005-01-02 02:02:33 UTC
*** Bug 72112 has been marked as a duplicate of this bug. ***
Comment 15 Charlie Gehlin 2005-01-20 06:56:07 UTC
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
Comment 16 Stuart Herbert (RETIRED) gentoo-dev 2005-02-19 02:21:20 UTC
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
Comment 17 Christian Häßler 2005-02-19 16:24:35 UTC
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
Comment 18 Charlie Gehlin 2005-03-18 14:41:21 UTC
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