Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875707 - app-misc/boxes-1.1.2-r3 - tools.c: error: implicit declaration of function calloc [-Werror=implicit-function-declaration]
Summary: app-misc/boxes-1.1.2-r3 - tools.c: error: implicit declaration of function ca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-06 20:13 UTC by Toralf Förster
Modified: 2022-10-17 22:02 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,19.95 KB, text/plain)
2022-10-06 20:13 UTC, Toralf Förster
Details
app-misc:boxes-1.1.2-r3:20221006-052437.log (app-misc:boxes-1.1.2-r3:20221006-052437.log,6.46 KB, text/plain)
2022-10-06 20:13 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,77.42 KB, application/x-bzip)
2022-10-06 20:13 UTC, Toralf Förster
Details
environment (environment,103.95 KB, text/plain)
2022-10-06 20:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,27.44 KB, application/x-bzip)
2022-10-06 20:13 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,26.09 KB, application/x-bzip)
2022-10-06 20:13 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 2022-10-06 20:13:31 UTC
      |                              |
      |                              size_t {aka long unsigned int}

tools.c: In function expand_tabs_into:
tools.c:271:28: error: implicit declaration of function calloc [-Werror=implicit-function-declaration]
  271 |       *tabpos = (size_t *) calloc ((*tabpos_len) + 1, sizeof(size_t));
      |                            ^~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.2
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 11.0.16.1_p1 [openjdk-11]
3)	OpenJDK 17.0.5_p5 [openjdk-17]
4)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
6)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-11 
  [3]   openjdk-17 
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 9efc15e71ade8dcd5c22a78804b6ae268465693f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Oct 6 02:33:58 2022 +0000

    2022-10-06 02:33:58 UTC

emerge -qpvO app-misc/boxes
[ebuild  N    ] app-misc/boxes-1.1.2-r3
Comment 1 Toralf Förster gentoo-dev 2022-10-06 20:13:33 UTC
Created attachment 822205 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-06 20:13:34 UTC
Created attachment 822208 [details]
app-misc:boxes-1.1.2-r3:20221006-052437.log
Comment 3 Toralf Förster gentoo-dev 2022-10-06 20:13:36 UTC
Created attachment 822211 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-10-06 20:13:37 UTC
Created attachment 822214 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-06 20:13:38 UTC
Created attachment 822217 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-06 20:13:40 UTC
Created attachment 822220 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-17 22:02:59 UTC
The bug has been closed via the following commit(s):

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

commit 7e92c72808aef5206a53031354358665a3918b15
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2022-10-16 17:28:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-17 21:50:42 +0000

    app-misc/boxes: new version 2.2.0, patched ebuild to work with clang16
    
    Closes: https://bugs.gentoo.org/875707
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Closes: https://github.com/gentoo/gentoo/pull/27804
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/boxes/Manifest                            |  1 +
 app-misc/boxes/boxes-2.2.0.ebuild                  | 42 ++++++++++++++++++++++
 .../files/boxes-2.2.0-fix-clang16-build.patch      | 15 ++++++++
 3 files changed, 58 insertions(+)