Hi 

I'm trying to build ledger on debian jessie. I always get an error that 
`uintmax_t` is ambiguous.  

```
640X4 finanzen/ledger ‹master› » ./acprep opt make --python 
--prefix=$HOME/.local
acprep: INFO: Invoking primary phase: make
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => opt
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.6") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found 
version "2.7.6") 
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   system
--   iostreams
--   regex
--   unit_test_framework
--   python
-- Looking for access
-- Looking for access - found
-- Looking for realpath
-- Looking for realpath - found
-- Looking for getpwuid
-- Looking for getpwuid - found
-- Looking for getpwnam
-- Looking for getpwnam - found
-- Looking for isatty
-- Looking for isatty - found
-- Performing Test UNIX_PIPES_COMPILES
-- Performing Test UNIX_PIPES_COMPILES - Success
-- Performing Test BOOST_REGEX_UNICODE_RUNS
-- Performing Test BOOST_REGEX_UNICODE_RUNS - Failed
-- Looking for readline in edit
-- Looking for readline in edit - not found
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger
Scanning dependencies of target libledger
[  1%] Building CXX object src/CMakeFiles/libledger.dir/stats.cc.o
In file included from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/session.h:46:0,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/report.h:52,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/stats.cc:38:
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h:79:5: 
error: reference to ‘uintmax_t’ is ambiguous
     uintmax_t      size;
     ^
In file included from 
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/inttypes.h:27,
                 from /usr/include/python2.7/pyport.h:9,
                 from /usr/include/python2.7/Python.h:58,
                 from /usr/include/boost/python/detail/wrap_python.hpp:142,
                 from /usr/include/boost/python/detail/prefix.hpp:13,
                 from /usr/include/boost/python/args.hpp:8,
                 from /usr/include/boost/python.hpp:11,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/system.hh:320,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/stats.cc:32:
/usr/include/stdint.h:135:27: note: candidates are: typedef long unsigned 
int uintmax_t
 typedef unsigned long int uintmax_t;
                           ^
In file included from /usr/include/boost/integer_fwd.hpp:17:0,
                 from /usr/include/boost/integer.hpp:18,
                 from /usr/include/boost/function/function_base.hpp:21,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function.hpp:24,
                 from 
/usr/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from 
/usr/include/boost/algorithm/string/find_iterator.hpp:24,
                 from /usr/include/boost/algorithm/string/iter_find.hpp:27,
                 from /usr/include/boost/algorithm/string/split.hpp:16,
                 from /usr/include/boost/algorithm/string.hpp:23,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/system.hh:170,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/stats.cc:32:
/usr/include/boost/cstdint.hpp:307:42: note:                 typedef 
boost::ulong_long_type boost::uintmax_t
      typedef  ::boost::ulong_long_type   uintmax_t;
                                          ^
In file included from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/session.h:46:0,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/report.h:52,
                 from 
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/stats.cc:38:
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h:79:5: 
error: ‘uintmax_t’ does not name a type
     uintmax_t      size;
     ^
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h: In 
constructor ‘ledger::journal_t::fileinfo_t::fileinfo_t()’:
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h:83:20: 
error: class ‘ledger::journal_t::fileinfo_t’ does not have any field named 
‘size’
     fileinfo_t() : size(0), from_stream(true) {
                    ^
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h: In 
constructor ‘ledger::journal_t::fileinfo_t::fileinfo_t(const path&)’:
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h:88:15: 
error: overloaded function with no contextual type information
       size    = file_size(*filename);
               ^
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h: In copy 
constructor ‘ledger::journal_t::fileinfo_t::fileinfo_t(const 
ledger::journal_t::fileinfo_t&)’:
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h:93:34: 
error: class ‘ledger::journal_t::fileinfo_t’ does not have any field named 
‘size’
       : filename(info.filename), size(info.size),
                                  ^
/home/kain88/Documents/Privat_Stuff/finanzen/ledger/src/journal.h:93:44: 
error: ‘const struct ledger::journal_t::fileinfo_t’ has no member named 
‘size’
       : filename(info.filename), size(info.size),
                                            ^
make[2]: *** [src/CMakeFiles/libledger.dir/stats.cc.o] Error 1
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
make: *** [all] Error 2
acprep: ERROR: Execution failed: make
```

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to