monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] compile problems under SUSE SLES 10


From: Ralf S. Engelschall
Subject: [Monotone-devel] compile problems under SUSE SLES 10
Date: Tue, 29 Apr 2008 11:01:43 +0200
User-agent: Mutt/1.5.17 OpenPKG/CURRENT (2007-11-01)

I've compiled Monotone 0.40 on lots of platforms recently without any
problems at all, but today I'm faced with a compile problem on a Novell
SUSE SLES 10 box where I got stuck:

| [...]
| if g++ -DLOCALEDIR=\"/tmp/monotone/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. 
 -I./lua -I./pcre  -I/v/sr/sw/include    -I/v/sr/sw/include -Wall -W 
-Wno-unused -fno-strict-aliasing -MT mtn-app_state.o -MD -MP -MF 
".deps/mtn-app_state.Tpo" -c -o mtn-app_state.o `test -f 'app_state.cc' || echo 
'./'`app_state.cc; \
| then mv -f ".deps/mtn-app_state.Tpo" ".deps/mtn-app_state.Po"; else rm -f 
".deps/mtn-app_state.Tpo"; exit 1; fi
| In file included from app_state.hh:13,
| from app_state.cc:11:
| options.hh:25: error: 'option' is not a template
| options.hh:26: error: type 'option' is not derived from type 'options'
| options.hh:26: error: expected ';' before '<' token
| options.hh:27: error: ISO C++ forbids declaration of 'options_type' with no 
type
| options.hh:27: error: expected ';' before 'const'
| options.hh:29: error: 'static_options_fun' was not declared in this scope
| options.hh:29: error: 'static_options_fun' was not declared in this scope
| options.hh:29: error: template argument 1 is invalid

The compiler is GCC 4.2.3 and exactly the same one I've used to build
Monotone 0.40 on all other platforms (because both GCC and Monotone
are inside an OpenPKG software stack). I've no clue why this GCC 4.2.3
under SLES 10 now thinks that the stuff in option.hh no longer defines
the option::option as a template. I've even ensured that the included
option.hh is really the option.hh from the Monotone source tree and the
contained "namespace option { [...] template<typename T> struct option {
... } [...] }" is really used during compilation.

Does someone with deeper C++ knowledge have more clue?

                                       Ralf S. Engelschall
                                       address@hidden
                                       www.engelschall.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]