]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
6 years agoRemoved "can't break line" warnings when making .txt files from .1 files
Peter Valdemar Mørch [Thu, 3 Jan 2019 21:41:23 +0000 (22:41 +0100)] 
Removed "can't break line" warnings when making .txt files from .1 files

Multiple warnings were removed e.g. this one (chosen at random):

rrdgraph_data.1:141: warning [p 1, 1.3i]: can't break line

6 years agoupdate tests including verification of timestamp alignement
Tobias Oetiker [Thu, 3 Jan 2019 12:02:14 +0000 (13:02 +0100)] 
update tests including verification of timestamp alignement

6 years agoupdate tests including verification of timestamp alignement
Tobias Oetiker [Thu, 3 Jan 2019 12:01:39 +0000 (13:01 +0100)] 
update tests including verification of timestamp alignement

6 years agofix off by one issue #913
Tobias Oetiker [Thu, 3 Jan 2019 11:02:08 +0000 (12:02 +0100)] 
fix off by one issue #913

6 years agoadd graph test
Tobias Oetiker [Thu, 3 Jan 2019 11:01:20 +0000 (12:01 +0100)] 
add graph test

6 years agoAdd -lws2_32 for MinGW builds by configure
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.

6 years agoCheck for gobject-2.0 in configure
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'

6 years agoSync librrd-4.def with librrd.sym
Wolfgang Stöggl [Fri, 14 Dec 2018 15:02:11 +0000 (16:02 +0100)] 
Sync librrd-4.def with librrd.sym

- Export the same functions in the dll from MSVC builds under Windows
  as listed in librrd.sym

6 years agoFix warning strncpy bound equals destination size
Wolfgang Stöggl [Fri, 14 Dec 2018 11:11:05 +0000 (12:11 +0100)] 
Fix warning strncpy bound equals destination size

- Reduce num from 5 to 4 in strncpy and add null terminator.
  Remark: Version strings consist of 4 chars, e.g. RRD_VERSION5 "0005"

- Fixes the following GCC 8 warnings:
  rrd_create.c:960:9: warning:
    ‘strncpy’ specified bound 5 equals destination size
    [-Wstringop-truncation]
    strncpy(rrd.stat_head->version, require_version, 5);

  rrd_modify.c:1218:9: warning:
    ‘strncpy’ specified bound 5 equals destination size
    [-Wstringop-truncation]
    strncpy(out->stat_head->version, require_version, 5);

6 years agoFix tests to support Windows time zone name
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

6 years agoDisable Travis CI valgrind-logfile failing tests
Wolfgang Stöggl [Sun, 25 Nov 2018 10:51:40 +0000 (11:51 +0100)] 
Disable Travis CI valgrind-logfile failing tests

- These failing tests are not directly coming from rrdtool
  and are related to external libraries
- Allows Travis CI builds to pass again

6 years agoFix loop, sizeof(delims)
Wolfgang Stöggl [Fri, 23 Nov 2018 11:52:12 +0000 (12:52 +0100)] 
Fix loop, sizeof(delims)

- Update to https://github.com/oetiker/rrdtool-1.x/commit/2154d02

6 years agoUpdate to PR #915
netniV [Thu, 15 Nov 2018 16:44:02 +0000 (16:44 +0000)] 
Update to PR #915

6 years agoAdd windows-default-manifest to README-MinGW-w64
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

6 years agominor adjustment to patch for #914
Alexander Zangerl [Wed, 31 Oct 2018 23:40:03 +0000 (09:40 +1000)] 
minor adjustment to patch for #914

6 years agoissue #914, rrdtool graph with --title segfaults and misparses single-line args
Alexander Zangerl [Tue, 30 Oct 2018 04:49:58 +0000 (14:49 +1000)] 
issue #914, rrdtool graph with --title segfaults and misparses single-line args

reworked graph_title_split() to not segfault,
to handle leading/trailing/duplicate delimiters, and to produce the
appropriate number of output lines.

code now works and properly handles nasties
like --title '\n\none\n\nfourtyseven\n'

6 years ago#914, rrdtool graph with --title segfaults
Alexander Zangerl [Tue, 30 Oct 2018 03:09:26 +0000 (13:09 +1000)] 
#914, rrdtool graph with --title segfaults

6 years agoUpdate perl-shared README for MSVC and ActivePerl
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

