monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] BUG


From: Malte Thoma
Subject: [Monotone-devel] BUG
Date: Wed, 28 Jun 2006 10:13:25 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hallo monotoners,

I just got this e-mail and forward it to you as requested.

Regards,

Malte

###################################################
Hi Malte,
Could you please forward this to the developers of Monotone?
I have tried to build monotone 0.27 through fink on my PowerMac G4
running OS X 10.3.9, and have run into a problem:

g++-3.3 -DLOCALEDIR=\"/sw/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.
- -I./lua -I./sqlite -D__unix -Wno-long-double -I/sw/include  -DNDEBUG
- -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS   -g -O0
- -fno-strict-aliasing -Wall -W -Wno-unused
- -DBOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP -DBOOST_REGEX_COMPILE_HPP -c -o

mtn-vocab.o `test -f 'vocab.cc' || echo './'`vocab.cc
In file included from vocab.cc:14:
hash_map.hh:9: error: parse error before numeric constant
hash_map.hh:15: error: parse error before numeric constant
hash_map.hh:21: error: parse error before numeric constant
hash_map.hh:29: error: `hash' is not a template
hash_map.hh:31: error: can't make `operator()' into a method -- not in

a class
/usr/include/gcc/darwin/3.3/c++/bits/functexcept.h:37: confused by
earlier errors, bailing out
make[2]: *** [mtn-vocab.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

The problem is in hash_map.hh: apparently _T is defined in
/usr/include/ctype.h.
The easy solution/hack is to patch hash_map.hh as follows:
- --------------------
- --- monotone-0.27/hash_map.hh   Sat Jun 17 22:50:00 2006
+++ monotone-0.27/hash_map.hh        Tue Jun 27 18:52:34 2006
@@ -3,6 +3,7 @@

  #include "config.h"

+#undef _T
  #include <functional>
  namespace hashmap {
- --
***********************************************************************
***  Dr. Malte Thoma             ***  email: address@hidden        ***
***                              ***         address@hidden  ***
***  British Antarctic Survey    ***                                ***
***  High Cross, Madingley Road  ***  Tel.:  0044 (0)1223 221346    ***
***  Cambridge, CB3 0ET          ***  Fax.:  0044 (0)1223 221226    ***
***  United Kingdom              ***                                ***
***********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEokg0k2JP1yRd7UERAje4AKCuhumwBuNljKFRMscWCuOGRIrVggCeIw18
ecg9M0uPeRSlgptbJzPVhIw=
=zvlM
-----END PGP SIGNATURE-----

--  
This message (and any attachments) is for the recipient only.  NERC is subject
to the Freedom of Information Act 2000 and the contents of this email and any
reply you make may be disclosed by NERC unless it is exempt from release under
the Act.  Any material supplied to NERC may be stored in an electronic
records management system.





reply via email to

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