]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/log
thirdparty/rrdtool-1.x.git
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

7 years agoFix macro redefinition warnings, update win32 build tips, .gitignore (#831)
Wolfgang Stöggl [Mon, 9 Oct 2017 18:55:55 +0000 (20:55 +0200)] 
Fix macro redefinition warnings, update win32 build tips, .gitignore (#831)

* Add /contrib-x64 to .gitignore

* Add gettext dependency to WIN32-BUILD-TIPS.txt

- Provides intl.dll

* Use /MD instead of /MT for Windows builds

- Change "Use Run-Time Library" to /MD like in the .vcxproj files
- This fixes png display issues of "rrdtool.exe graph" within Cacti

* Fix macro redefinition warnings (MSVC)

- Move inclusion of errno.h before the redefinition of ENOBUFS and ENOTCONN
  undef ENOBUFS and ENOTCONN before redefinition
- undef PATH_MAX before definition or redefinition
- Make definition of isinf, isnan and snprintf conditional
  if _MSC_VER < 1900
  These are supported since Visual Studio 2015
- Add comments and Visual Studio 2015 version details

7 years agoUpdate version, year for Windows builds, etc. (#830)
Wolfgang Stöggl [Wed, 4 Oct 2017 09:49:15 +0000 (11:49 +0200)] 
Update version, year for Windows builds, etc. (#830)

* Add new files from win32 to Makefile.am

- New files were added in the Makefile.am to EXTRA_DIST

* Update version for Windows builds to 1.7.0

- Changed version from 1.4.999 to 1.7.0

* Update Copyright year and ProductName in rc files

- Change year 2013 to 2017
- Change "ProductName" from
  "time-series data storage and display system" to "RRDtool"

7 years agoUpdate Makefile.msc, Windows build updates (#829)
Wolfgang Stöggl [Tue, 3 Oct 2017 19:05:48 +0000 (21:05 +0200)] 
Update Makefile.msc, Windows build updates (#829)

* Add further Windows build files to .gitignore

- Added the following lines, sorted alphabetically:
  /win32/*.VC.db
  /win32/*.VC.opendb
  /win32/.vs
  /win32/DebugDLL
  /win32/Static\ Debug

* Update Makefile.msc for Windows builds with nmake

- Added comment with usage information on top of the file
- Fixed typo CCPFlags -> CPPFLAGS
- Changed from /TP (specifies C++ source files)
  to /TC (specifies C source files)
- Added zdll.lib gthread-2.0.lib pcre.lib to THIRD_PARTY_LIB
- Removed rrd_getopt.obj and rrd_getopt1.obj from RRD_LIB_OBJ_LIST
  added optparse.obj instead
- Added further required .obj files to RRD_LIB_OBJ_LIST
- Added deletion of win32\*.obj to the clean section
- Building of rrdcgi.exe: changed from rrd_getopt.obj
  and rrd_getopt1.obj to optparse.obj
- rc: include ./src, fixes:
  ./win32\rrd_config.h(119) : fatal error RC1015:
  cannot open include file 'mkstemp.h'.
- Added compilation of .c files in ./win32 folder

* Update librrd-4.vcxproj

- Removed ../contrib/include/libpng12 from AdditionalIncludeDirectories
  libpng12 has been updated to libpng14, but the include is not
  necessary, because png.h is found in ../contrib/include too
- Removed <ClCompile Include="..\src\win32comp.c" />
  definitions are already in rrd_thread_safe_nt.c
  Fixes win32comp.obj :
  error LNK2005: _localtime_r, _gmtime_r, _ctime_r, _strtok_r
  already defined in rrd_thread_safe_nt.obj
- Removed /FORCE:MULTIPLE, which is not required any more after removal
  of win32comp.c from compilation

* Update rrdtool.vcxproj

- Removed: IgnoreSpecificDefaultLibraries LIBCMTD.lib;LIBCMT.lib
  Fixes failing build in case of 'Debug|Win32'

* Update rrdupdate.vcxproj

- Added . to AdditionalIncludeDirectories for 'Static Debug|Win32'

7 years agoFix further build errors under Windows, updates (#828)
Wolfgang Stöggl [Tue, 3 Oct 2017 10:03:53 +0000 (12:03 +0200)] 
Fix further build errors under Windows, updates (#828)

* Update WIN32-BUILD-TIPS.txt

- Modified links to newer versions of libraries
- Added links for pcre

* Update librrd-4.def

- rrd_flushall -> rrdc_flushall
- Added further exports
- Sorted alphabetically

* Update librrd-4.vcxproj

- Changed CompileAsCpp to CompileAsC
- Updated PlatformToolset from v120 to v140
- Added gthread-2.0.lib;pcre.lib to AdditionalDependencies
- Removed strftime=strftime_ from PreprocessorDefinitions
- Added /FORCE:MULTIPLE to AdditionalOptions for now
  Fixes win32comp.obj :
  error LNK2005: _localtime_r, _gmtime_r, _ctime_r, _strtok_r
  already defined in rrd_thread_safe_nt.obj
- Removed rrd_getopt.c and rrd_getopt1.c, added optparse.c
- Added further .c files to ClCompile, sorted alphabetically
- Removed rrd_getopt.h
- Added further .h files to ClInclude, sorted alphabetically

* Update rrdtool.vcxproj

- Updated PlatformToolset from v120 to v140
- Added intl.dll and pcre3.dll to copy PostBuildEvent

* Update rrdupdate.vcxproj

- Updated PlatformToolset from v120 to v140
- Added intl.dll and pcre3.dll to copy PostBuildEvent
- Added . to AdditionalIncludeDirectories for Debug|Win32

* Include win32-glob.h, dirent.h, asprintf.h (MSC)

- Fixes compilation errors, when building under Windows (e.g. VS2015):
  ..\src\rrd_list.c(4): fatal error C1083: Cannot open include file:
    'glob.h': No such file or directory
  ..\src\rrd_list.c(9): fatal error C1083: Cannot open include file:
    'dirent.h': No such file or directory
  librrd-4.lib(rrd_list.obj) : error LNK2001:
    unresolved external symbol _asprintf
- Added includes for Windows builds (MSC):
  "win32-glob.h" from https://sourceforge.net/projects/sox/
  "dirent.h"     from https://github.com/tronkko/dirent
  "asprintf.h"   from http://asprintf.insanecoding.org

* Add files required to build rrd_list.c (MSC)

The following files are added to the win32 directory
for building under Windows (e.g. VS2015):
- asprintf.c, asprintf.h, vasprintf-msvc.c
  from http://asprintf.insanecoding.org
- dirent.h
  from https://github.com/tronkko/dirent
- win32-glob.c, win32-glob.h
  from https://sourceforge.net/projects/sox/

* Remove spurious executable permission from README

7 years agoFix further build errors under Windows (#826)
Wolfgang Stöggl [Tue, 26 Sep 2017 16:22:21 +0000 (18:22 +0200)] 
Fix further build errors under Windows (#826)

* Define tzname_ for Windows builds (MSC)

- Fixes compilation error, when building under Windows (e.g. VS2015):
  ..\src\strftime.c(248): error C2065: 'tzname': undeclared identifier
- VS defines these variables with a leading underscore: _tzname

* Include win32/rrd_config.h for def of strncasecmp

- Fixes error, when building under Windows (e.g. VS2015):
  error LNK2001: unresolved external symbol _strncasecmp

* Update win32/rrd_config.h, fix VS build errors

- Fix typo: strcasencmp -> strncasecmp
  Fixes error, when building under Windows (e.g. VS2015):
  error LNK2001: unresolved external symbol _strncasecmp
- Define S_ISREG(m)
  Fixes error, when building under Windows (e.g. VS2015):
  error LNK2001: unresolved external symbol _S_ISREG
- Define HAVE_PCRE_COMPILE for Windows builds
  Fixes compilation error, when building under Windows (e.g. VS2015):
  ..\src\rrd_create.c(30): fatal error C1189: #error:
  "you must have either glib with regexp support or libpcre"

7 years agoAdd detailed PDP calculation logics explanation (#824)
Tianpeng Xia [Sat, 23 Sep 2017 18:23:09 +0000 (02:23 +0800)] 
Add detailed PDP calculation logics explanation (#824)

* add detailed calculation logics explanation

* break the content down to parts

* fill in some real content

* Update PDP_calculation_explanation.pod

* finish the doc

* fix some formatting issues

* fix some typoes

* fix typoes

* fix typoes

* change the NAME

7 years agoMerge pull request #823 from c72578/2017-09-20_rrd_create.c_include_unistd.h
Tobias Oetiker [Wed, 20 Sep 2017 08:58:08 +0000 (10:58 +0200)] 
Merge pull request #823 from c72578/2017-09-20_rrd_create.c_include_unistd.h

Include unistd.h only if HAVE_UNISTD_H is defined

7 years agoInclude unistd.h only if HAVE_UNISTD_H is defined 823/head
Wolfgang Stöggl [Wed, 20 Sep 2017 08:40:03 +0000 (10:40 +0200)] 
Include unistd.h only if HAVE_UNISTD_H is defined

- Fixes compilation error, when building under Windows (e.g. VS2015):
  ..\src\rrd_create.c(18): fatal error C1083: Cannot open include file:
  'unistd.h': No such file or directory

7 years agoMerge pull request #822 from c72578/2017-09-19_optparse.c_VLA_malloc
Tobias Oetiker [Tue, 19 Sep 2017 15:35:46 +0000 (17:35 +0200)] 
Merge pull request #822 from c72578/2017-09-19_optparse.c_VLA_malloc

Avoid using VLA in optparse.c under Windows (MSC)

7 years agoAvoid using VLA in optparse.c under Windows (MSC) 822/head
Wolfgang Stöggl [Tue, 19 Sep 2017 14:48:39 +0000 (16:48 +0200)] 
Avoid using VLA in optparse.c under Windows (MSC)

- Fixes compilation errors, when building under Windows (e.g. VS2015):
  ..\src\optparse.c(195): error C2057: expected constant expression
  ..\src\optparse.c(195): error C2466: cannot allocate an array of
  constant size 0
  ..\src\optparse.c(195): error C2133: 'optstring': unknown size
- Variable length arrays are not currently supported in Visual Studio
- Use malloc() instead of variable length array in case of MSC

7 years agoMerge pull request #821 from c72578/2017-09-18_rrd_tune.c_optind
Tobias Oetiker [Mon, 18 Sep 2017 11:20:31 +0000 (13:20 +0200)] 
Merge pull request #821 from c72578/2017-09-18_rrd_tune.c_optind

Fix error 'optind': undeclared identifier

7 years agoFix error 'optind': undeclared identifier 821/head
Wolfgang Stöggl [Mon, 18 Sep 2017 11:09:21 +0000 (13:09 +0200)] 
Fix error 'optind': undeclared identifier

- Fixes compilation error, when building under Windows (e.g. VS2015):
  ..\src\rrd_tune.c(410): error C2065: 'optind': undeclared identifier
- Use options.optind instead of optind
  optind is a member of the struct options

7 years agoMerge pull request #820 from c72578/2017-09-14_add_win32_files_to_Makefile.am
Tobias Oetiker [Thu, 14 Sep 2017 13:46:22 +0000 (15:46 +0200)] 
Merge pull request #820 from c72578/2017-09-14_add_win32_files_to_Makefile.am

Add missing files from win32 to Makefile.am

7 years agoAdd missing files from win32 to Makefile.am 820/head
Wolfgang Stöggl [Thu, 14 Sep 2017 09:07:21 +0000 (11:07 +0200)] 
Add missing files from win32 to Makefile.am

- Missing files were added in the Makefile.am to EXTRA_DIST
- The extra files will be included in the tarball
- See [rrd-users] message:
  https://lists.oetiker.ch/pipermail/rrd-users/2016-August/020443.html

7 years agoMerge pull request #818 from sourcejedi/valgrind_tests
Tobias Oetiker [Tue, 12 Sep 2017 20:04:58 +0000 (22:04 +0200)] 
Merge pull request #818 from sourcejedi/valgrind_tests

Clean up 2 compiler warnings

7 years agoMerge pull request #819 from sourcejedi/rrd_list
Tobias Oetiker [Tue, 12 Sep 2017 20:04:08 +0000 (22:04 +0200)] 
Merge pull request #819 from sourcejedi/rrd_list

2 fixes for rrdtool list

7 years agosrc/rrd_daemon.c: never compare uninitialized bytes 819/head
Alan Jenkins [Tue, 12 Sep 2017 16:11:50 +0000 (17:11 +0100)] 
src/rrd_daemon.c: never compare uninitialized bytes

I don't think this caused the valgrind error in CI either.  It looks wrong
though.

7 years agosrc/rrd_list.c: fix errno
Alan Jenkins [Tue, 12 Sep 2017 15:26:50 +0000 (16:26 +0100)] 
src/rrd_list.c: fix errno

rrd_daemon expected zero errno iff there was not an error
(and we forgot to provide it).

  list = rrd_list_r(recursive, fullpath);

  if (list == NULL) {
    /* Empty directory listing */
    if (errno == 0) {
      goto out_send_response;
    }

7 years agosrc/rrd_daemon.c: "comparison between pointer and zero character constant" 818/head
Alan Jenkins [Tue, 12 Sep 2017 13:00:42 +0000 (14:00 +0100)] 
src/rrd_daemon.c: "comparison between pointer and zero character constant"

rrd_daemon.c: In function ‘handle_request_list’:
rrd_daemon.c:2587:22: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   } while (start_ptr != '\0');
                      ^~
rrd_daemon.c:2587:12: note: did you mean to dereference the pointer?
   } while (start_ptr != '\0');

I thought this might be related to what travis picked up with valgrind
here, but I couldn't reproduce it.  Also I don't think this commit fixes a
bug; all it's doing is cleaning up the compiler warning.

Starting rrdcached...
OK: empty directory ./list1_dir returns nothing
==23957== LEAK SUMMARY:
==23957==    definitely lost: 0 bytes in 0 blocks
==23957==    indirectly lost: 0 bytes in 0 blocks
==23957==      possibly lost: 0 bytes in 0 blocks
==23957==    still reachable: 14,712 bytes in 6 blocks
==23957==         suppressed: 0 bytes in 0 blocks
==23957==
==23957== For counts of detected and suppressed errors, rerun with: -v
==23957== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
FAILED: (rc=valgrind error) single file /list1.rrd
FAIL: list1

7 years agosrc/rrd_daemon.c: remove unused local variable rc
Alan Jenkins [Tue, 12 Sep 2017 13:03:51 +0000 (14:03 +0100)] 
src/rrd_daemon.c: remove unused local variable rc

rrd_daemon.c: In function ‘handle_request_pending’:
rrd_daemon.c:1479:15: warning: unused variable ‘rc’ [-Wunused-variable]
   int status, rc;
               ^~

7 years agoFix valgrind usage in tests (#804)
Alan Jenkins [Tue, 12 Sep 2017 12:17:54 +0000 (13:17 +0100)] 
Fix valgrind usage in tests (#804)

* Fix leak of socket address in rrd_daemon

==11140== 59 bytes in 1 blocks are definitely lost in loss record 132
==11140==    at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
==11140==    by 0x6AD8CC9: strdup (in /usr/lib64/libc-2.24.so)
==11140==    by 0x40A8AF: read_options (rrd_daemon.c:4493)
==11140==    by 0x403114: main (rrd_daemon.c:4882)

* create a file in case the caller has difficulty testing the rc

e.g. because they pipe the output of rrdtool though something else.

Additional valgrind suppressions were needed in 20 out of 21 tests.

* tests: don't try to remove $VALGRIND_ERR_FILE when it doesn't exist

Fix non-fatal warning.

rm: cannot remove `/home/travis/build/oetiker/rrdtool-1.x/tests/
dump-restore-valgrind-err.tmp': No such file or directory

7 years agoshow 1.7
Tobias Oetiker [Tue, 12 Sep 2017 12:07:13 +0000 (14:07 +0200)] 
show 1.7

7 years agoupdate infrastructure files
Tobias Oetiker [Tue, 12 Sep 2017 12:05:53 +0000 (14:05 +0200)] 
update infrastructure files

7 years agoBuild fixes tcl commands (#817)
medranocalvo [Tue, 12 Sep 2017 12:00:21 +0000 (14:00 +0200)] 
Build fixes tcl commands (#817)

* Link to gthread-2.0 when g_thread_init needs to be invoked

See https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-thread-init:

> To use g_thread_init() in your program, you have to link
> with the libraries that the command `pkg-config --libs
> gthread-2.0` outputs. This is not the case for all the other
> thread-related functions of GLib. Those can be used without having to
> link with the thread libraries.

* Support building in a separate directory

* bindings/tcl/Makefile.am: use a relative path to the shlib in pkgIndex.tcl

* Add rrd_info support in Tcl bindings

* Add rrd_first support in Tcl bindings

* Fix memory leak in Rrd_Lastupdate

7 years agoMerge pull request #815 from flumm/perl-documentation-fix
Tobias Oetiker [Tue, 8 Aug 2017 13:02:09 +0000 (15:02 +0200)] 
Merge pull request #815 from flumm/perl-documentation-fix

correct the note in the perl binding about the empty filename

7 years agocorrect the note in the perl binding about the empty filename 815/head
Dominik Csapak [Tue, 8 Aug 2017 12:54:50 +0000 (14:54 +0200)] 
correct the note in the perl binding about the empty filename

passing an empty filename to graphv does not work anymore, but the
documentation of the perl-shared binding still said so

correctly note that you have to pass '-'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix spelling
Tobias Oetiker [Mon, 7 Aug 2017 07:07:44 +0000 (09:07 +0200)] 
fix spelling

8 years agoReturn success for rrdcached pending on empty (#809)
Steven Hartland [Fri, 21 Jul 2017 06:20:58 +0000 (07:20 +0100)] 
Return success for rrdcached pending on empty (#809)

If we have no pending entries for a file return success with no entries instead of returning an error.

8 years agoMerge pull request #813 from kinote/master
Tobias Oetiker [Thu, 20 Jul 2017 06:57:24 +0000 (02:57 -0400)] 
Merge pull request #813 from kinote/master

src/rrd_client.c: fix memory leak in rrd_client_info

8 years agosrc/rrd_client.c: fix memeory leak in rrd_client_info 813/head
Joaquín Aguirrezabalaga [Thu, 20 Jul 2017 06:21:29 +0000 (08:21 +0200)] 
src/rrd_client.c: fix memeory leak in rrd_client_info

A string is being duplicated with strdup and the copy was not being
freed.