Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 874441

Summary: x11-libs/wxGTK-3.0.4-r5 - configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Severity: normal CC: contact, pascal.jaeger
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
configure, Include stdlib.h on all conftest using exit()

Description Toralf Förster gentoo-dev 2022-10-03 07:59:05 UTC
checking pkg-config is at least version 0.9.0... yes
configure: WARNING: Defaulting to the builtin regex library for Unicode build.
checking for zlib.h >= 1.1.4... no
checking for zlib.h... (cached) no
configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version

!!! Please attach the following file when seeking support:


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20221002-133630


gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Python 3.10.7
Available Ruby profiles:
  [1]   ruby30 *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit f0563c90e636da833af43e4a5334c6ebddd3cf6a
Author: Repository mirror & CI <>
Date:   Sun Oct 2 22:16:57 2022 +0000

    2022-10-02 22:16:57 UTC

emerge -qpvO x11-libs/wxGTK
[ebuild  N    ] x11-libs/wxGTK-  USE="X libnotify opengl sdl tiff -debug -doc -gstreamer (-pch) -webkit" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2022-10-03 07:59:06 UTC
Created attachment 816607 [details]
Comment 2 Toralf Förster gentoo-dev 2022-10-03 07:59:07 UTC
Created attachment 816610 [details]
Comment 3 Toralf Förster gentoo-dev 2022-10-03 07:59:09 UTC
Created attachment 816613 [details]
Comment 4 Toralf Förster gentoo-dev 2022-10-03 07:59:10 UTC
Created attachment 816616 [details]
Comment 5 Toralf Förster gentoo-dev 2022-10-03 07:59:11 UTC
Created attachment 816619 [details]
Comment 6 Toralf Förster gentoo-dev 2022-10-03 07:59:12 UTC
Created attachment 816622 [details]
Comment 7 Toralf Förster gentoo-dev 2022-10-03 07:59:13 UTC
Created attachment 816625 [details]
Comment 8 Haelwenn (lanodan) Monnier 2022-12-13 06:55:00 UTC
Created attachment 842347 [details, diff]
configure, Include stdlib.h on all conftest using exit()

It's because of exit() relying on an implicit function declaration in the code.
Comment 9 Agostino Sarubbo gentoo-dev 2022-12-20 12:45:37 UTC
clang-stricter_tinderbox has reproduced this issue with version 3.0.4-r5 - Updating summary.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-23 04:11:47 UTC
Fixed in 3.2.1 but we should backport/fix for older anyway. Just need to apply the above fix.
Comment 11 Larry the Git Cow gentoo-dev 2023-06-26 14:11:25 UTC
The bug has been closed via the following commit(s):

commit ad105d9d002da5a860de683cf6bf4b229091afbd
Author:     Sam James <>
AuthorDate: 2023-06-26 14:02:55 +0000
Commit:     Sam James <>
CommitDate: 2023-06-26 14:03:11 +0000

    x11-libs/wxGTK: fix modern C issue in configure
    Signed-off-by: Sam James <>

 .../files/wxGTK-   | 54 ++++++++++++++++++++++
 x11-libs/wxGTK/wxGTK-             |  5 +-
 2 files changed, 57 insertions(+), 2 deletions(-)