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

Bug 871705

Summary: x11-libs/libast-0.7-r2 - snprintf.c: error: call to undeclared library function strlen with type
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=875143
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2
x11-libs:libast-0.7-r2:20220919-111521.log

Description Toralf Förster gentoo-dev 2022-09-19 12:25:53 UTC
 clang -DHAVE_CONFIG_H -I. -I. -I.. -I../include/libast -I../include -I../include/libast -I/usr/include -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c snprintf.c  -fPIC -DPIC -o .libs/snprintf.o
snprintf.c:45:22: error: unknown type name 'size_t'
vsnprintf(char *str, size_t count, const char *fmt, va_list args)
                     ^
snprintf.c:53:13: error: call to undeclared library function 'strlen' with type
      'unsigned long (const char *)'; ISO C99 and later do not support implicit
      function declarations [-Werror,-Wimplicit-function-declaration]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220917-010004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 361dac56274a86ed98de79a950858163a9eef69a
Merge: 4b72c308e36c f3693d99c9a5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 19 10:31:45 2022 +0000

    Merge updates from master

emerge -qpvO x11-libs/libast
[ebuild  N    ] x11-libs/libast-0.7-r2  USE="pcre -imlib" CPU_FLAGS_X86="mmx"
Comment 1 Toralf Förster gentoo-dev 2022-09-19 12:25:54 UTC
Created attachment 812794 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-19 12:25:55 UTC
Created attachment 812797 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-19 12:25:56 UTC
Created attachment 812800 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-19 12:25:57 UTC
Created attachment 812803 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-19 12:25:59 UTC
Created attachment 812806 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-19 12:26:00 UTC
Created attachment 812809 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-19 12:26:01 UTC
Created attachment 812812 [details]
temp.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-19 12:26:02 UTC
Created attachment 812815 [details]
x11-libs:libast-0.7-r2:20220919-111521.log
Comment 9 Larry the Git Cow gentoo-dev 2022-10-04 11:16:48 UTC
The bug has been closed via the following commit(s):

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

commit f5b83487a535eab3d9a731b929b226db9be79dfb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-04 11:03:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-04 11:16:40 +0000

    x11-libs/libast: add 0.8
    
    Closes: https://bugs.gentoo.org/871705
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-libs/libast/Manifest                           |  1 +
 .../files/libast-0.8-fix-implicit-func-decls.patch | 15 +++++++
 x11-libs/libast/libast-0.8.ebuild                  | 48 ++++++++++++++++++++++
 3 files changed, 64 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2022-11-17 01:05:59 UTC
The bug has been closed via the following commit(s):

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

commit 429d6d3e55f8cbe1856ea6899b6b02aad822ce41
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-16 23:46:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-16 23:46:06 +0000

    x11-libs/libast: further Clang 16 fixes
    
    Closes: https://bugs.gentoo.org/871705
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libast-0.8-configure-clang16.patch       | 65 ++++++++++++++++++++++
 .../{libast-0.8.ebuild => libast-0.8-r1.ebuild}    |  9 ++-
 2 files changed, 72 insertions(+), 2 deletions(-)