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

Bug 932230

Summary: dev-lang/pcc-1.1.0-r1 - ../.../local.c: error: implicit declaration of function strlcpy
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: scott
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=871267
https://github.com/gentoo/gentoo/pull/40601
Whiteboard: ~arch only
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-lang:pcc-1.1.0-r1:20240519-165936.log
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-05-19 17:40:34 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -fcommon  -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -DGCC_COMPAT -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o external.o e
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -fcommon  -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -DGCC_COMPAT -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o gcc_compat.o
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -fcommon  -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -DGCC_COMPAT -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o init.o ./ini
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -fcommon  -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -DGCC_COMPAT -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o inline.o ./i
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -fcommon  -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -DGCC_COMPAT -DPCC_DEBUG -D_ISOC99_SOURCE -Dos_linux -Dmach_amd64 -I. -I. -I../.. -I../../mip -I../../arch/amd64 -I../../os/linux -c -o local.o ../.
../../arch/amd64/local.c: In function picsymtab:
../../arch/amd64/local.c:76:9: error: implicit declaration of function strlcpy; did you mean strncpy? [-Wimplicit-function-declaration]
   76 |         strlcpy(sp->soname, p, len);
      |         ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib-20240506-061532

  UNMASKED packages:
     <dev-build/meson-9999
     >=sys-libs/ncurses-6.5
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.5
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.23_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.412_p08 [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.3 linux/amd64

  HEAD of ::gentoo
commit 21e0ad4d463264587777624cc7139dc1d2413fab
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun May 19 16:18:50 2024 +0000

    2024-05-19 16:18:50 UTC

emerge -qpvO dev-lang/pcc
[ebuild  N    ] dev-lang/pcc-1.1.0-r1
Comment 1 Toralf Förster gentoo-dev 2024-05-19 17:40:34 UTC
Created attachment 893392 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-19 17:40:35 UTC
Created attachment 893393 [details]
dev-lang:pcc-1.1.0-r1:20240519-165936.log
Comment 3 Toralf Förster gentoo-dev 2024-05-19 17:40:36 UTC
Created attachment 893394 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-05-19 17:40:38 UTC
Created attachment 893395 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-05-19 17:40:38 UTC
Created attachment 893396 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-19 17:40:39 UTC
Created attachment 893397 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-19 17:40:40 UTC
Created attachment 893398 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-05-19 17:40:41 UTC
Created attachment 893399 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-05-19 17:40:42 UTC
Created attachment 893400 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2025-02-24 21:29:24 UTC
The bug has been closed via the following commit(s):

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

commit 71d17e9f9f3c99ea305fe5eeb6040dd43f2a20d7
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-16 20:08:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-24 21:28:58 +0000

    dev-lang/pcc: update EAPI 7 -> 8, fix C23 problems
    
    Explicitly enables GNU extensions that were disabled and then used.
    Adds dependency and libbsd headers where they are used.
    Renames now-reserved words true and false, because they aren't
    used as booleans in the code.
    
    Closes: https://bugs.gentoo.org/944894
    Closes: https://bugs.gentoo.org/932230
    Closes: https://bugs.gentoo.org/871267
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40601
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/pcc/files/pcc-1.1.0-C23.patch | 293 +++++++++++++++++++++++++++++++++
 dev-lang/pcc/pcc-1.1.0-r2.ebuild       |  39 +++++
 2 files changed, 332 insertions(+)