Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879857 - dev-lang/perl-5.36.0-r1 - sdbm.c: error: conflicting types for malloc
Summary: dev-lang/perl-5.36.0-r1 - sdbm.c: error: conflicting types for malloc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-05 10:39 UTC by Toralf Förster
Modified: 2023-01-19 02:27 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.85 KB, text/plain)
2022-11-05 10:39 UTC, Toralf Förster
Details
dev-lang:perl-5.36.0-r1:20221105-094320.log (dev-lang:perl-5.36.0-r1:20221105-094320.log,198.61 KB, text/plain)
2022-11-05 10:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,3.49 KB, text/plain)
2022-11-05 10:39 UTC, Toralf Förster
Details
environment (environment,106.10 KB, text/plain)
2022-11-05 10:39 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,8.44 KB, application/x-bzip)
2022-11-05 10:39 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,47.15 KB, application/x-bzip)
2022-11-05 10:39 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-11-05 10:39:15 UTC
too long lines were shrinked:

Writing Makefile for Socket
clang -c  -I../.. -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat -Ww
clang -c -I./Encode  -I../Encode -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -
make[1]: Entering directory '/var/tmp/portage/dev-lang/perl-5.36.0-r1/work/perl-5.36.0/cpan/Socket'
sdbm.c:37:17: error: conflicting types for 'malloc'
extern Malloc_t malloc(MEM_SIZE);
                ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221105-070004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.0 *
clang/llvm (if any):
clang version 15.0.4
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.4
Python 3.10.8
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit f5b44ca3d3fd2f6c540d5ac4fd26ff1ba6aa1352
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 5 06:46:50 2022 +0000

    2022-11-05 06:46:50 UTC

emerge -qpvO dev-lang/perl
[ebuild     U ] dev-lang/perl-5.36.0-r1 [5.34.1-r4] USE="gdbm -berkdb -debug -doc -ithreads -minimal -quadmath"
Comment 1 Toralf Förster gentoo-dev 2022-11-05 10:39:16 UTC
Created attachment 827753 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-05 10:39:18 UTC
Created attachment 827755 [details]
dev-lang:perl-5.36.0-r1:20221105-094320.log
Comment 3 Toralf Förster gentoo-dev 2022-11-05 10:39:19 UTC
Created attachment 827757 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-11-05 10:39:20 UTC
Created attachment 827759 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-05 10:39:21 UTC
Created attachment 827761 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-05 10:39:23 UTC
Created attachment 827763 [details]
temp.tar.bz2
Comment 7 Peter Levine 2023-01-17 08:02:37 UTC
Upstream bug: https://github.com/Perl/perl5/issues/20715
Upstream PR: https://github.com/Perl/perl5/pull/20716
Comment 8 Peter Levine 2023-01-17 19:14:58 UTC
PR accepted upstream.
Comment 9 Larry the Git Cow gentoo-dev 2023-01-19 02:27:03 UTC
The bug has been closed via the following commit(s):

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

commit 32a4f6e001d9118b5ea5a1c6b53900d2ce02eab6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-19 02:26:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-19 02:26:24 +0000

    dev-lang/perl: fix configure+build w/ clang 16
    
    Closes: https://bugs.gentoo.org/879857
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/perl/files/perl-5.36.0-clang16.patch | 129 ++++
 dev-lang/perl/perl-5.36.0-r2.ebuild           | 825 ++++++++++++++++++++++++++
 2 files changed, 954 insertions(+)