Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922746 - dev-ruby/ruby-shout-2.2.2-r2 - shout_ext.c: error: passing argument 1 of raise_nonspecific_shout_error makes pointer from integer without a cast [-Win
Summary: dev-ruby/ruby-shout-2.2.2-r2 - shout_ext.c: error: passing argument 1 of rais...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-01-23 08:10 UTC by Toralf Förster
Modified: 2024-01-23 13:07 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.46 KB, text/plain)
2024-01-23 08:10 UTC, Toralf Förster
Details
dev-ruby:ruby-shout-2.2.2-r2:20240122-221126.log (dev-ruby:ruby-shout-2.2.2-r2:20240122-221126.log,28.09 KB, text/plain)
2024-01-23 08:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,72.12 KB, text/plain)
2024-01-23 08:11 UTC, Toralf Förster
Details
environment (environment,88.51 KB, text/plain)
2024-01-23 08:11 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2024-01-23 08:11 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,18.25 KB, application/x-xz)
2024-01-23 08:11 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,1.35 KB, application/x-xz)
2024-01-23 08:11 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,138.81 KB, text/plain)
2024-01-23 08:11 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 2024-01-23 08:10:57 UTC
                 from /usr/include/ruby-3.3.0/ruby.h:38,
                 from shout_ext.c:38:
/usr/include/ruby-3.3.0/ruby/internal/core/rstring.h:344:9: note: this is the location of the previous definition
  344 | #define Check_SafeStr(v) rb_check_safe_str(RBIMPL_CAST((VALUE)(v)))
      |         ^~~~~~~~~~~~~
shout_ext.c: In function _sh_metadata_add:
shout_ext.c:125:47: error: passing argument 1 of raise_nonspecific_shout_error makes pointer from integer without a cast [-Wint-conversion]
  125 |                 raise_nonspecific_shout_error(err);
      |                                               ^~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20240121-171505

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

gcc-config -l:
 [1] 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:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [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.21.6 linux/amd64

  HEAD of ::gentoo
commit 01ea8c39be992396ea776eaf44cf0e2385495aff
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jan 22 21:05:13 2024 +0000

    2024-01-22 21:05:12 UTC

emerge -qpvO dev-ruby/ruby-shout
[ebuild  N    ] dev-ruby/ruby-shout-2.2.2-r2  USE="-doc -test" RUBY_TARGETS="ruby31 ruby32 ruby33"
Comment 1 Toralf Förster gentoo-dev 2024-01-23 08:10:58 UTC
Created attachment 882911 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-23 08:10:59 UTC
Created attachment 882912 [details]
dev-ruby:ruby-shout-2.2.2-r2:20240122-221126.log
Comment 3 Toralf Förster gentoo-dev 2024-01-23 08:11:01 UTC
Created attachment 882913 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-01-23 08:11:02 UTC
Created attachment 882914 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-23 08:11:03 UTC
Created attachment 882915 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-23 08:11:04 UTC
Created attachment 882916 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-23 08:11:05 UTC
Created attachment 882917 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-23 08:11:06 UTC
Created attachment 882918 [details]
qlist-info.txt
Comment 9 Larry the Git Cow gentoo-dev 2024-01-23 13:07:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21d6550942bfe33d084406ae879d5935089393c8

commit 21d6550942bfe33d084406ae879d5935089393c8
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-01-23 13:06:28 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-01-23 13:07:41 +0000

    dev-ruby/ruby-shout: fix compilation with modern c
    
    errno is already defined in ruby header files so it cannot be used for
    an int variable.
    
    Closes: https://bugs.gentoo.org/922746
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/ruby-shout/files/ruby-shout-2.2.2-errno.patch | 13 +++++++++++++
 dev-ruby/ruby-shout/ruby-shout-2.2.2-r2.ebuild         |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)