Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923291 - dev-libs/yaz-5.32.0 - xmlquery.c: error: implicit declaration of function atoi
Summary: dev-libs/yaz-5.32.0 - xmlquery.c: error: implicit declaration of function atoi
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: fixed in 5.34.0
Keywords: PullRequest
Depends on:
Blocks: c99-porting libxml2-2.12
  Show dependency tree
 
Reported: 2024-01-29 19:40 UTC by Toralf Förster
Modified: 2024-02-14 14:49 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.70 KB, text/plain)
2024-01-29 19:40 UTC, Toralf Förster
Details
dev-libs:yaz-5.32.0:20240129-193206.log (dev-libs:yaz-5.32.0:20240129-193206.log,90.03 KB, text/plain)
2024-01-29 19:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,161.86 KB, text/plain)
2024-01-29 19:40 UTC, Toralf Förster
Details
environment (environment,76.09 KB, text/plain)
2024-01-29 19:40 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.16 KB, application/x-xz)
2024-01-29 19:40 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,28.75 KB, application/x-xz)
2024-01-29 19:40 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,9.98 KB, application/x-xz)
2024-01-29 19:40 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,45.97 KB, application/x-xz)
2024-01-29 19:40 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.83 KB, application/x-xz)
2024-01-29 19:40 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-29 19:40:23 UTC
too long lines were shrinked:

/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2    -O3 -pipe -march=native -fno-diagnostics-color -I/usr/include/hiredis -D_FILE_OFFSET_BITS=64  -c -o http.lo http.c
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/usr/include/libxml2    -O3 -pipe -march=native -fno-diagnostics-color -I/usr/include/hiredis -D_FILE_OFFSET_BITS=64  -c -o mime.lo mime.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O3 -pipe -march=native -fno-diagnostics-color -I/usr/include/hiredis -D_FILE_OFFSET_BITS=64 -c xmlerror.c  -fPIC -DPIC -o .libs/xmlerror.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O3 -pipe -march=native -fno-diagnostics-color -I/usr/include/hiredis -D_FILE_OFFSET_BITS=64 -c http.c  -fPIC -DPIC -o .libs/http.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O3 -pipe -march=native -fno-diagnostics-color -I/usr/include/hiredis -D_FILE_OFFSET_BITS=64 -c mime.c  -fPIC -DPIC -o .libs/mime.o
xmlquery.c: In function 'check_diagnostic':
xmlquery.c:56:23: error: implicit declaration of function 'atoi'; did you mean 'atoi_n'? [-Wimplicit-function-declaration]
   56 |         *error_code = atoi(code_str);
      |                       ^~~~

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

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

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

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)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   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 65591f779a5f92c24c65832905c857d73bbc40f3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jan 29 17:34:57 2024 +0000

    2024-01-29 17:34:56 UTC

emerge -qpvO dev-libs/yaz
[ebuild  N    ] dev-libs/yaz-5.32.0  USE="-gnutls -tcpd -ziffy"
Comment 1 Toralf Förster gentoo-dev 2024-01-29 19:40:24 UTC
Created attachment 883633 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-29 19:40:25 UTC
Created attachment 883634 [details]
dev-libs:yaz-5.32.0:20240129-193206.log
Comment 3 Toralf Förster gentoo-dev 2024-01-29 19:40:27 UTC
Created attachment 883635 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-01-29 19:40:28 UTC
Created attachment 883636 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-29 19:40:29 UTC
Created attachment 883637 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-29 19:40:30 UTC
Created attachment 883638 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-29 19:40:30 UTC
Created attachment 883639 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-29 19:40:31 UTC
Created attachment 883640 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-01-29 19:40:32 UTC
Created attachment 883641 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-01-30 06:58:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8331a685705a866be9249ee615fc0f945dbcd167

commit 8331a685705a866be9249ee615fc0f945dbcd167
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2024-01-30 06:31:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-30 06:57:32 +0000

    dev-libs/yaz: add 5.34.0
    
    Bug: https://bugs.gentoo.org/730016
    Bug: https://bugs.gentoo.org/923291
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/yaz/Manifest                              |   1 +
 .../yaz/files/yaz-5.34.0-fix-atoi-header.patch     |  54 +++++++++++
 .../yaz/files/yaz-5.34.0-fix-libxml2-2.12.patch    | 108 +++++++++++++++++++++
 dev-libs/yaz/yaz-5.34.0.ebuild                     |  76 +++++++++++++++
 4 files changed, 239 insertions(+)