pkgsrc-Bugs archive

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

pkg/53978: xentools411 does not build on NetBSD-current



>Number:         53978
>Category:       pkg
>Synopsis:       xentools411 does not build on NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 14 13:55:00 +0000 2019
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2019.02.14.08.18.26
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

Building xentools411 from pkgsrc on NetBSD-current fails.
The end of the build log looks like this:

  In file included from /usr/include/stdio.h:597:0,
                   from xenpmd.c:35:
  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: '__builtin_snprintf' output between 19 and 530 bytes into a destination of size 284
               snprintf(file_name, sizeof(file_name), BATTERY_INFO_FILE_PATH,
               ^
  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: '__builtin_snprintf' output between 20 and 531 bytes into a destination of size 284
               snprintf(file_name, sizeof(file_name), BATTERY_STATE_FILE_PATH,
               ^
  cc1: all warnings being treated as errors
  gmake[3]: *** [/tmp/sysutils/xentools411/work/xen-4.11.0/tools/xenpmd/../../tools/Rules.mk:225: xenpmd.o] Error 1
  gmake[3]: Leaving directory '/tmp/sysutils/xentools411/work/xen-4.11.0/tools/xenpmd'
  gmake[2]: *** [/tmp/sysutils/xentools411/work/xen-4.11.0/tools/../tools/Rules.mk:249: subdir-all-xenpmd] Error 2
  gmake[2]: Leaving directory '/tmp/sysutils/xentools411/work/xen-4.11.0/tools'
  gmake[1]: *** [/tmp/sysutils/xentools411/work/xen-4.11.0/tools/../tools/Rules.mk:244: subdirs-all] Error 2
  gmake[1]: Leaving directory '/tmp/sysutils/xentools411/work/xen-4.11.0/tools'
  gmake: *** [Makefile:59: build-tools] Error 2
  *** Error code 2

  Stop.
  make[1]: stopped in /usr/pkgsrc/sysutils/xentools411
  WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/sysutils/xentools411

The 8.0 binary package can be used as a work-around.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index