Bug #6169

Compile error "implicit declaration of function 'ruby_setreuid'", "'ruby_setregid'"

Added by Ted Wing about 2 years ago. Updated about 2 years ago.

[ruby-core:43374]
Status:Closed
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-darwin8.11.1] Backport:

Description

=begin
When compiling Ruby 1.9.3 (I've tested 1.9.3p0 and 1.9.3p125), process.c produces a compile error

The following is the GCC output for the error:

compiling process.c
process.c: In function 'psyssetreuid':
process.c:4110: error: implicit declaration of function 'rubysetreuid'
process.c: In function 'ruby
setreuid':
process.c:4217: warning: comparison between signed and unsigned
process.c:4218: warning: comparison between signed and unsigned
process.c:4221: warning: comparison between signed and unsigned
process.c: In function 'psyssetregid':
process.c:4465: error: implicit declaration of function 'rubysetregid'
process.c: In function 'ruby
setregid':
process.c:4929: warning: comparison between signed and unsigned
process.c:4930: warning: comparison between signed and unsigned
process.c:4933: warning: comparison between signed and unsigned
make: *** [process.o] Error 1


==== Environment
GCC version: 4.0.1
OS: Mac OS X 10.4.11 Intel

=end

Associated revisions

Revision 35221
Added by Nobuyoshi Nakada about 2 years ago

  • process.c (setreuid, setregid): suppress warnings. [Bug #6169]

History

#1 Updated by Ted Wing about 2 years ago

=begin
This is fixed by removing lines 111-116 from (({process.c})), reproduced here:

#ifdef BROKENSETREUID
#define setreuid ruby
setreuid
#endif
#ifdef BROKENSETREGID
#define setregid ruby
setregid
#endif

Edit: forgot to mention that this fix comes thanks to drbrain on irc.
=end

#2 Updated by Nobuyoshi Nakada about 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35221.
Ted, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • process.c (setreuid, setregid): suppress warnings. [Bug #6169]

Also available in: Atom PDF