Compiler cannot find ruby.h
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)
A message that is not in the archive (sent off-list or not yet received): CACLa4pu-R8SQr-_3yzAVeQ8Ebz=gzVbn7tetDC-LjE95OS1jpg@mail.gmail.com
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.
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.