[DSE-Dev] new libselinux

Laurent Bigonville bigon at debian.org
Sat Dec 15 10:27:40 UTC 2012


Le Sat, 15 Dec 2012 15:31:16 +1100,
Russell Coker <russell at coker.com.au> a écrit :

Hello Russell,

> http://userspace.selinuxproject.org/trac/wiki/Releases
> 
> I'm working on the new SE Linux userspace release from 2012-09-24 at
> the above URL.  I've got a problem building libselinux with Ruby
> support.
> 
> http://www.coker.com.au/selinux/unstable/

These packages have already been uploaded in experimental as testing
is still frozen.

> The above has my current work.  It fails with the below error.  While
> looking for the solution to this I noticed that we are building
> support for Ruby 1.8 and 1.9.1, do we still need both?

Yes we need both I think, the 2 versions are supported in Debian.
 
> x86_64-linux-gnu-gcc -g -O2 -fstack-protector
> --param=ssp-buffer-size=4 - Wformat -Werror=format-security
> -D_FORTIFY_SOURCE=2 -I../include - I/usr/include -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64  -Wno-error -Wno-unused- variable
> -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-shadow -Wno-
> uninitialized -Wno-missing-prototypes
> -Wno-missing-declarations /usr/lib/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[4]: ***
> [selinuxswig_ruby_wrap.lo] Error 1 make[4]: Leaving directory
> `/tmp/s/t/libselinux-2.1.12/src' make[3]: *** [install-rubywrap]
> Error 2

I remember that I had to do hackish stuff to make it compile for both
version, I think it was overriding RUBYING environment variable.

Cheers

Laurent Bigonville



More information about the SELinux-devel mailing list