Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924887 - media-gfx/sane-airscan-0.99.27 - airscan-xml.c: error: implicit declaration of function strtoul
Summary: media-gfx/sane-airscan-0.99.27 - airscan-xml.c: error: implicit declaration o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-02-18 09:16 UTC by Toralf Förster
Modified: 2024-04-04 03:10 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,21.72 KB, text/plain)
2024-02-18 09:16 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,78.37 KB, application/x-xz)
2024-02-18 09:16 UTC, Toralf Förster
Details
environment (environment,63.50 KB, text/plain)
2024-02-18 09:16 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2024-02-18 09:16 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.09 KB, application/x-xz)
2024-02-18 09:16 UTC, Toralf Förster
Details
media-gfx:sane-airscan-0.99.27:20240218-044225.log (media-gfx:sane-airscan-0.99.27:20240218-044225.log,9.65 KB, text/plain)
2024-02-18 09:16 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,82.45 KB, application/x-xz)
2024-02-18 09:16 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,16.45 KB, application/x-xz)
2024-02-18 09:16 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-02-18 09:16:33 UTC
airscan-xml.c: In function xml_rd_parse:
airscan-xml.c:126:23: error: assignment to xmlStructuredErrorFunc {aka void (*)(void *, const struct _xmlError *)} from incompatible pointer type void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)} [-Wincompatible-pointer-types]
  126 |     ctxt->sax->serror = xml_rd_error_callback;
      |                       ^
x86_64-pc-linux-gnu-gcc -c -o objs/airscan-zeroconf.o airscan-zeroconf.c  -O2 -pipe -march=native -fno-diagnostics-color  -D_REENTRANT  -I/usr/include/libxml2  -I/usr/include/p11-kit-1    -I/usr/include/libpng16 -fPIC
airscan-xml.c: In function xml_rd_node_value_uint:
airscan-xml.c:406:9: error: implicit declaration of function strtoul; did you mean strtok? [-Wimplicit-function-declaration]
  406 |     v = strtoul(s, &end, 10);
      |         ^~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] 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.8
Available Rust versions:
  [1]   rust-bin-1.75.0
  [2]   rust-1.75.0 *
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.22.0 linux/amd64

  HEAD of ::gentoo
commit f397cb9b5c77959d471737d2a497bb6099a3dc43
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Feb 18 03:49:01 2024 +0000

    2024-02-18 03:49:00 UTC

emerge -qpvO media-gfx/sane-airscan
[ebuild  N    ] media-gfx/sane-airscan-0.99.27
Comment 1 Toralf Förster gentoo-dev 2024-02-18 09:16:34 UTC
Created attachment 885333 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-02-18 09:16:37 UTC
Created attachment 885334 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-02-18 09:16:39 UTC
Created attachment 885335 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-02-18 09:16:39 UTC
Created attachment 885336 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-02-18 09:16:41 UTC
Created attachment 885337 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-02-18 09:16:42 UTC
Created attachment 885338 [details]
media-gfx:sane-airscan-0.99.27:20240218-044225.log
Comment 7 Toralf Förster gentoo-dev 2024-02-18 09:16:43 UTC
Created attachment 885339 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-02-18 09:16:44 UTC
Created attachment 885340 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-03-21 03:01:08 UTC
The bug has been closed via the following commit(s):

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

commit e3cba57a199b8e36d204062564b798e1ee8ab83e
Author:     Kostadin Shishmanov <kocelfc@tutanota.com>
AuthorDate: 2024-02-19 21:46:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-21 02:57:24 +0000

    media-gfx/sane-airscan: Modern C fixes
    
    Fixes building with Modern C compilers. Patches are taken from fedora
    
    https://src.fedoraproject.org/rpms/sane-airscan/c/913879a64e0624df2f09fbdbb058ea0aa9ecb21d
    
    Closes: https://bugs.gentoo.org/924887
    Cloes: https://bugs.gentoo.org/926821
    Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
    Closes: https://github.com/gentoo/gentoo/pull/35431
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/sane-airscan-0.99.27-c99-fixes.patch     | 61 ++++++++++++++++++++++
 .../sane-airscan/sane-airscan-0.99.27-r1.ebuild    | 43 +++++++++++++++
 2 files changed, 104 insertions(+)