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

Bug 947274

Summary: dev-lang/ruby-3.4.1: fails to build w/ gcc-15 (init.c: error: too many arguments to function 'Rconnect')
Product: Gentoo Linux Reporter: publiccontact2020
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: ruby 341 emake failure data

Description publiccontact2020 2024-12-31 16:03:33 UTC
Created attachment 915607 [details]
ruby 341 emake failure data

per request/Sam James; httpsbugs.gentoo.org/947190  comment 2:

(In reply to publiccontact2020 from comment #1)
> cmake failed
> 
> make[2]: Leaving directory
> '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1/ext/openssl'
> make[1]: Leaving directory
> '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1'
> make: *** [uncommon.mk:415: build-ext] Error 2
>  [31;01m*[0m ERROR: dev-lang/ruby-3.4.1::gentoo failed (compile phase):
>  [31;01m*[0m   emake failed

Please file a separate bug for this issue with the full build.log and emerge --info.

Data attached.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-31 16:14:20 UTC
```
x86_64-pc-linux-gnu-gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/socket -I../.. -I../../. -DRUBY_EXTCONF_H=\"extconf.h\"    -fPIC -march=native -O2 -pipe -fno-strict-aliasing -fPIC  -o init.o -c init.c
[01m[Kinit.c:[m[K In function ‘[01m[Ksocks_connect_blocking[m[K’:
[01m[Kinit.c:577:19:[m[K [01;31m[Kerror: [m[Ktoo many arguments to function ‘[01m[KRconnect[m[K’
  577 |     return (VALUE)[01;31m[KRconnect[m[K(arg->fd, arg->sockaddr, arg->len);
      |                   [01;31m[K^~~~~~~~[m[K
In file included from [01m[Kinit.c:11[m[K:
[01m[Krubysocket.h:296:5:[m[K [01;36m[Knote: [m[Kdeclared here
  296 | int [01;36m[KRconnect[m[K();
      |     [01;36m[K^~~~~~~~[m[K
make[2]: *** [Makefile:269: init.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/portage/dev-lang/ruby-3.4.1/work/ruby-3.4.1/ext/socket'
make[1]: *** [exts.mk:320: ext/socket/all] Error 2
make[1]: *** Waiting for unfinished jobs....
mkdir -p ../../.ext/.timestamp ../../.ext/comm
```

This is C23 specific.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-31 16:42:01 UTC

*** This bug has been marked as a duplicate of bug 945502 ***