More progress:
- first I have to do ./acprep clean with each attempt
- before I've seen your last message, i did ./acprep configure
--prefix=/usr/local -- -DUSE_PYTHON=ON
-DPython_ROOT_DIR=/home/sergiu/miniconda3/envs/ldg-build/
- I also tryed your options
- in make, both sets of options compile to the end with some warnings but
no errors, and both of them fail in linking with 6 "undefined reference to
NCURSES6_TINFO symbols in libedit.so:
[ 83%] Building CXX object src/CMakeFiles/ledger.dir/global.cc.o
In file included from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/function/detail/requires_cxx11.hpp:9,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/function/detail/prologue.hpp:12,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/function.hpp:30,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/algorithm/string/detail/find_iterator.hpp:18,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/algorithm/string/find_iterator.hpp:24,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/algorithm/string/iter_find.hpp:27,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/algorithm/string/split.hpp:16,
from
/home/sergiu/miniconda3/envs/ldg-build/include/boost/algorithm/string.hpp:23,
from /home/sergiu/ledger-3.3.2/system.hh:137,
from /home/sergiu/ledger-3.3.2/src/global.cc:32:
/home/sergiu/miniconda3/envs/ldg-build/include/boost/bind.hpp:36:1: note:
#pragma message: The practice of declaring the Bind placeholders (_1, _2,
...) in the global namespace is deprecated. Please use
<boost/bind/bind.hpp> + using namespace boost::placeholders, or define
BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
[ 85%] Linking CXX executable ../ledger
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so:
undefined reference to `tgoto@NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so:
undefined reference to `tgetent@NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so:
undefined reference to `tgetnum@NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so:
undefined reference to `tputs@NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so:
undefined reference to `tgetflag@NCURSES6_TINFO_5.0.19991023'
/usr/bin/ld:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so:
undefined reference to `tgetstr@NCURSES6_TINFO_5.0.19991023'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/ledger.dir/build.make:111: ledger] Error 1
make[1]: *** [CMakeFiles/Makefile2:223: src/CMakeFiles/ledger.dir/all]
Error 2
make: *** [Makefile:163: all] Error 2
acprep: ERROR: Execution failed: make
This is referred libedit.so :
$ ls -l /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so
lrwxrwxrwx 1 root root 17 Jan 3 2020
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so ->
libedit.so.2.0.63
and here are the 6 symbols:
$ readelf -Ws
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libedit.so |
grep -E 'tgoto|tgetent|tgetnum|tputs|tgetflag|tgetstr'
7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
tputs@NCURSES6_TINFO_5.0.19991023 (4)
31: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
tgoto@NCURSES6_TINFO_5.0.19991023 (4)
84: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
tgetnum@NCURSES6_TINFO_5.0.19991023 (4)
90: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
tgetflag@NCURSES6_TINFO_5.0.19991023 (4)
91: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
tgetstr@NCURSES6_TINFO_5.0.19991023 (4)
123: 0000000000000000 0 FUNC GLOBAL DEFAULT UND
tgetent@NCURSES6_TINFO_5.0.19991023 (4)
On Tuesday, December 19, 2023 at 10:26:03 AM UTC-5 Alexis wrote:
> Hi,
>
> > Based on your suggestions I made some progress. It finds boost in
> configure
>
> That's great to hear!
>
> > but it is not being picked up. Is there an option to add something to
> make
> > INCLUDE?
>
> There sure is: CMake's FindBoost Module¹ also offers hints with which
> an installation prefix or the preferred include and library directory
> can be set (for details see the FindBoost documentation²).
> Does specifying -DBOOST_ROOT help?
>
> % ./acprep configure --python -- \
> -DPython_ROOT_DIR=/home/sergiu/miniconda3/envs/ldg-build/ \
> -DBOOST_ROOT=/home/sergiu/miniconda3/envs/ldg-build/ \
> -DBoost_NO_SYSTEM_PATHS:BOOL=ON
>
> The last hint "disable[s] searching in locations not specified by these
> hint variables"; configuring ledger using CMake may work without it.
>
>
> Godspeed :)
>
>
> ¹ https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake
> ² https://cmake.org/cmake/help/latest/module/FindBoost.html#hints
>
--
---
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/f1762bd5-dd51-4f68-bae0-7c9ad6d27a7dn%40googlegroups.com.