8000 Build fails due to deprecated PNG function · Issue #18783 · darktable-org/darktable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Build fails due to deprecated PNG function #18783
Closed as not planned
Closed as not planned
@epeeist

Description

@epeeist

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

I am building on OpenSUSE Tumbleweed, which has PNG 1.7. When trying to build c-darktable with SCBI I get the following error:

[ 93%] Built target watermark
/home/colin/dev/builds/c-darktable/x86_64-suse-linux-default/src/src/imageio/format/png.c: In function ‘write_image’:
/home/colin/dev/builds/c-darktable/x86_64-suse-linux-default/src/src/imageio/format/png.c:188:3: error: ‘png_set_compression_buffer_size’ is deprecated [-Werror=deprecated-declarations]
  188 |   png_set_compression_buffer_size(png_ptr, 8192);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors

Steps to reproduce

Fails whenever a build is made

Expected behavior

No response

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

git master

What OS are you using?

Linux

What is the version of your OS?

Linux murorum 6.14.4-1-default #1 SMP PREEMPT_DYNAMIC Fri Apr 25 09:13:41 UTC 2025 (584fafa) x86_64 x86_64 x86_64 GNU/Linux

Describe your system

No response

Are you using OpenCL GPU in darktable?

None

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: upstreamhe bug needs a fix outside of the scope of darktable, in an external lib or in a driver

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0