lnav
lnav copied to clipboard
Building on OpenBSD 7.0 fails
lnav version v0.10.1
Describe the bug When compiling from source on openBSD 7.0, build fails with the following output:
In file included from date_time_scanner.cc:35:
../../src/ptimec.hh:320:55: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
snprintf(&dst[off_inout], len - off_inout, "%ld", t);
~~~ ^
%lld
../../src/ptimec.hh:374:55: warning: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
snprintf(&dst[off_inout], len - off_inout, "%lx", t);
~~~ ^
%llx
2 warnings generated.
In file included from tailer.looper.cc:41:
In file included from ../../src/lnav.hh:50:
In file included from ../../src/logfile.hh:54:
In file included from ../../src/log_format_fwd.hh:37:
../../src/ptimec.hh:320:55: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
snprintf(&dst[off_inout], len - off_inout, "%ld", t);
~~~ ^
%lld
../../src/ptimec.hh:374:55: warning: format specifies type 'unsigned long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
snprintf(&dst[off_inout], len - off_inout, "%lx", t);
~~~ ^
%llx
2 warnings generated.
make: don't know how to make help-txt.h (prerequisite of: lnav.o)
Stop in src
*** Error 1 in src (Makefile:1383 'all-recursive': @fail=; if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running...)
*** Error 2 in src (Makefile:1049 'all')
*** Error 1 in /home/julien/lnav-0.10.1 (Makefile:535 'all-recursive': @fail=; if (target_option=k; case ${target_option-} in ?) ;; *) ec...)
I do have all required dependencies apart from libgmp, which is unavailable on my system. I was wondering if the issue was coming from there and, if yes, how could I circumvent it?
To Reproduce My system is an openBSD 7.0 virtual private server, running on a Intel Core Processor (Broadwell, no TSX, IBRS).
- get 0.10.1 release archive
-
cd lnav-0.10.1 && ./configure && make
Sorry, the Makefile contains some pattern rules, which aren't supported by BSD make. You'll need to use gmake for now.