Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920309 - dev-perl/Tk-804.36.0-r1 - tkGlue.c: error: pregcomp undeclared (first use in this function)
Summary: dev-perl/Tk-804.36.0-r1 - tkGlue.c: error: pregcomp undeclared (first use in ...
Status: CONFIRMED
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:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-19 09:56 UTC by Toralf Förster
Modified: 2024-05-25 19:15 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.10 KB, text/plain)
2023-12-19 09:56 UTC, Toralf Förster
Details
dev-perl:Tk-804.36.0-r1:20231218-222658.log (dev-perl:Tk-804.36.0-r1:20231218-222658.log,27.93 KB, text/plain)
2023-12-19 09:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,148.35 KB, text/plain)
2023-12-19 09:56 UTC, Toralf Förster
Details
environment (environment,80.34 KB, text/plain)
2023-12-19 09:56 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.12 KB, application/x-xz)
2023-12-19 09:56 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.61 KB, application/x-xz)
2023-12-19 09:56 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,42.34 KB, application/x-xz)
2023-12-19 09:56 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,233.63 KB, text/plain)
2023-12-19 09:56 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.06 KB, application/x-xz)
2023-12-19 09:56 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 2023-12-19 09:56:43 UTC
tkGlue.c:5262:46: error: macro "pregcomp" passed 3 arguments, but takes just 2
 5262 |  p->pat = pregcomp(string,string+len,p->flags);
      |                                              ^
/usr/lib64/perl5/5.38/x86_64-linux/CORE/embed.h:498:10: note: macro "pregcomp" defined here
  498 | # define pregcomp(a,b)                          Perl_pregcomp(aTHX_ a,b)
      |          ^~~~~~~~
tkGlue.c:5262:11: error: pregcomp undeclared (first use in this function); did you mean regcomp_t?
 5262 |  p->pat = pregcomp(string,string+len,p->flags);
      |           ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-20231215-225005

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

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.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 60b859c8114efc0ff8cfa37a0ab225f567ac13f0
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 18 20:32:34 2023 +0000

    2023-12-18 20:32:34 UTC

emerge -qpvO dev-perl/Tk
[ebuild  N    ] dev-perl/Tk-804.36.0-r1  USE="examples -test"
Comment 1 Toralf Förster gentoo-dev 2023-12-19 09:56:43 UTC
Created attachment 879892 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-19 09:56:44 UTC
Created attachment 879893 [details]
dev-perl:Tk-804.36.0-r1:20231218-222658.log
Comment 3 Toralf Förster gentoo-dev 2023-12-19 09:56:46 UTC
Created attachment 879894 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-19 09:56:47 UTC
Created attachment 879895 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-19 09:56:48 UTC
Created attachment 879896 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-19 09:56:49 UTC
Created attachment 879897 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-19 09:56:50 UTC
Created attachment 879898 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-19 09:56:51 UTC
Created attachment 879899 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-12-19 09:56:52 UTC
Created attachment 879900 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-25 06:27:46 UTC
x86_64-pc-linux-gnu-gcc -c  -I/usr/include/freetype2 -O2 -pipe -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fno-strict-aliasing   -DVERSION=\"804.036\" -DXS_VERSION=\"804.036\" -fPIC "-I/usr/lib64/perl5/5.38/x86_64-linux/CORE"    tixGlue.c
In file included from /usr/lib64/perl5/5.38/x86_64-linux/CORE/perl.h:4532,
                 from objGlue.c:9:
objGlue.c: In function ‘Tcl_GetByteArrayFromObj’:
/usr/lib64/perl5/5.38/x86_64-linux/CORE/sv.h:1952:31: error: passing argument 2 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types]
 1952 |    Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_,                \
/usr/lib64/perl5/5.38/x86_64-linux/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’
 1972 | #define SvPV(sv, len)               SvPV_flags(sv, len, SV_GMAGIC)
      |                                     ^~~~~~~~~~
objGlue.c:630:29: note: in expansion of macro ‘SvPV’
  630 |    return (unsigned char *) SvPV(objPtr, *lengthPtr);
      |                             ^~~~
In file included from /usr/lib64/perl5/5.38/x86_64-linux/CORE/perl.h:7814:
/usr/lib64/perl5/5.38/x86_64-linux/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘int *’
  908 |                  STRLEN * const lp,
      |                  ~~~~~~~~~~~~~~~^~
Comment 11 Leonid Kopylov 2024-05-25 19:15:34 UTC
unable to build it also with gcc 13