Skip to contentSkip to conversation

Compiler cannot find ruby.h

DISCUSSION Budanov Eugene 1 participant 3 messages Jan 26, 2012 1 message not in the archive SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi all!

I'm trying to build libselinux-2.1.9-2.fc17.src.rpm from FC17.

But the compilation causes of an error type:

../include/selinux/selinux.h:348: Warning 451: Setting a const char * variable may leak memory.
cc -g -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -I../include -I/usr/include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/ruby/1.8/x86_64-linux -fPIC -DSHARED -c -o selinuxswig_ruby_wrap.lo selinuxswig_ruby_wrap.c selinuxswig_ruby_wrap.c:832:18: fatal error: ruby.h: No such file or directory
compilation terminated.
make[1]: *** [selinuxswig_ruby_wrap.lo] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/libselinux-2.1.9/src'
make: *** [rubywrap] Error 2

File ruby.h into ../include/selinux/ directory really absent.

----
Best regards,
Budanov Eugene ROSA Lab.
Russia, Moscow.
e-mail : [email protected]
phone +79160674716 (UTC +4)

#2 lore raw
In reply to a message not in the archive

Hi all!

Quoted 2 lines

I believe you need to install the ruby-devel package. (Which I believe is properly listed in the BuildRequires for that RPM)

[root@localhost SPECS]# rpm -qa | grep ruby
lib64ruby1.8-1.8.7.p352-3-mdv2012.0.x86_64
ruby-1.8.7.p352-3-mdv2012.0.x86_64
ruby-devel-1.8.7.p352-3-mdv2012.0.x86_64

ruby-devel is listed in BuildRequires properly.

----
Best regards,
Budanov Eugene ROSA Lab.
Russia, Moscow.
e-mail : [email protected]
phone +79160674716 (UTC +4)

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Budanov Eugene

My fault, sorry.

Problem was in our uncorrectly built ruby-devel.

Sorry for noise.

---
Best regards,
Budanov Eugene ROSA Lab.
Russia, Moscow.
e-mail : [email protected]
phone +79160674716 (UTC +4)

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.