6 years agolua: build failure when rrd graph is disabled. (#900)
Karl Palsson [Fri, 17 Aug 2018 07:52:54 +0000 (07:52 +0000)] 
lua: build failure when rrd graph is disabled. (#900)

Needs the same protection used elsewhere in the file.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agolua: don't include rrd_restore if it wasn't included (#901)
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'

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agowe can not use libtool from within configure as it only gets generated at the end...
Tobias Oetiker [Tue, 7 Aug 2018 06:53:46 +0000 (08:53 +0200)] 
we can not use libtool from within configure as it only gets generated at the end of the run ...

7 years agoAllow multiple lines in graph titles (#897)
Mark Brugnoli-Vinten [Wed, 1 Aug 2018 14:50:49 +0000 (15:50 +0100)] 
Allow multiple lines in graph titles (#897)

7 years agoMerge pull request #894 from c72578/2018-07-14_32bit_time_issue_dump_MSVC
Tobias Oetiker [Mon, 16 Jul 2018 05:52:07 +0000 (07:52 +0200)] 
Merge pull request #894 from c72578/2018-07-14_32bit_time_issue_dump_MSVC

Fix lastupdate time in dump (32bit MSVC only)

7 years agoFix lastupdate time in dump (32bit MSVC only) 894/head
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

7 years agoMerge pull request #893 from c72578/2018-07-13_HAVE_RRD_RESTORE_MSVC
Tobias Oetiker [Fri, 13 Jul 2018 13:23:00 +0000 (15:23 +0200)] 
Merge pull request #893 from c72578/2018-07-13_HAVE_RRD_RESTORE_MSVC

Define HAVE_RRD_RESTORE (MSVC)

7 years agoDefine HAVE_RRD_RESTORE (MSVC) 893/head
Wolfgang Stöggl [Fri, 13 Jul 2018 11:51:58 +0000 (13:51 +0200)] 
Define HAVE_RRD_RESTORE (MSVC)

- Enables restore functionality on Windows MSVC builds
- Fixes ERROR: the instance of rrdtool has been compiled without XML
  import functions

7 years agoMerge pull request #891 from weyou/fix-rrdfile-write-issue
Tobias Oetiker [Mon, 18 Jun 2018 11:40:05 +0000 (13:40 +0200)] 
Merge pull request #891 from weyou/fix-rrdfile-write-issue

Fix rrdfile write mode issue on Windows

7 years agoAdded a empty line to keep the original style 891/head
weyou [Mon, 18 Jun 2018 09:55:01 +0000 (17:55 +0800)] 
Added a empty line to keep the original style

7 years agoFixed the rrd file write mode on Windows
weyou [Mon, 18 Jun 2018 09:32:47 +0000 (17:32 +0800)] 
Fixed the rrd file write mode on Windows

7 years agoMerge pull request #882 from nirgal/patch-1
Tobias Oetiker [Thu, 29 Mar 2018 08:39:03 +0000 (10:39 +0200)] 
Merge pull request #882 from nirgal/patch-1

Fixed typo in error message

7 years agoFixed typo in error message 882/head
nirgal [Thu, 29 Mar 2018 08:34:08 +0000 (10:34 +0200)] 
Fixed typo in error message

7 years agoMerge pull request #881 from c72578/2018-03-25_Update_README-MinGW-w64
Tobias Oetiker [Sun, 25 Mar 2018 13:01:13 +0000 (15:01 +0200)] 
Merge pull request #881 from c72578/2018-03-25_Update_README-MinGW-w64

Update MinGW-w64 build instructions

7 years agoUpdate MinGW-w64 build instructions 881/head
Wolfgang Stöggl [Sun, 25 Mar 2018 11:44:50 +0000 (13:44 +0200)] 
Update MinGW-w64 build instructions

- Info added, where to find compiled binaries:
  src/.libs/
- Added perl-Pod-Html to Fedora dependencies
- Added base-devel to MSYS2 build instructions

7 years agoMerge pull request #879 from Tomo59/master
Tobias Oetiker [Thu, 8 Mar 2018 08:06:23 +0000 (09:06 +0100)] 
Merge pull request #879 from Tomo59/master

Fix rrdtool.graph python binding

7 years agoFix rrdtool.graph python binding 879/head
Thomas Gambier [Tue, 6 Mar 2018 14:10:23 +0000 (15:10 +0100)] 
Fix rrdtool.graph python binding

It was failing with 'munmap_chunk(): invalid pointer' error in python 3.6.3

7 years agoMerge pull request #877 from nirgal/french
Tobias Oetiker [Fri, 16 Feb 2018 07:09:58 +0000 (08:09 +0100)] 
Merge pull request #877 from nirgal/french

French

7 years agoFrench translation 877/head
Jean-Michel Vourgère [Wed, 14 Feb 2018 13:26:29 +0000 (14:26 +0100)] 
French translation

7 years agoStop ignoring translation updates
Jean-Michel Vourgère [Wed, 14 Feb 2018 13:26:01 +0000 (14:26 +0100)] 
Stop ignoring translation updates

7 years agoMerge pull request #875 from matwey/fix/static-2
Tobias Oetiker [Tue, 13 Feb 2018 09:50:54 +0000 (10:50 +0100)] 
Merge pull request #875 from matwey/fix/static-2

Do not use static variable in gfx_prep_text()

7 years agoDo not use static variable in gfx_prep_text() 875/head
Matwey V. Kornilov [Sat, 10 Feb 2018 21:44:06 +0000 (00:44 +0300)] 
Do not use static variable in gfx_prep_text()

Move last_tabwidth to image_desc_t

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agoMerge pull request #874 from nirgal/patch-2
Tobias Oetiker [Sat, 10 Feb 2018 15:47:32 +0000 (16:47 +0100)] 
Merge pull request #874 from nirgal/patch-2

Really enable translations

7 years agoMerge pull request #873 from matwey/fix/static-1
Tobias Oetiker [Sat, 10 Feb 2018 15:45:54 +0000 (16:45 +0100)] 
Merge pull request #873 from matwey/fix/static-1

Do not use static variables in xtr() and ytr()

7 years agoReally enable translations 874/head
nirgal [Fri, 9 Feb 2018 23:39:55 +0000 (00:39 +0100)] 
Really enable translations

Fix for issue #872.

7 years agoDo not use static variables in xtr() and ytr() 873/head
Matwey V. Kornilov [Fri, 9 Feb 2018 10:06:39 +0000 (13:06 +0300)] 
Do not use static variables in xtr() and ytr()

Using static variables for writting leads to race conditions. In order to keep
scale for axis we introduce x_pixie and y_pixie into image_desc_t.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agoMerge pull request #871 from nirgal/patch-1
Tobias Oetiker [Wed, 7 Feb 2018 22:32:30 +0000 (23:32 +0100)] 
Merge pull request #871 from nirgal/patch-1

Quiets warning

7 years agoQuiets warning 871/head
nirgal [Wed, 7 Feb 2018 17:08:36 +0000 (18:08 +0100)] 
Quiets warning

gcc using -Wimplicit-fallthrough emits warning because of the typo

7 years agoMerge pull request #870 from nirgal/spell
Tobias Oetiker [Mon, 5 Feb 2018 15:35:39 +0000 (16:35 +0100)] 
Merge pull request #870 from nirgal/spell

Spelling fixes

7 years agoSpelling fixes 870/head
Jean-Michel Vourgère [Mon, 5 Feb 2018 15:32:58 +0000 (16:32 +0100)] 
Spelling fixes

7 years agoMerge pull request #869 from igit/patch-1
Tobias Oetiker [Sun, 4 Feb 2018 22:55:06 +0000 (23:55 +0100)] 
Merge pull request #869 from igit/patch-1

Update CHANGES : version 1.7.0 released on 2017 (not 2016)

7 years agoUpdate CHANGES : version 1.7.0 released on 2017 (not 2016) 869/head
Alexandre SIMON [Fri, 2 Feb 2018 19:18:26 +0000 (20:18 +0100)] 
Update CHANGES : version 1.7.0 released on 2017 (not 2016)

Version 1.7.0 released on **2017**-05-16 not 2016-05-16

7 years agoMerge pull request #858 from NHellFire/master
Tobias Oetiker [Sat, 27 Jan 2018 17:21:11 +0000 (18:21 +0100)] 
Merge pull request #858 from NHellFire/master

Add missing import in setup.py

7 years agoMerge pull request #866 from matwey/fix/python_race
Tobias Oetiker [Sat, 27 Jan 2018 17:20:42 +0000 (18:20 +0100)] 
Merge pull request #866 from matwey/fix/python_race

Fix/python race

7 years agobindings: python: Fix race conditions at arguments access 866/head
Matwey V. Kornilov [Sat, 27 Jan 2018 08:33:23 +0000 (11:33 +0300)] 
bindings: python: Fix race conditions at arguments access

rrdtool_argv and rrdtool_argc have to be allocated at each function stack in
order to have copy of variables for each running thread. Note that we call
librrd functions with GIL unlocked, so previously there was simultaneous access
to global rrdtool_argv and rrdtool_argc variables.

Fixes: 8949308812a0 ("Unlock the global thread lock while processing rrd")
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agobindings: python: Don't use global variables in convert_args() and destroy_args()
Matwey V. Kornilov [Sat, 27 Jan 2018 08:28:11 +0000 (11:28 +0300)] 
bindings: python: Don't use global variables in convert_args() and destroy_args()

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
7 years agoMerge pull request #864 from c72578/2018-01-26_update_documentation
Tobias Oetiker [Fri, 26 Jan 2018 15:11:57 +0000 (16:11 +0100)] 
Merge pull request #864 from c72578/2018-01-26_update_documentation

Update documentation

7 years agoUpdate documentation 864/head
Wolfgang Stöggl [Fri, 26 Jan 2018 14:56:48 +0000 (15:56 +0100)] 
Update documentation

- Some typos corrected

7 years agoexclude pango fontmap cache
Tobias Oetiker [Wed, 17 Jan 2018 08:46:38 +0000 (09:46 +0100)] 
exclude pango fontmap cache

7 years agoMerge pull request #862 from yarda/yardas
Tobias Oetiker [Fri, 5 Jan 2018 14:13:15 +0000 (15:13 +0100)] 
Merge pull request #862 from yarda/yardas

Fixed configure --enable / --disable options

7 years agoFixed configure --enable / --disable options 862/head
Jaroslav Škarvada [Fri, 5 Jan 2018 13:19:12 +0000 (14:19 +0100)] 
Fixed configure --enable / --disable options

E.g. now './configure --enable-libdbi' works.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
7 years agoMerge pull request #860 from c72578/2018-01-04_update_documentation
Tobias Oetiker [Thu, 4 Jan 2018 17:40:56 +0000 (18:40 +0100)] 
Merge pull request #860 from c72578/2018-01-04_update_documentation

Update documentation

7 years agoUpdate documentation 860/head
Wolfgang Stöggl [Thu, 4 Jan 2018 13:45:43 +0000 (14:45 +0100)] 
Update documentation

- Some typos corrected
- Minor updates and corrections

7 years agoAdd missing import in setup.py 858/head
Nathan Rennie-Waldock [Wed, 3 Jan 2018 19:43:41 +0000 (19:43 +0000)] 
Add missing import in setup.py

7 years agoMerge pull request #857 from c72578/2018-01-02_fix_warning_this_use_of_defined
Tobias Oetiker [Tue, 2 Jan 2018 14:20:44 +0000 (15:20 +0100)] 
Merge pull request #857 from c72578/2018-01-02_fix_warning_this_use_of_defined

Fix expansion-to-defined warnings (GCC 7)

7 years agoMerge pull request #856 from c72578/2017-12-31_fix_time_t_fprintf_printf_msvc
Tobias Oetiker [Tue, 2 Jan 2018 14:19:06 +0000 (15:19 +0100)] 
Merge pull request #856 from c72578/2017-12-31_fix_time_t_fprintf_printf_msvc

Fix 64-bit time_t in fprintf, printf (MSVC)

7 years agoFix expansion-to-defined warnings (GCC 7) 857/head
Wolfgang Stöggl [Tue, 2 Jan 2018 10:04:40 +0000 (11:04 +0100)] 
Fix expansion-to-defined warnings (GCC 7)

- Fixed compiler warnings:
  gettext.h:176:6: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:200:5: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:215:6: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:246:5: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
  gettext.h:261:6: warning: this use of "defined" may not be portable
  [-Wexpansion-to-defined] #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS

7 years agoFix 64-bit time_t in fprintf, printf (MSVC) 856/head
Wolfgang Stöggl [Sun, 31 Dec 2017 13:38:29 +0000 (14:38 +0100)] 
Fix 64-bit time_t in fprintf, printf (MSVC)

- In VS2005 and later, the default size for time_t is 64-bit, unless
  _USE_32BIT_TIME_T has been defined to use a 32-bit time_t ...

- Fixes MSVC compiler warnings:
  ./src\rrd_graph_helper.c(1465): warning C4477: 'fprintf' :
  format string '%li' requires an argument of type 'long',
  but variadic argument 1 has type 'time_t'

  ./src\rrd_lastupdate.c(83): warning C4477: 'printf' :
  format string '%10lu' requires an argument of type 'unsigned long',
  but variadic argument 1 has type 'time_t'

  ./src\rrd_tool.c(720): warning C4477: 'printf' : format string '%ld'
  requires an argument of type 'long', but variadic argument 1 has type
  'time_t'
  ./src\rrd_tool.c(724): warning C4477: 'printf' : format string '%ld'
  requires an argument of type 'long', but variadic argument 1 has type
  'time_t'
  ./src\rrd_tool.c(742): warning C4477: 'printf' : format string
  '%10lu' requires an argument of type 'unsigned long', but variadic
  argument 1 has type 'time_t'

7 years agoMerge pull request #855 from c72578/2017-12-29_add_files_to_extra_dist
Tobias Oetiker [Fri, 29 Dec 2017 20:48:55 +0000 (21:48 +0100)] 
Merge pull request #855 from c72578/2017-12-29_add_files_to_extra_dist

Add missing files to src/Makefile.am EXTRA_DIST

7 years agoAdd missing files to src/Makefile.am EXTRA_DIST 855/head
Wolfgang Stöggl [Fri, 29 Dec 2017 09:59:18 +0000 (10:59 +0100)] 
Add missing files to src/Makefile.am EXTRA_DIST

- src/Makefile.am, added to EXTRA_DIST:
  mkstemp.c
  mkstemp.h

7 years agonot required anymore
Tobias Oetiker [Fri, 29 Dec 2017 15:30:59 +0000 (16:30 +0100)] 
not required anymore

7 years agoMerge pull request #854 from c72578/2017-12-26_configure.ac_Makefile.am_win32-glob_mi...
Tobias Oetiker [Tue, 26 Dec 2017 14:05:44 +0000 (15:05 +0100)] 
Merge pull request #854 from c72578/2017-12-26_configure.ac_Makefile.am_win32-glob_mingw-w64

Check for MinGW-w64 build, add win32-glob files

7 years agoRemove win32-glob.c, win32-glob.h from EXTRA_DIST 854/head
Wolfgang Stöggl [Tue, 26 Dec 2017 06:46:09 +0000 (07:46 +0100)] 
Remove win32-glob.c, win32-glob.h from EXTRA_DIST

- Makefile.am: win32/win32-glob.c and win32/win32-glob.h are mentioned
  in src/Makefile.am now. Removed from EXTRA_DIST

7 years agoCheck for MinGW-w64 build, add win32-glob files
Wolfgang Stöggl [Tue, 26 Dec 2017 05:57:53 +0000 (06:57 +0100)] 
Check for MinGW-w64 build, add win32-glob files

- configure.ac: Add check for MinWG-w64 build during configure.
  Pass the conditional MINGW_W64 to automake
- src/Makefile.am: Add win32-glob.c to RRD_C_FILES and
  win32-glob.h to noinst_HEADERS in case of MINGW_W64
- Enables out of the box configure and make for MinGW-w64 builds

7 years agoMerge pull request #853 from c72578/2017-12-25_README-MinGW-w64
Tobias Oetiker [Mon, 25 Dec 2017 18:03:02 +0000 (19:03 +0100)] 
Merge pull request #853 from c72578/2017-12-25_README-MinGW-w64

Add documentation for building under MinGW-w64

7 years agoAdd documentation for building under MinGW-w64 853/head
Wolfgang Stöggl [Mon, 25 Dec 2017 14:15:14 +0000 (15:15 +0100)] 
Add documentation for building under MinGW-w64

7 years agoMerge pull request #851 from c72578/2017-12-14_fix_compiler_warning_llu_lli_64bit_min...
Tobias Oetiker [Wed, 20 Dec 2017 15:24:35 +0000 (16:24 +0100)] 
Merge pull request #851 from c72578/2017-12-14_fix_compiler_warning_llu_lli_64bit_mingw-w64

Fix compiler warnings, llu lli 64bit (MinGW-w64)

7 years agoFix compiler warnings, llu lli 64bit (MinGW-w64) 851/head
Wolfgang Stöggl [Thu, 14 Dec 2017 20:10:11 +0000 (21:10 +0100)] 
Fix compiler warnings, llu lli 64bit (MinGW-w64)

- time_t is of type 'long long int', when compiled for 64 bit Windows
  (x86_64-w64-mingw32). Use %10llu instead of %10lu in printf and
  %lli instead of %li in dprintf. Requires __USE_MINGW_ANSI_STDIO 1

- Fixes: rrd_lastupdate.c: In function 'rrd_lastupdate':
  rrd_lastupdate.c:76:18:
  warning: format '%lu' expects argument of type 'long unsigned int',
  but argument 2 has type 'time_t {aka long long int}' [-Wformat=]

- Fixes: rrd_graph_helper.c: In function 'parse_shift':
  rrd_graph_helper.c:1458:13:
  warning: format '%li' expects argument of type 'long int',
  but argument 3 has type 'time_t {aka long long int}' [-Wformat=]
  dprintf("SHIFTBY : %li\n",gdp->shval);

7 years agoMerge pull request #849 from c72578/2017-12-07_fix_further_build_errors_mingw-w64
Tobias Oetiker [Sun, 10 Dec 2017 14:31:48 +0000 (15:31 +0100)] 
Merge pull request #849 from c72578/2017-12-07_fix_further_build_errors_mingw-w64

Fix ctime_r configure error (MinGW-w64)

7 years agoFix ctime_r configure error (MinGW-w64) 849/head
Wolfgang Stöggl [Thu, 7 Dec 2017 20:43:53 +0000 (21:43 +0100)] 
Fix ctime_r configure error (MinGW-w64)

- configure.ac: include pthread.h inside AC_LANG_PROGRAM
  for ctime_r check if __MINGW32__ is defined
  Fixes:
  checking if ctime_r need special care to act posixly correct...
  configure: error: Can't figure how to compile ctime_r

7 years agoMerge pull request #848 from c72578/2017-12-06_fix_further_build_errors_mingw-w64
Tobias Oetiker [Wed, 6 Dec 2017 22:28:38 +0000 (23:28 +0100)] 
Merge pull request #848 from c72578/2017-12-06_fix_further_build_errors_mingw-w64

Fix further build errors (MinGW-w64)

7 years agoFix further build errors (MinGW-w64) 848/head
Wolfgang Stöggl [Wed, 6 Dec 2017 10:55:04 +0000 (11:55 +0100)] 
Fix further build errors (MinGW-w64)

- rrd_list.c: MinGW-w64 does not provide glob.h (yet?)
  include win32/win32-glob.h using HAVE_GLOB_H. Fixes:
  rrd_list.c:9:10: fatal error: glob.h: No such file or directory
    #include <glob.h>
- rrd_update.c: MinGW has gettimeofday() in time.h. Fixes:
  rrd_update.c:46:12: error: conflicting types for 'gettimeofday'
    static int gettimeofday(
- rrd_tool.c: MinGW has not got getuid and mkdir only one argument.
  Fixes:
  rrd_tool.c:585:17: warning: nested extern declaration of 'getuid'
  rrd_tool.c:632:16: error: too many arguments to function 'mkdir'
    if(mkdir(argv[2], 0777)!=0){
- rrd_tool.h:
  MinGW-w64 provides localtime_r, ctime_r, gmtime_r, strtok_r
- rrd_graph.c: MinGW has strftime and tzname.
  Due to the resulting later include of time.h, fixes also:
  rrd_graph.c:1558: undefined reference to `localtime_r'
- rrd_client.c: MinGW does not provide realpath, "is_unix" excluded.
  Fixes:
  rrd_client.c:113: undefined reference to `realpath'
  rrd_client.c:130: undefined reference to `realpath'
- rrd_rpncalc.c: include pthread.h. Fixes e.g.:
  rrd_rpncalc.c:708: undefined reference to `localtime_r'

7 years agoMerge pull request #847 from c72578/2017-12-01_add_glob.h_to_configure.ac_AC_CHECK_HE...
Tobias Oetiker [Sat, 2 Dec 2017 20:27:26 +0000 (21:27 +0100)] 
Merge pull request #847 from c72578/2017-12-01_add_glob.h_to_configure.ac_AC_CHECK_HEADERS

Add glob.h to configure.ac AC_CHECK_HEADERS

7 years agoAdd glob.h to configure.ac AC_CHECK_HEADERS 847/head
Wolfgang Stöggl [Fri, 1 Dec 2017 11:51:01 +0000 (12:51 +0100)] 
Add glob.h to configure.ac AC_CHECK_HEADERS

- Adds check for glob.h
- Provides HAVE_GLOB_H

7 years agoUse #ifdef instead of #if for HAVE_... (#846)
Wolfgang Stöggl [Thu, 30 Nov 2017 07:55:16 +0000 (08:55 +0100)] 
Use #ifdef instead of #if for HAVE_... (#846)

- Harmonizes usage of #ifdef also for:
  HAVE_STRFTIME, HAVE_STDARG_H, HAVE_GETRUSAGE
- Fixes compiler warnings like:
  rrd_tool.c:468:5: warning: "HAVE_GETRUSAGE" is not defined,
  evaluates to 0 [-Wundef]

7 years agoMerge pull request #845 from c72578/2017-11-28_remove_check_for_fdatasync_fsync_from_...
Tobias Oetiker [Tue, 28 Nov 2017 21:25:57 +0000 (22:25 +0100)] 
Merge pull request #845 from c72578/2017-11-28_remove_check_for_fdatasync_fsync_from_rrd_config_bottom.h

Remove fdatasync, fsync from rrd_config_bottom.h

7 years agoRemove fdatasync, fsync from rrd_config_bottom.h 845/head
Wolfgang Stöggl [Tue, 28 Nov 2017 08:18:55 +0000 (09:18 +0100)] 
Remove fdatasync, fsync from rrd_config_bottom.h

- fdatasync() has been removed since RRDtool v1.4.0.
  See commit: fc968dd
- fixes "Can't compile with without fsync and fdatasync" error
  on systems, where HAVE_FDATASYNC or HAVE_FSYNC are not defined

7 years agoAdded support for --allow-shrink with --rigid flag (#843)
Matej Dujava [Mon, 27 Nov 2017 14:31:38 +0000 (15:31 +0100)] 
Added support for --allow-shrink with --rigid flag (#843)

* Added support for --allow-shrink with --rigid flag

Signed-off-by: Matej Dujava <mdujava@gmail.com>
* Fixed typo in doc/rrdgraph.pod.

Signed-off-by: Matej Dujava <mdujava@gmail.com>
7 years agoMerge pull request #844 from c72578/fix_build_errors_mingw-w64
Tobias Oetiker [Mon, 27 Nov 2017 14:14:32 +0000 (15:14 +0100)] 
Merge pull request #844 from c72578/fix_build_errors_mingw-w64

Fix build errors (MinGW-w64)

7 years agoFix build errors (MinGW-w64) 844/head
Wolfgang Stöggl [Mon, 27 Nov 2017 14:03:24 +0000 (15:03 +0100)] 
Fix build errors (MinGW-w64)

- rrd.h, fixed build error:
  rrd.h:66:17: error: conflicting types for 'ssize_t'
  typedef size_t ssize_t;
  Remark: MinGW-w64 has ssize_t and off_t
- rrd_restore.c, fixed build error:
  rrd_restore.c:29:17: error: conflicting types for 'ssize_t'
  typedef size_t ssize_t;
- rrd_utils.c, fixed build error:
  rrd_utils.c:226:10: error: too many arguments to function 'mkdir'
     if ((mkdir(pathname, mode) != 0) && (errno != EEXIST)) {

7 years agoDon't decref Py_None in case (#842)
Christian Kröger [Wed, 22 Nov 2017 19:29:37 +0000 (20:29 +0100)] 
Don't decref Py_None in case (#842)

7 years agoUpdate vcxproj files, fix debug builds (MSVC) (#841)
Wolfgang Stöggl [Wed, 22 Nov 2017 12:29:35 +0000 (13:29 +0100)] 
Update vcxproj files, fix debug builds (MSVC) (#841)

- Solution configuration Debug|Win32: Changed MultiThreadedDebug to
  MultiThreadedDebugDLL in rrdtool.vcxproj and rrdupdate.vcxproj.
  Now the RuntimeLibrary setting is the same as in librrd-4.vcxproj.
- Solution configuration Static Debug|Win32: Added double quotes around
  $(TargetDir), because there is a space in "Static Debug". Fixes
  failing copy commands of dlls by using "$(TargetDir)" now.

7 years agoSort librrd.sym alphabetically (#840)
Wolfgang Stöggl [Tue, 21 Nov 2017 13:28:51 +0000 (14:28 +0100)] 
Sort librrd.sym alphabetically (#840)

7 years agoUpdate rrdgraph_examples.pod (#838)
Wolfgang Stöggl [Sat, 18 Nov 2017 11:06:27 +0000 (12:06 +0100)] 
Update rrdgraph_examples.pod (#838)

- Fix --img-format -> --imgformat
- Remove duplicate word aberrant

7 years agoDefine HAVE_G_REGEX_NEW, remove PCRE deps (MSVC) (#839)
Wolfgang Stöggl [Sat, 18 Nov 2017 10:51:52 +0000 (11:51 +0100)] 
Define HAVE_G_REGEX_NEW, remove PCRE deps (MSVC) (#839)

- Define HAVE_G_REGEX_NEW 1 in rrd_config.h
  glib has g_regex_new since 2.14
- Remove dependency on PCRE, which is not required any more

7 years agofix some grammar errors and typos (#825)
Tianpeng Xia [Sun, 29 Oct 2017 10:45:27 +0000 (18:45 +0800)] 
fix some grammar errors and typos (#825)

7 years agoMerge pull request #835 from c72578/2017-10-12_fix_some_typos_in_comments
Tobias Oetiker [Fri, 13 Oct 2017 16:21:57 +0000 (18:21 +0200)] 
Merge pull request #835 from c72578/2017-10-12_fix_some_typos_in_comments

Fix some typos in comments

7 years agoFix some typos in comments 835/head
Wolfgang Stöggl [Fri, 13 Oct 2017 12:50:53 +0000 (14:50 +0200)] 
Fix some typos in comments

- Corrected observed typos in code comments and strings
- Harmonize spelling of RRDtool:
  RRDTool -> RRDtool

7 years agoMerge pull request #834 from c72578/2017-10-11_rrd_config.h_HAVE_UINTPTR_T
Tobias Oetiker [Wed, 11 Oct 2017 20:58:23 +0000 (22:58 +0200)] 
Merge pull request #834 from c72578/2017-10-11_rrd_config.h_HAVE_UINTPTR_T

Define HAVE_UINTPTR_T in rrd_config.h for Windows

7 years agoDefine HAVE_UINTPTR_T in rrd_config.h for Windows 834/head
Wolfgang Stöggl [Wed, 11 Oct 2017 19:47:22 +0000 (21:47 +0200)] 
Define HAVE_UINTPTR_T in rrd_config.h for Windows

- Fixes compilation error, when building for x64 under Windows (MSVC):
  ./src\rrd_snprintf.c(901): warning C4311: 'type cast':
  pointer truncation from 'const char *' to 'unsigned long'
- uintptr_t is a defined standard type in Visual Studio:
  https://msdn.microsoft.com/en-us/library/323b6b3k.aspx

7 years agoUse pcre from Win-builds, enables x64 builds (#833)
Wolfgang Stöggl [Tue, 10 Oct 2017 20:58:12 +0000 (22:58 +0200)] 
Use pcre from Win-builds, enables x64 builds (#833)

- Switch to newer version of pcre from Win-builds
  http://win-builds.org/next/packages/windows_32/
  http://win-builds.org/next/packages/windows_64/
- Changed:
  pcre3.dll -> libpcre-1.dll
  pcre.lib -> libpcre-1.lib

7 years agoFix formal parameter different from declaration (#832)
Wolfgang Stöggl [Mon, 9 Oct 2017 18:56:36 +0000 (20:56 +0200)] 
Fix formal parameter different from declaration (#832)

- Fixes compiler warnings C4028 (MSVC):
  formal parameter 2 different from declaration src\rrd_first.c 87
  formal parameter 3 different from declaration src\rrd_graph_helper.c 1500
  formal parameter 5 different from declaration src\rrd_modify.c 90