Skip to content

Instantly share code, notes, and snippets.

@elieux
Created February 19, 2015 15:52
Show Gist options
  • Save elieux/c70ed276de4e429509b6 to your computer and use it in GitHub Desktop.
Save elieux/c70ed276de4e429509b6 to your computer and use it in GitHub Desktop.
nssm-build-failure
$ MINGW_INSTALLS=mingw64 makepkg-mingw --sign
==> Making package: mingw-w64-x86_64-nssm 2.23-1 (Thu, Feb 19, 2015 4:51:31 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating nssm git repo...
Fetching origin
-> Found messages.h
-> Found messages.rc
-> Found MSG00409.bin
-> Found MSG0040C.bin
-> Found MSG00410.bin
==> Validating source files with sha1sums...
nssm ... Skipped
messages.h ... Passed
messages.rc ... Passed
MSG00409.bin ... Passed
MSG0040C.bin ... Passed
MSG00410.bin ... Passed
==> Extracting sources...
-> Creating working copy of nssm git repo...
Reset branch 'makepkg'
==> Starting prepare()...
/w/temporary/development/mingw-packages/mingw-w64-nssm/src/nssm /w/temporary/development/mingw-packages/mingw-w64-nssm/src
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set description=0.0-0-prerelease
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>for /F %v in ('git describe --tags --long') do set description=%v
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set description=v2.23-0-gbe1df1f
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set description=2.23-0-gbe1df1f
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set version=2.23-0-gbe1df1f
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set n=0-gbe1df1f
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set commit=gbe1df1f
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>call set n=%n:gbe1df1f=%
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set n=0
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>call set version=%version:0-gbe1df1f=%
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set version=2.23
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set minor=23
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>call set major=%version:.23=%
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set flags=0L
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>if "0" == "0" (set description=2.23 ) else set flags=VS_FF_PRERELEASE
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>if "gbe1df1f" == "prerelease" set flags=VS_FF_PRERELEASE
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>if "" == "" set BUILD_NUMBER=0
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set md=*-=
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>call set year=%BUILD_ID:*-==%
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>set year=*-=
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>if "" == "" set year=
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>fc version.h version.h.new 1>NUL: 2>NUL:
W:\temporary\development\mingw-packages\mingw-w64-nssm\src\nssm>if 0 == 0 (del version.h.new ) else (move /y version.h.new version.h )
/w/temporary/development/mingw-packages/mingw-w64-nssm/src
==> Removing existing $pkgdir/ directory...
==> Starting build()...
account.cpp: In function 'int grant_logon_as_service(const TCHAR*)':
account.cpp:303:20: warning: deprecated conversion from string constant to 'PWSTR {aka wchar_t*}' [-Wwrite-strings]
lsa_right.Buffer = NSSM_LOGON_AS_SERVICE_RIGHT;
^
In file included from nssm.h:41:0,
from event.cpp:1:
event.cpp: In function 'TCHAR* error_string(long unsigned int)':
event.cpp:14:36: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (! error_message) return _T("<out of memory for error message>");
^
gui.cpp:3:214: error: a storage class can only be specified for objects and functions
static enum { NSSM_TAB_APPLICATION, NSSM_TAB_DETAILS, NSSM_TAB_LOGON, NSSM_TAB_DEPENDENCIES, NSSM_TAB_PROCESS, NSSM_TAB_SHUTDOWN, NSSM_TAB_EXIT, NSSM_TAB_IO, NSSM_TAB_ROTATION, NSSM_TAB_ENVIRONMENT, NSSM_NUM_TABS };
^
gui.cpp: In function 'int configure(HWND, nssm_service_t*, nssm_service_t*)':
gui.cpp:557:94: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
check_io(window, _T("stdin"), service->stdin_path, _countof(service->stdin_path), IDC_STDIN);
^
gui.cpp:558:98: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
check_io(window, _T("stdout"), service->stdout_path, _countof(service->stdout_path), IDC_STDOUT);
^
gui.cpp:559:98: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
check_io(window, _T("stderr"), service->stderr_path, _countof(service->stderr_path), IDC_STDERR);
^
In file included from nssm.h:41:0,
from gui.cpp:1:
gui.cpp: In function 'TCHAR* browse_filter(int)':
gui.cpp:761:57: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case NSSM_GUI_BROWSE_FILTER_APPLICATIONS: return _T("*.exe;*.bat;*.cmd");
^
gui.cpp:762:56: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case NSSM_GUI_BROWSE_FILTER_DIRECTORIES: return _T(".");
^
gui.cpp:764:24: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
default: return _T("*.*");
^
nssm.cpp: In function 'int main(int, TCHAR**)':
nssm.cpp:173:70: warning: deprecated conversion from string constant to 'LPSTR {aka char*}' [-Wwrite-strings]
SERVICE_TABLE_ENTRY table[] = { { NSSM, service_main }, { 0, 0 } };
^
process.cpp: In function 'int kill_process(nssm_service_t*, HANDLE, long unsigned int, long unsigned int)':
process.cpp:166:81: warning: invalid conversion from 'const char*' to 'TCHAR* {aka char*}' [-fpermissive]
if (! await_shutdown(service, _T(__FUNCTION__), service->kill_window_delay)) return 1;
^
In file included from nssm.h:43:0,
from process.cpp:1:
service.h:144:5: note: initializing argument 2 of 'int await_shutdown(nssm_service_t*, TCHAR*, long unsigned int)'
int await_shutdown(nssm_service_t *, TCHAR *, unsigned long);
^
process.cpp:177:82: warning: invalid conversion from 'const char*' to 'TCHAR* {aka char*}' [-fpermissive]
if (! await_shutdown(service, _T(__FUNCTION__), service->kill_threads_delay)) return 1;
^
In file included from nssm.h:43:0,
from process.cpp:1:
service.h:144:5: note: initializing argument 2 of 'int await_shutdown(nssm_service_t*, TCHAR*, long unsigned int)'
int await_shutdown(nssm_service_t *, TCHAR *, unsigned long);
^
process.cpp: In function 'int kill_console(nssm_service_t*, kill_t*)':
process.cpp:240:76: warning: invalid conversion from 'const char*' to 'TCHAR* {aka char*}' [-fpermissive]
if (await_shutdown(service, _T(__FUNCTION__), service->kill_console_delay)) ret = 6;
^
In file included from nssm.h:43:0,
from process.cpp:1:
service.h:144:5: note: initializing argument 2 of 'int await_shutdown(nssm_service_t*, TCHAR*, long unsigned int)'
int await_shutdown(nssm_service_t *, TCHAR *, unsigned long);
^
registry.cpp: In function 'int create_parameters(nssm_service_t*, bool)':
registry.cpp:37:56: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (set_expand_string(key, NSSM_REG_EXE, service->exe)) {
^
registry.cpp:42:60: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (set_expand_string(key, NSSM_REG_FLAGS, service->flags)) {
^
registry.cpp:47:56: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (set_expand_string(key, NSSM_REG_DIR, service->dir)) {
^
registry.cpp:54:103: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->priority != NORMAL_PRIORITY_CLASS) set_number(key, NSSM_REG_PRIORITY, service->priority);
^
registry.cpp:69:84: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (stop_method_skip) set_number(key, NSSM_REG_STOP_METHOD_SKIP, stop_method_skip);
^
registry.cpp:72:93: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->restart_delay) set_number(key, NSSM_REG_RESTART_DELAY, service->restart_delay);
^
registry.cpp:74:121: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->throttle_delay != NSSM_RESET_THROTTLE_RESTART) set_number(key, NSSM_REG_THROTTLE, service->throttle_delay);
^
registry.cpp:76:149: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->kill_console_delay != NSSM_KILL_CONSOLE_GRACE_PERIOD) set_number(key, NSSM_REG_KILL_CONSOLE_GRACE_PERIOD, service->kill_console_delay);
^
registry.cpp:78:145: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->kill_window_delay != NSSM_KILL_WINDOW_GRACE_PERIOD) set_number(key, NSSM_REG_KILL_WINDOW_GRACE_PERIOD, service->kill_window_delay);
^
registry.cpp:80:149: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->kill_threads_delay != NSSM_KILL_THREADS_GRACE_PERIOD) set_number(key, NSSM_REG_KILL_THREADS_GRACE_PERIOD, service->kill_threads_delay);
^
registry.cpp:83:91: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdin_path[0]) set_expand_string(key, NSSM_REG_STDIN, service->stdin_path);
^
registry.cpp:85:147: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdin_sharing != NSSM_STDIN_SHARING) set_createfile_parameter(key, NSSM_REG_STDIN, NSSM_REG_STDIO_SHARING, service->stdin_sharing);
^
registry.cpp:85:147: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:86:94: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDIN, NSSM_REG_STDIO_SHARING);
^
registry.cpp:86:94: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:87:163: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdin_disposition != NSSM_STDIN_DISPOSITION) set_createfile_parameter(key, NSSM_REG_STDIN, NSSM_REG_STDIO_DISPOSITION, service->stdin_disposition);
^
registry.cpp:87:163: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:88:98: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDIN, NSSM_REG_STDIO_DISPOSITION);
^
registry.cpp:88:98: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:89:139: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdin_flags != NSSM_STDIN_FLAGS) set_createfile_parameter(key, NSSM_REG_STDIN, NSSM_REG_STDIO_FLAGS, service->stdin_flags);
^
registry.cpp:89:139: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:90:92: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDIN, NSSM_REG_STDIO_FLAGS);
^
registry.cpp:90:92: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:93:94: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdout_path[0]) set_expand_string(key, NSSM_REG_STDOUT, service->stdout_path);
^
registry.cpp:95:151: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdout_sharing != NSSM_STDOUT_SHARING) set_createfile_parameter(key, NSSM_REG_STDOUT, NSSM_REG_STDIO_SHARING, service->stdout_sharing);
^
registry.cpp:95:151: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:96:95: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDOUT, NSSM_REG_STDIO_SHARING);
^
registry.cpp:96:95: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:97:167: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdout_disposition != NSSM_STDOUT_DISPOSITION) set_createfile_parameter(key, NSSM_REG_STDOUT, NSSM_REG_STDIO_DISPOSITION, service->stdout_disposition);
^
registry.cpp:97:167: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:98:99: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDOUT, NSSM_REG_STDIO_DISPOSITION);
^
registry.cpp:98:99: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:99:143: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stdout_flags != NSSM_STDOUT_FLAGS) set_createfile_parameter(key, NSSM_REG_STDOUT, NSSM_REG_STDIO_FLAGS, service->stdout_flags);
^
registry.cpp:99:143: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:100:93: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDOUT, NSSM_REG_STDIO_FLAGS);
^
registry.cpp:100:93: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:103:94: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stderr_path[0]) set_expand_string(key, NSSM_REG_STDERR, service->stderr_path);
^
registry.cpp:105:151: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stderr_sharing != NSSM_STDERR_SHARING) set_createfile_parameter(key, NSSM_REG_STDERR, NSSM_REG_STDIO_SHARING, service->stderr_sharing);
^
registry.cpp:105:151: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:106:95: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDERR, NSSM_REG_STDIO_SHARING);
^
registry.cpp:106:95: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:107:167: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stderr_disposition != NSSM_STDERR_DISPOSITION) set_createfile_parameter(key, NSSM_REG_STDERR, NSSM_REG_STDIO_DISPOSITION, service->stderr_disposition);
^
registry.cpp:107:167: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:108:99: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDERR, NSSM_REG_STDIO_DISPOSITION);
^
registry.cpp:108:99: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:109:143: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->stderr_flags != NSSM_STDERR_FLAGS) set_createfile_parameter(key, NSSM_REG_STDERR, NSSM_REG_STDIO_FLAGS, service->stderr_flags);
^
registry.cpp:109:143: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:110:93: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) delete_createfile_parameter(key, NSSM_REG_STDERR, NSSM_REG_STDIO_FLAGS);
^
registry.cpp:110:93: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
registry.cpp:112:64: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->rotate_files) set_number(key, NSSM_REG_ROTATE, 1);
^
registry.cpp:114:79: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->rotate_stdout_online) set_number(key, NSSM_REG_ROTATE_ONLINE, 1);
^
registry.cpp:116:96: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->rotate_seconds) set_number(key, NSSM_REG_ROTATE_SECONDS, service->rotate_seconds);
^
registry.cpp:118:102: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->rotate_bytes_low) set_number(key, NSSM_REG_ROTATE_BYTES_LOW, service->rotate_bytes_low);
^
registry.cpp:120:105: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->rotate_bytes_high) set_number(key, NSSM_REG_ROTATE_BYTES_HIGH, service->rotate_bytes_high);
^
registry.cpp:122:66: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (service->no_console) set_number(key, NSSM_REG_NO_CONSOLE, 1);
^
registry.cpp: In function 'int get_io_parameters(nssm_service_t*, HKEY)':
registry.cpp:487:212: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_createfile_parameters(key, NSSM_REG_STDIN, service->stdin_path, &service->stdin_sharing, NSSM_STDIN_SHARING, &service->stdin_disposition, NSSM_STDIN_DISPOSITION, &service->stdin_flags, NSSM_STDIN_FLAGS)) {
^
registry.cpp:494:220: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_createfile_parameters(key, NSSM_REG_STDOUT, service->stdout_path, &service->stdout_sharing, NSSM_STDOUT_SHARING, &service->stdout_disposition, NSSM_STDOUT_DISPOSITION, &service->stdout_flags, NSSM_STDOUT_FLAGS)) {
^
registry.cpp:501:220: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_createfile_parameters(key, NSSM_REG_STDERR, service->stderr_path, &service->stderr_sharing, NSSM_STDERR_SHARING, &service->stderr_disposition, NSSM_STDERR_DISPOSITION, &service->stderr_flags, NSSM_STDERR_FLAGS)) {
^
registry.cpp: In function 'int get_parameters(nssm_service_t*, STARTUPINFO*)':
registry.cpp:521:92: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_string(key, NSSM_REG_EXE, service->exe, sizeof(service->exe), expand, false, true)) {
^
registry.cpp:527:98: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_string(key, NSSM_REG_FLAGS, service->flags, sizeof(service->flags), expand, false, true)) {
^
registry.cpp:533:91: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_string(key, NSSM_REG_DIR, service->dir, sizeof(service->dir), expand, true, true) || ! service->dir[0]) {
^
registry.cpp:550:85: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_string(key, NSSM_REG_AFFINITY, buffer, sizeof(buffer), false, false, false) || ! buffer[0]) service->affinity = 0LL;
^
registry.cpp:559:7: error: '_int64' was not declared in this scope
_int64 effective_affinity = service->affinity & system_affinity;
^
registry.cpp:560:11: error: 'effective_affinity' was not declared in this scope
if (effective_affinity != service->affinity) {
^
registry.cpp:575:84: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
get_environment(service->name, key, NSSM_REG_ENV, &service->env, &service->envlen);
^
registry.cpp:577:102: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
get_environment(service->name, key, NSSM_REG_ENV_EXTRA, &service->env_extra, &service->env_extralen);
^
registry.cpp:581:58: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_PRIORITY, &priority, false) == 1) {
^
registry.cpp:588:60: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_ROTATE, &rotate_files, false) == 1) {
^
registry.cpp:593:67: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_ROTATE_ONLINE, &rotate_files, false) == 1) {
^
registry.cpp:598:79: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_ROTATE_SECONDS, &service->rotate_seconds, false) != 1) service->rotate_seconds = 0;
^
registry.cpp:599:83: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_ROTATE_BYTES_LOW, &service->rotate_bytes_low, false) != 1) service->rotate_bytes_low = 0;
^
registry.cpp:600:85: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_ROTATE_BYTES_HIGH, &service->rotate_bytes_high, false) != 1) service->rotate_bytes_high = 0;
^
registry.cpp:603:71: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (get_number(key, NSSM_REG_NO_CONSOLE, &service->no_console, false) != 1) service->no_console = 0;
^
registry.cpp:622:127: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
override_milliseconds(service->name, key, NSSM_REG_RESTART_DELAY, &service->restart_delay, 0, NSSM_EVENT_BOGUS_RESTART_DELAY);
^
registry.cpp:625:144: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
override_milliseconds(service->name, key, NSSM_REG_THROTTLE, &service->throttle_delay, NSSM_RESET_THROTTLE_RESTART, NSSM_EVENT_BOGUS_THROTTLE);
^
registry.cpp:648:185: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
override_milliseconds(service->name, key, NSSM_REG_KILL_CONSOLE_GRACE_PERIOD, &service->kill_console_delay, NSSM_KILL_CONSOLE_GRACE_PERIOD, NSSM_EVENT_BOGUS_KILL_CONSOLE_GRACE_PERIOD);
^
registry.cpp:649:181: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
override_milliseconds(service->name, key, NSSM_REG_KILL_WINDOW_GRACE_PERIOD, &service->kill_window_delay, NSSM_KILL_WINDOW_GRACE_PERIOD, NSSM_EVENT_BOGUS_KILL_WINDOW_GRACE_PERIOD);
^
registry.cpp:650:185: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
override_milliseconds(service->name, key, NSSM_REG_KILL_THREADS_GRACE_PERIOD, &service->kill_threads_delay, NSSM_KILL_THREADS_GRACE_PERIOD, NSSM_EVENT_BOGUS_KILL_THREADS_GRACE_PERIOD);
^
service.cpp: In function 'int affinity_string_to_mask(TCHAR*, long long int*)':
service.cpp:209:71: error: lvalue required as left operand of assignment
for (int j = set[i].first; j <= set[i].last; j++) (__int64) *mask |= (1LL << (__int64) j);
^
In file included from nssm.h:41:0,
from service.cpp:1:
service.cpp: In function 'int set_service_dependencies(const TCHAR*, SC_HANDLE, TCHAR*)':
service.cpp:375:28: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
TCHAR *dependencies = _T("");
^
service.cpp: In function 'int set_service_description(const TCHAR*, SC_HANDLE, TCHAR*)':
service.cpp:561:34: warning: deprecated conversion from string constant to 'LPSTR {aka char*}' [-Wwrite-strings]
else description.lpDescription = _T("");
^
service.cpp: In function 'int get_service_startup(const TCHAR*, SC_HANDLE, const QUERY_SERVICE_CONFIG*, long unsigned int*)':
service.cpp:616:39: error: 'SERVICE_CONFIG_DELAYED_AUTO_START_INFO' was not declared in this scope
QueryServiceConfig2(service_handle, SERVICE_CONFIG_DELAYED_AUTO_START_INFO, 0, 0, &bufsize);
^
service.cpp:619:5: error: 'SERVICE_DELAYED_AUTO_START_INFO' was not declared in this scope
SERVICE_DELAYED_AUTO_START_INFO *info = (SERVICE_DELAYED_AUTO_START_INFO *) HeapAlloc(GetProcessHeap(), 0, bufsize);
^
service.cpp:619:38: error: 'info' was not declared in this scope
SERVICE_DELAYED_AUTO_START_INFO *info = (SERVICE_DELAYED_AUTO_START_INFO *) HeapAlloc(GetProcessHeap(), 0, bufsize);
^
service.cpp:619:79: error: expected primary-expression before ')' token
SERVICE_DELAYED_AUTO_START_INFO *info = (SERVICE_DELAYED_AUTO_START_INFO *) HeapAlloc(GetProcessHeap(), 0, bufsize);
^
service.cpp: In function 'int edit_service(nssm_service_t*, bool)':
service.cpp:1129:38: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
else if (editing) username = canon = NSSM_LOCALSYSTEM_ACCOUNT;
^
service.cpp:1131:44: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
if (well_known_username(canon)) password = _T("");
^
In file included from nssm.h:41:0,
from service.cpp:1:
service.cpp:1140:28: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
TCHAR *dependencies = _T("");
^
service.cpp:1158:3: error: 'SERVICE_DELAYED_AUTO_START_INFO' was not declared in this scope
SERVICE_DELAYED_AUTO_START_INFO delayed;
^
In file included from D:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:7,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/shlwapi.h:13,
from nssm.h:38,
from service.cpp:1:
service.cpp:1159:15: error: 'delayed' was not declared in this scope
ZeroMemory(&delayed, sizeof(delayed));
^
service.cpp:1163:47: error: 'SERVICE_CONFIG_DELAYED_AUTO_START_INFO' was not declared in this scope
if (! ChangeServiceConfig2(service->handle, SERVICE_CONFIG_DELAYED_AUTO_START_INFO, &delayed)) {
^
service.cpp: In function 'void set_service_recovery(nssm_service_t*)':
service.cpp:1420:3: error: 'SERVICE_FAILURE_ACTIONS_FLAG' was not declared in this scope
SERVICE_FAILURE_ACTIONS_FLAG flag;
^
In file included from D:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:7,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/shlwapi.h:13,
from nssm.h:38,
from service.cpp:1:
service.cpp:1421:15: error: 'flag' was not declared in this scope
ZeroMemory(&flag, sizeof(flag));
^
service.cpp:1425:47: error: 'SERVICE_CONFIG_FAILURE_ACTIONS_FLAG' was not declared in this scope
if (! ChangeServiceConfig2(service->handle, SERVICE_CONFIG_FAILURE_ACTIONS_FLAG, &flag)) {
^
In file included from nssm.h:41:0,
from service.cpp:1:
service.cpp: In function 'TCHAR* service_control_text(long unsigned int)':
service.cpp:1456:48: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case NSSM_SERVICE_CONTROL_START: return _T("START");
^
service.cpp:1457:42: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_CONTROL_STOP: return _T("STOP");
^
service.cpp:1458:46: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_CONTROL_SHUTDOWN: return _T("SHUTDOWN");
^
service.cpp:1459:43: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_CONTROL_PAUSE: return _T("PAUSE");
^
service.cpp:1460:46: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_CONTROL_CONTINUE: return _T("CONTINUE");
^
service.cpp:1461:49: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_CONTROL_INTERROGATE: return _T("INTERROGATE");
^
service.cpp:1462:49: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case NSSM_SERVICE_CONTROL_ROTATE: return _T("ROTATE");
^
service.cpp: In function 'TCHAR* service_status_text(long unsigned int)':
service.cpp:1469:37: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_STOPPED: return _T("SERVICE_STOPPED");
^
service.cpp:1470:43: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_START_PENDING: return _T("SERVICE_START_PENDING");
^
service.cpp:1471:42: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_STOP_PENDING: return _T("SERVICE_STOP_PENDING");
^
service.cpp:1472:37: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_RUNNING: return _T("SERVICE_RUNNING");
^
service.cpp:1473:46: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_CONTINUE_PENDING: return _T("SERVICE_CONTINUE_PENDING");
^
service.cpp:1474:43: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_PAUSE_PENDING: return _T("SERVICE_PAUSE_PENDING");
^
service.cpp:1475:36: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
case SERVICE_PAUSED: return _T("SERVICE_PAUSED");
^
settings.cpp: In function 'int setting_set_number(const TCHAR*, void*, const TCHAR*, void*, value_t*, const TCHAR*)':
settings.cpp:55:50: warning: cast from 'void*' to 'long unsigned int' loses precision [-fpermissive]
if (default_value && number == (unsigned long) default_value) {
^
In file included from nssm.h:41:0,
from settings.cpp:1:
settings.cpp: In function 'int native_set_objectname(const TCHAR*, void*, const TCHAR*, void*, value_t*, const TCHAR*)':
account.h:7:37: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
#define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem")
^
settings.cpp:734:21: note: in expansion of macro 'NSSM_LOCALSYSTEM_ACCOUNT'
TCHAR *username = NSSM_LOCALSYSTEM_ACCOUNT;
^
settings.cpp:747:14: warning: deprecated conversion from string constant to 'TCHAR* {aka char*}' [-Wwrite-strings]
password = _T("");
^
settings.cpp: In function 'int native_set_startup(const TCHAR*, void*, const TCHAR*, void*, value_t*, const TCHAR*)':
settings.cpp:844:3: error: 'SERVICE_DELAYED_AUTO_START_INFO' was not declared in this scope
SERVICE_DELAYED_AUTO_START_INFO delayed;
^
In file included from D:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163:0,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/objbase.h:7,
from D:/msys64/mingw64/x86_64-w64-mingw32/include/shlwapi.h:13,
from nssm.h:38,
from settings.cpp:1:
settings.cpp:845:15: error: 'delayed' was not declared in this scope
ZeroMemory(&delayed, sizeof(delayed));
^
settings.cpp:848:46: error: 'SERVICE_CONFIG_DELAYED_AUTO_START_INFO' was not declared in this scope
if (! ChangeServiceConfig2(service_handle, SERVICE_CONFIG_DELAYED_AUTO_START_INFO, &delayed)) {
^
settings.cpp: In function 'int get_setting(const TCHAR*, HKEY, settings_t*, value_t*, const TCHAR*)':
settings.cpp:998:49: warning: cast from 'void*' to 'long unsigned int' loses precision [-fpermissive]
value->numeric = (unsigned long) setting->default_value;
^
settings.cpp: At global scope:
settings.cpp:1061:1: warning: invalid conversion from 'const void*' to 'void*' [-fpermissive]
};
^
settings.cpp:1061:1: warning: invalid conversion from 'const void*' to 'void*' [-fpermissive]
==> ERROR: A failure occurred in build().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment