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

Bug 875452

Summary: dev-ruby/fcgi-0.9.2.1-r2 - fcgi.c: error: call to undeclared function rb_secure; ISO C99 and later
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=875254
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
dev-ruby:fcgi-0.9.2.1-r2:20221005-143748.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-05 18:12:45 UTC
 * Running compile phase for ruby27
make -j4 V=1 -C ext/fcgi 
make: Entering directory '/var/tmp/portage/dev-ruby/fcgi-0.9.2.1-r2/work/ruby27/fcgi-0.9.2.1/ext/fcgi'
clang -fdeclspec -I. -I/usr/include/ruby-3.0.0/x86_64-linux -I/usr/include/ruby-3.0.0/ruby/backward -I/usr/include/ruby-3.0.0 -I. -DHAVE_FCGIAPP_H    -fPIC -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int  -o fcgi.o -c fcgi.c
fcgi.c:265:3: error: call to undeclared function 'rb_secure'; 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-20221005-010004

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

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:
*)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-17  system-vm

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

  HEAD of ::gentoo
commit e266336155684413e28b2f403b57e2779f910d9c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Oct 5 13:33:17 2022 +0000

    2022-10-05 13:33:17 UTC

emerge -qpvO dev-ruby/fcgi
[ebuild  N    ] dev-ruby/fcgi-0.9.2.1-r2  USE="-test" RUBY_TARGETS="ruby27 ruby30 -ruby31"
Comment 1 Toralf Förster gentoo-dev 2022-10-05 18:12:46 UTC
Created attachment 821191 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-05 18:12:47 UTC
Created attachment 821194 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-05 18:12:48 UTC
Created attachment 821197 [details]
dev-ruby:fcgi-0.9.2.1-r2:20221005-143748.log
Comment 4 Toralf Förster gentoo-dev 2022-10-05 18:12:49 UTC
Created attachment 821200 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-10-05 18:12:50 UTC
Created attachment 821203 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-10-05 18:12:52 UTC
Created attachment 821206 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-05 18:12:53 UTC
Created attachment 821209 [details]
logs.tar.bz2
Comment 8 Hans de Graaff gentoo-dev Security 2022-10-17 05:24:41 UTC
This should be fixed in fcgi 0.9.2.2 but I haven't been able to verify that yet with the new clang version.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-18 19:54:54 UTC
For reference in case we need to fix other bugs like this: https://github.com/alphallc/ruby-fcgi-ng/commit/12decb527b011d739380f03f8f8c7c12a8cda516.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-24 08:37:05 UTC
Tested & looks fixed, thanks!