Giter Club home page Giter Club logo

Comments (5)

phaag avatar phaag commented on September 22, 2024

This is not an 1.7.4 issue, as that code did not change. It looks like you add your own build flags which add lots of other compiler options along with -Werror=format-security. This makes the potential warning of ‘const char **’ but argument is of type ‘char **’ to an error. You could leave that option out or reduce it to -Wformat-security.

from nfdump.

phaag avatar phaag commented on September 22, 2024

What rrdtool version have you installed?

from nfdump.

dfateyev avatar dfateyev commented on September 22, 2024

Fedora features rrdtool 1.8.0. But it can be built fine.
The issue, as you have mentioned, is in the build option(s) — and unfortunately I can't opt them out as a hardening requirement in the distro (probably, other distros will have the same issue).

from nfdump.

phaag avatar phaag commented on September 22, 2024

hmm .. but the released rrdtool-1.8.0 does not have the const char **) arguments. This was a change introduced in Dec 2023: oetiker/rrdtool-1.x#1242. This means Fedora uses the master repo for its package. But it also means that this breaks compatibility with the release version.
As long as there is no new release of rrdtool, I do not want to change the code, as this would break all other Linux distros, or *BSDs.
Therefore, you could patch nfdump-1.7.4 and add the const keyword to the rrd_arg array in nftrack_rrd.c as well as in profile.c

from nfdump.

dfateyev avatar dfateyev commented on September 22, 2024

I can confirm, it is a rather early change introduced as a patch to fix GCC14 compat in rrdtool: link.
I'll probably apply the same in devel branches, thanks for the hint.

from nfdump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.