monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Problems building monotone-0.5


From: Jochen Schaeuble
Subject: Re: [Monotone-devel] Problems building monotone-0.5
Date: Wed, 1 Oct 2003 20:13:38 +0200
User-agent: Mutt/1.4i

Hi,
ok... I tracked the problems down. They're related to libstdc++. In
version 2.10 which is used by g++ 2.95 the method called compare has a
different parameter ordering (the string comes first). That can be fixed
with a simple #if. The next problem I have is located in the "at"-Method
of basic_string. This is not available in the old libstdc++. Is there an
nice way to solve this problem (I don't want to include #if's in so many
lines)? Oh yes... I can use sed to replace all ".at"'s with [] but I
guess since I'm not the only user of libstdc++ 2.95 that's not the best
way to do it. Any hints?

Greets,
  Jochen

On Tue, Sep 30, 2003 at 10:20:40PM +0200, Jochen Schaeuble wrote:
> Hi,
> ok I finally got this one working (gcc 2.95 requires an explicit -I for
> the sqlite directory). The next error (errno unknown) was simple to fix
> (#include <errno.h>). But now I get the following error in command.cc.
> Any hints how I can solve this problem? It seems to me that gcc 2.95 and
> gcc 3.x handle some things totally different.
> 
> commands.cc: In method `void commands::cmd_revert::exec(app_state &,
> const
> vector<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >,allocator<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >> > > &)':
> commands.cc:1235: no matching function for call to
> `basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >::compare (int, size_t, string &) const'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:398:
> candidates are: int
> basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >::compare(const
> >basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >> &, unsigned int = 0, unsigned int =
> >> basic_string<charT,traits,Allocator>::npos) const
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:417:
> int
> basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >::compare(const char *, unsigned int, unsigned int) const
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:398:
> int
> basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >::compare(const char *, unsigned int = 0) const
> commands.cc: In method `void commands::cmd_cvs_import::exec(app_state &,
> const
> vector<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >,allocator<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >> > > &)':
> commands.cc:2145: no matching function for call to
> `vector<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >,allocator<basic_string<char,string_char_traits<char>,__default_alloc_template<true,0>
> >> > >::at (int) const'
> make[1]: *** [monotone-commands.o] Error 1
> make: *** [all] Error 2
> 
> On Sun, Sep 28, 2003 at 07:34:03PM +0200, Jochen Schaeuble wrote:
> > Hi,
> > the sqliteInt.h file is in the sqlite directory but not the parse.y
> > file. Maybe you're right and this is a gcc 2.95 problem :(
> > 
> > Greets,
> >   jochen
> > 
> > On Sun, Sep 28, 2003 at 01:30:35PM -0400, graydon hoare wrote:
> > > Jochen Schaeuble <address@hidden> writes:
> > > 
> > > > Hi,
> > > > whenever I try to build monotone I always get the following error:
> > > > 
> > > > gcc -DHAVE_CONFIG_H -I. -I. -I.    -DTEMP_STORE=1 -DNDEBUG
> > > > -DBOOST_DISABLE_THREADS -Wall  -O0 -c -o sqlite/parse.o `test -f
> > > > 'sqlite/parse.c' || echo './'`sqlite/parse.c
> > > > parse.y:36: sqliteInt.h: No such file or directory
> > > > parse.y:37: parse.h: No such file or directory
> > > > make[1]: *** [sqlite/parse.o] Error 1
> > > > 
> > > > Any hints what might been wrong? I use Debian woody with a backported
> > > > version of the boost library.
> > > 
> > > well, either you deleted the file somehow (it's in the tarball) or
> > > your gcc is misbehaving; the files are #included with "", so it should
> > > pull them in from the sqlite directory. assuming the files exist. is
> > > there a file sqlite/sqliteInt.h in your source tree?
> > > 
> > > hmm. woody uses gcc 2.95.x right? I haven't actually tried building it
> > > on that compiler, there might have been some change to the way it
> > > handles #includes.
> > > 
> > > -graydon
> > > 
> > 
> > 
> > _______________________________________________
> > Monotone-devel mailing list
> > address@hidden
> > http://mail.nongnu.org/mailman/listinfo/monotone-devel
> 
> 
> _______________________________________________
> Monotone-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/monotone-devel




reply via email to

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