[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nel] Errors compiling on Debian 3.0
From: |
Kevin Carter |
Subject: |
[Nel] Errors compiling on Debian 3.0 |
Date: |
Thu, 19 Jun 2003 00:33:59 -0400 (EDT) |
Using gcc 2.95.4 on Debian 3.0 and a cvs update from approximately 4am GMT
- the following error occurs:
dev01:~/nevrax/code/nel/src/misc$ make file.o
c++ -DHAVE_CONFIG_H -I. -I. -I../../include -g -finline-functions
-DNL_DEBUG -DNL_DEBUG_FAST -ftemplate-depth-24 -march=i686 -Wall
-Wno-multichar -Wno-unused -D_REENTRANT -I/usr/X11R6/include
-I/usr/include/stlport -I/usr/include/libxml2/libxml -I/usr/include/libxml2
-I../../include -DHAVE_NELCONFIG_H -c file.cpp
file.cpp: In method
`NLMISC::CFairSynchronized<_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> > > >::CFairSynchronized(const
NLMISC::CFairSynchronized<_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> > > > &)':
file.cpp:46: conversion from `volatile NLMISC::CFairMutex' to `const
NLMISC::CFairMutex &' discards qualifiers
../../include/nel/misc/mutex.h:511: in passing argument 1 of
`NLMISC::CFairMutex::CFairMutex(const NLMISC::CFairMutex &)'
file.cpp:46: conversion from `volatile
_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> > >' to `const
_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> > > &' discards qualifiers
/usr/include/stlport/stl/_list.h:407: in passing argument 1 of
`_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> > >::list(const
_STL::list<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
>,_STL::allocator<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char>
> > > &)'
make: *** [file.o] Error 1
It appears the volatile declarations at lines 670 and 673 of
nel/include/nel/misc/mutex.h break the default copy constructors for both
NLMISC::CFairMutex and _STL::list, since I believe that g++ won't create
default copy constructors for volatile objects, they must be declared
explicitly. Removing volatile allows compilation to continue, but as these
are associated with shm objects I don't think that's the correct fix.
If someone has a quick fix, I'd be glad to hear it - I'm afraid I'm a
little rusty, and don't think I am familiar enough with Nel to create
viable constructors.
-- Kevin