#1110665 solarpowerlog ftbfs with boost 1.88

#1110665#5
Date:
2025-08-09 18:14:07 UTC
From:
To:
solarpowerlog ftbfs with boost 1.88:

[...]
g++ -DHAVE_CONFIG_H -I.   -I/usr/include/apr-1.0 -DLINUX -D_REENTRANT
-D_GNU_SOURCE     -Wdate-time -D_FORTIFY_SOURCE=3 -Wall -Wextra  -g -O2 
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/solarpowerlog-0.25-2build5 
-c -o Connections/solarpowerlog-CConnectSerialAsio.o `test -f 
'Connections/CConnectSerialAsio.cpp' || echo
'./'`Connections/CConnectSerialAsio.cpp
solarpowerlog.cpp:208:41: warning: ‘%d’ directive output may be
truncated writing between 1 and 10 bytes into a region of size 4
[-Wformat-truncation=]
   208 |         snprintf(buf,sizeof buf-1,"argv[%d]",i);
       |                                         ^~
solarpowerlog.cpp:208:35: note: directive argument in the range [0,
2147483646]
   208 |         snprintf(buf,sizeof buf-1,"argv[%d]",i);
       |                                   ^~~~~~~~~~
In file included from /usr/include/stdio.h:970,
                  from /usr/include/c++/15/cstdio:47,
                  from /usr/include/c++/15/ext/string_conversions.h:47,
                  from /usr/include/c++/15/bits/basic_string.h:4444,
                  from /usr/include/c++/15/string:56,
                  from /usr/include/log4cxx/logstring.h:21:
In function ‘snprintf’,
     inlined from ‘main’ at solarpowerlog.cpp:208:17:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:35: note:
‘__snprintf_chk’ output between 8 and 17 bytes into a destination of size 9
    68 |   return __builtin___snprintf_chk (__s, __n,
__USE_FORTIFY_LEVEL - 1,
       |
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    69 |                                    __glibc_objsize (__s), __fmt,
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    70 |                                    __va_arg_pack ());
       |                                    ~~~~~~~~~~~~~~~~~
In file included from Connections/CConnectSerialAsio.cpp:44:
./Connections/CConnectSerialAsio.h:46:10: fatal error:
boost/asio/io_service.hpp: No such file or directory
    46 | #include <boost/asio/io_service.hpp>
       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:1331:
Connections/solarpowerlog-CConnectSerialAsio.o] Error 1
make[3]: *** Waiting for unfinished jobs....