Current-Users archive

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

xentools411 fails build



Hi,

On today's -current amd64:
............
gmake[2]: Entering directory
'/usr/pkgsrc/sysutils/xentools411/work/xen-4.11.1/tools'
/usr/pkg/bin/gmake -C xenpmd all
gmake[3]: Entering directory
'/usr/pkgsrc/sysutils/xentools411/work/xen-4.11.1/tools/xenpmd'
gcc -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/X11R7/include -I/usr/pkg/
include/ncurses -O2 -I/usr/pkg/include -I/usr/include
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/inc
lude -I/usr/pkg/include/ncurses -m64 -DBUILD_ID -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes  -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-u
nused-local-typedefs   -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes  -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-loc
al-typedefs   -O2 -fomit-frame-pointer
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF
.subdirs-all.d   -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu9
9 -Wall -Wstrict-prototypes  -Wdeclaration-after-statement
-Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O2
-fomit-frame-pointer -D__XEN_INTERFACE_VERSION__=__
XEN_LATEST_INTERFACE_VERSION__ -MMD -MF .subdir-all-xenpmd.d   -m64
-DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wdeclaration-after-statement -Wno
-unused-but-set-variable -Wno-unused-local-typedefs   -O2
-fomit-frame-pointer
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF
.xenpmd.o.d   -Werror -
I/usr/pkgsrc/sysutils/xentools411/work/xen-4.11.1/tools/xenpmd/../../tools/xenstore/include
-I/usr/pkgsrc/sysutils/xentools411/work/xen-4.11.1/tools/xenpmd/../../tools/incl
ude  -c -o xenpmd.o xenpmd.c
xenpmd.c: In function 'get_next_battery_file':
xenpmd.c:90:36: error: '%s' directive output may be truncated writing
up to 511 bytes into a region of size 271 [-Werror=format-truncation=]
     #define BATTERY_INFO_FILE_PATH "/tmp/battery/%s/info"
                                    ^
xenpmd.c:113:52: note: in expansion of macro 'BATTERY_INFO_FILE_PATH'
             snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
                                                    ^~~~~~~~~~~~~~~~~~~~~~
xenpmd.c:113:13: note: 'snprintf' output between 19 and 530 bytes into
a destination of size 284
             snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      dir_entries->d_name);
                      ~~~~~~~~~~~~~~~~~~~~
xenpmd.c:91:37: error: '%s' directive output may be truncated writing
up to 511 bytes into a region of size 271 [-Werror=format-truncation=]
     #define BATTERY_STATE_FILE_PATH "/tmp/battery/%s/state"
                                     ^
xenpmd.c:116:52: note: in expansion of macro 'BATTERY_STATE_FILE_PATH'
             snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
xenpmd.c:116:13: note: 'snprintf' output between 20 and 531 bytes into
a destination of size 284
             snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      dir_entries->d_name);
                      ~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
...............

I was able to build it on the 12th of March.



-- 
----


Home | Main Index | Thread Index | Old Index