Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923023 - media-gfx/pngcrush-1.8.13 - pngcrush.c: error: PNG_IGNORE_ADLER32 undeclared (first use in this function)
Summary: media-gfx/pngcrush-1.8.13 - pngcrush.c: error: PNG_IGNORE_ADLER32 undeclared ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-27 13:10 UTC by Toralf Förster
Modified: 2024-01-30 11:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,22.24 KB, text/plain)
2024-01-27 13:10 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,84.64 KB, application/x-xz)
2024-01-27 13:10 UTC, Toralf Förster
Details
environment (environment,63.37 KB, text/plain)
2024-01-27 13:10 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2024-01-27 13:10 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,32.48 KB, application/x-xz)
2024-01-27 13:10 UTC, Toralf Förster
Details
media-gfx:pngcrush-1.8.13:20240127-130800.log (media-gfx:pngcrush-1.8.13:20240127-130800.log,2.41 KB, text/plain)
2024-01-27 13:10 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,83.38 KB, application/x-xz)
2024-01-27 13:10 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,16.14 KB, application/x-xz)
2024-01-27 13:10 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-27 13:10:49 UTC
make -j4 CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-gcc 'CFLAGS=-O2 -pipe -march=native -fno-diagnostics-color  -Wall' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' 
Makefile:43: warning: ignoring prerequisites on suffix rule definition
touch png.h
mv png.h png.h_embedded
x86_64-pc-linux-gnu-gcc -c -I /usr/local/include -O2 -pipe -march=native -fno-diagnostics-color  -Wall pngcrush.c
pngcrush.c: In function main:
pngcrush.c:5523:46: error: PNG_IGNORE_ADLER32 undeclared (first use in this function)
 5523 |                     png_set_option(read_ptr, PNG_IGNORE_ADLER32,
      |                                              ^~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20240117-133505

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.6 linux/amd64

  HEAD of ::gentoo
commit 0e82eacea3b893e4e66659fc6d029ec38d938bb2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jan 27 11:48:09 2024 +0000

    2024-01-27 11:48:09 UTC

emerge -qpvO media-gfx/pngcrush
[ebuild  N    ] media-gfx/pngcrush-1.8.13
Comment 1 Toralf Förster gentoo-dev 2024-01-27 13:10:50 UTC
Created attachment 883270 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-27 13:10:52 UTC
Created attachment 883271 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-01-27 13:10:53 UTC
Created attachment 883272 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-01-27 13:10:54 UTC
Created attachment 883273 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-01-27 13:10:55 UTC
Created attachment 883274 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-27 13:10:56 UTC
Created attachment 883275 [details]
media-gfx:pngcrush-1.8.13:20240127-130800.log
Comment 7 Toralf Förster gentoo-dev 2024-01-27 13:10:57 UTC
Created attachment 883276 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-27 13:10:58 UTC
Created attachment 883277 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-01-30 11:12:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=181aa56d715851ed0cd750a1c503ff26826766ca

commit 181aa56d715851ed0cd750a1c503ff26826766ca
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2024-01-30 11:07:29 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2024-01-30 11:12:01 +0000

    media-gfx/pngcrush: only use PNG_IGNORE_ADLER32 if supported
    
    Since libpng-1.6.41 support for PNG_IGNORE_ADLER32 is optional, disabled
    by default owing to its use of an undocumented zlib function, and not
    presently enabled in Gentoo.
    
    Funnily enough there are *two* places in pngcrush code where this option
    is used and one of them has already used an ifdef guard.
    
    Closes: https://bugs.gentoo.org/923023
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../pngcrush/files/pngcrush-1.8.13-adler32_check.patch      | 13 +++++++++++++
 media-gfx/pngcrush/pngcrush-1.8.13.ebuild                   |  6 +++++-
 2 files changed, 18 insertions(+), 1 deletion(-)