Wolfgang Stöggl [Sun, 10 Feb 2019 01:46:21 +0000 (02:46 +0100)]
Update FSF address and fix UTF8
- Update FSF address in COPYRIGHT
old: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
new: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Update LICENSE file according to the current version from:
https://www.gnu.org/licenses/gpl-2.0.txt
- Update bindings/python/COPYING according to the current version from:
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
- Change encoding of CONTRIBUTORS from ISO 8859-1 to UTF-8
- Fixes rpmlint warnings and errors:
W: file-not-utf8 CONTRIBUTORS
E: incorrect-fsf-address COPYRIGHT
E: incorrect-fsf-address LICENSE
E: incorrect-fsf-address bindings/python/COPYING
Wolfgang Stöggl [Fri, 25 Jan 2019 10:08:18 +0000 (11:08 +0100)]
Fix rc compiler redefinition warnings (nmake)
- Surround code in win32/rrd_config.h that causes warnings by rc with
#ifndef RC_INVOKED and #endif. Remark: _MSC_VER is unknown to rc
- Fixes the following warnings for .rc files, e.g.:
rc /nologo /I./src /fo./win32/rrdtool.res ./win32\rrdtool.rc
./win32\rrd_config.h(130) : warning RC4005: 'isinf' : redefinition
./win32\rrd_config.h(131) : warning RC4005: 'isnan' : redefinition
- This concerns: librrd-4.rc, rrdtool.rc, rrdupdate.rc, rrdcgi.rc,
when using the resource compiler (rc) via nmake under Windows
Wolfgang Stöggl [Thu, 24 Jan 2019 16:44:01 +0000 (17:44 +0100)]
Initialize local variable junk
- Fixes the following compiler warnings (MSVC):
rrd_modify.c(439) : warning C4700: uninitialized local variable
'junk' used
rrd_modify.c(1027) : warning C4700: uninitialized local variable
'junk' used
Wolfgang Stöggl [Sun, 20 Jan 2019 21:11:34 +0000 (22:11 +0100)]
Include winsdkver.h for _WIN32_MAXVER
- _WIN32_MAXVER is defined in winsdkver.h
The include is required in case of MinGW-w64 builds
- Fixes rrd_open.c:11:5: warning:
"_WIN32_MAXVER" is not defined, evaluates to 0 [-Wundef]
#if _WIN32_MAXVER >= 0x0602 /* _WIN32_WINNT_WIN8 */
Wolfgang Stöggl [Fri, 18 Jan 2019 17:05:47 +0000 (18:05 +0100)]
Fix: Cannot rename temporary file to final file
- Fixes the following failing tests under Windows:
modify1, modify2, modify3, modify4, modify5
- Use CreateFileA() with FILE_SHARE_DELETE in rrd_open.c,
so that the outfilename can later be replaced by tmpfilename using
write_rrd() in rrd_create.c
Wolfgang Stöggl [Tue, 15 Jan 2019 09:44:39 +0000 (10:44 +0100)]
Define realpath for MinGW builds
- Define realpath the same way as in win32/rrd_config.h
- Fixes the following compiler warnings in rrd_client.c:
115:11: warning: implicit declaration of function 'realpath';
[-Wimplicit-function-declaration] ret = realpath(path, NULL);
115:11: warning: nested extern declaration of 'realpath'
[-Wnested-externs]
115:9: warning: assignment to 'char *' from 'int' makes pointer from
integer without a cast [-Wint-conversion] ret = realpath(path, NULL);
132:22: warning: assignment to 'char *' from 'int' makes pointer from
integer without a cast [-Wint-conversion]
dir_path = realpath(dir, NULL);
Wolfgang Stöggl [Wed, 16 Jan 2019 08:17:43 +0000 (09:17 +0100)]
Remove LINKTYPE from perl-piped/Makefile.PL
- Remove line:
'linkext' => {LINKTYPE => ''},
Since version 5.00 of MakeMaker such a line can be deleted safely.
MakeMaker recognizes when there's nothing to be linked.
See: https://perldoc.perl.org/ExtUtils/MakeMaker.html
- Fixes Warning:
LINKTYPE set to '', no longer necessary
Wolfgang Stöggl [Thu, 10 Jan 2019 16:06:21 +0000 (17:06 +0100)]
Use g_list_free_full instead of g_list_foreach
- Fixes the following compiler warnings in rrd_create.c:
236:34: warning: cast between incompatible function types from
'void (*)(void *)' to 'void (*)(void *, void *)'
[-Wcast-function-type] g_list_foreach( sources, (GFunc)free, NULL );
1022:44: warning: cast between incompatible function types from
'void (*)(rrd_file_t *)' {aka 'void (*)(struct rrd_file_t *)'} to
'void (*)(void *, void *)' [-Wcast-function-type]
g_list_foreach(sources_rrd_files, (GFunc) cleanup_source_file, NULL);
Wolfgang Stöggl [Thu, 10 Jan 2019 13:39:37 +0000 (14:39 +0100)]
Remove function substring from rrd_graph.c
- The function substring is not used any more. This was a leftover
from https://github.com/oetiker/rrdtool-1.x/commit/cd4a728
- Fixes rrd_graph.c:6159:7: warning:
no previous prototype for 'substring' [-Wmissing-prototypes]
*** WARNING: line containing nothing but whitespace in paragraph at line 46 in file PDP_calculation_explanation.pod
*** ERROR: Apparent command =head1 not preceded by blank line at line 176 in file PDP_calculation_explanation.pod
*** WARNING: node 'https://gallery.technet.microsoft.com/scriptcenter/Sample-Script-to-Generate-59c80d4c =head1 AUTHOR' contains non-escaped | or / at line 175 in file PDP_calculation_explanation.pod
*** ERROR: unresolved internal link 'https://gallery.technet.microsoft.com/scriptcenter/Sample-Script-to-Generate-59c80d4c =head1 AUTHOR' at line 175 in file PDP_calculation_explanation.pod
PDP_calculation_explanation.pod has 2 pod syntax errors.
Wolfgang Stöggl [Tue, 18 Dec 2018 16:23:06 +0000 (17:23 +0100)]
Add -lws2_32 for MinGW builds by configure
- Add -lws2_32 to LIBS in case of MinGW or MinGW-w64 builds.
This makes building Windows executables more straightforward using
configure.
- Update README-MinGW-w64, remove LIBS='-lws2_32' from configure
instructions.
Wolfgang Stöggl [Tue, 18 Dec 2018 10:57:22 +0000 (11:57 +0100)]
Check for gobject-2.0 in configure
- Since pango version 1.43.0, -lgobject-2.0 is not added automatically
any more during configure. Remark: pango.pc uses Requires.private
now for gobject-2.0 instead of formerly Requires: gobject-2.0
- Check for gobject-2.0 in configure to make sure, that -lgobject-2.0
is added to ALL_LIBS
- Fixes the following linker errors:
.libs/librrd_la-rrd_graph.o: In function `im_free':
src/rrd_graph.c:465: undefined reference to `g_object_unref'
.libs/librrd_la-rrd_graph.o: In function `rrd_graph_init':
src/rrd_graph.c:4840: undefined reference to `g_object_unref'
Wolfgang Stöggl [Thu, 29 Nov 2018 11:21:06 +0000 (12:21 +0100)]
Fix tests to support Windows time zone name
- On Windows, names of times zones are different.
Substitute 'W. Europe Standard Time' with 'CET' by function seddif
- Removes unnecessary diff output and fixes therefore failing tests
Wolfgang Stöggl [Wed, 7 Nov 2018 15:25:37 +0000 (16:25 +0100)]
Add windows-default-manifest to README-MinGW-w64
- windows-default-manifest is available for Fedora in the meantime.
This adds a default manifest to the compiled binaries and prevents
unnecessary elevated privileges, e.g. for 32-bit rrdupdate.exe
Wolfgang Stöggl [Wed, 26 Sep 2018 12:59:20 +0000 (14:59 +0200)]
Update perl-shared README for MSVC and ActivePerl
- Using MSVC, the last supported ActivePerl version is 5.16,
e.g. ActivePerl-5.16.3.1604-MSWin32-x86-298023.msi
- Since 5.18, ActivePerl is compiled with GCC compilers, and Microsoft
toolchains are *not* compatible
- See this FAQ for further details:
https://community.activestate.com/faq/windows-compilers-perl-modules
Karl Palsson [Fri, 17 Aug 2018 07:51:40 +0000 (07:51 +0000)]
lua: don't include rrd_restore if it wasn't included (#901)
The lua module compiles ok, but fails to load.
> rrd=require("rrd")
error loading module 'rrd' from file '/usr/lib/lua/rrd.so':
Error relocating /usr/lib/lua/rrd.so: rrd_restore: symbol not found
stack traceback:
[C]: ?
[C]: in function 'require'
Wolfgang Stöggl [Sat, 14 Jul 2018 12:31:06 +0000 (14:31 +0200)]
Fix lastupdate time in dump (32bit MSVC only)
- So far, (null) was written into the lastupdate time string:
e.g.: <lastupdate>1511170870</lastupdate> <!-- (null) -->
- The problem occurred only in 32bit MSVC builds
- Works for both, with or without _USE_32BIT_TIME_T