Project

General

Profile

unexist.dev

subtle

Assorted tidbits and projects

installing subtle

Added by Emmet Brown almost 15 years ago

Guys!
Currently I am using awesome already for more then half a year but as I am fan of ruby and dont really like Lua I was looking for something like subtle.
I am trying now to install subtle (delta version) on my machine but it failed. I am using Ubuntu Jaunty. The problem i have is :

CC build/shared.wm.o
cc1: warnings being treated as errors
cc1: error: -Wuninitialized is not supported without -O
rake aborted!
Compiler failed with status 1
/home/sergey/install/subtle/subtle-0.8.1192-delta/Rakefile:134:in `block in compile'
(See full trace by running task with --trace)

1/ do you know what can cause this error?
2/ is it possible to get deb package of subtle?
Thanks a lot in advance!


Replies (10)

RE: installing subtle - Added by Christoph Kappel almost 15 years ago

Hi Emmet:

1) The problem is that your gcc isn't the latest version that supports this option without optimization. A simple fix is to remove the '-Wuninitialized' from the cflags in the Rakefile on line 39. I probably should remove this from the official build to buypass this kind of problems.

2) Actually I don't use debian/ubuntu by myself, I installed Debian yesterday and started building a deb package, but I am not done yet. Making packages isn't so straight forward and I would be thankful for any help.

RE: installing subtle - Added by Emmet Brown over 14 years ago

Hi Christoph.
I have done as you mentioned, but got another error:

subtle 0.8.0
-----------------
Binaries............: /usr/bin
Configuration.......: //etc/xdg/subtle
Sublets.............: //usr/local/share//subtle
Extension...........: //usr/local/lib/ruby/site_ruby/1.9.1/subtle

Debugging messages..: no

CC build/shared.wm.o
CC build/view.o
CC build/ewmh.o
CC build/array.o
CC build/subtle.o
CC build/event.o
CC build/ruby.o
src/subtle/ruby.c:19:18: error: ruby.h: No such file or directory
src/subtle/ruby.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘shelter’
src/subtle/ruby.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘RubyPerror’
cc1: warnings being treated as errors
src/subtle/ruby.c: In function ‘RubySubletMark’:
src/subtle/ruby.c:69: error: implicit declaration of function ‘rb_gc_mark’

I have ruby ruby 1.9.1:

ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]

It is installed from sources from ruby-lang website with a "local" prefix.
Am i missing some global variables?

RE: installing subtle - Added by Christoph Kappel over 14 years ago

Hm, really odd: You're lacking a ruby.h in the sitelibdir path, do you remember your configure flags when you installed ruby by yourself? And can you please check if there's really no ruby.h in /usr/local/lib/ruby/site_ruby/1.9.1/subtle?

RE: installing subtle - Added by Christoph Kappel over 14 years ago

I digged into it and the problem is that in ruby 1.9 the header are on a different location. They finally moved them to /usr/include - I updated the rakefile but I am not done with the API changes yet. Therefore no commit of this stuff at all. Hopefully I get this done tomorrow.

RE: installing subtle - Added by Emmet Brown over 14 years ago

Hi Christoph
Sorry , I havent answered for some time, was really busy those days.
Please let me know when you will do the commit. I am really looking forward to see subtle wm on my machine!

RE: installing subtle - Added by Christoph Kappel over 14 years ago

Hi Emmet,

no problem at all. Today I commited the fixes (revision 1221) for ruby 1.9 and tested it with 1.9.0 on a freshly installed debian VM. Looks good so far, during my tests I couldn't find any problems. Can you try this version and report me any problems? Would be nice if you join us on #subtle too like you already did if I remember correctly. ;)

What still needs to be checked is ruby 1.9 on 64bit - maybe I have time for this tomorrow.

RE: installing subtle - Added by Emmet Brown over 14 years ago

Hi Christoph, :)
again got some time to try to install subtle on ubuntu.
Still got an error:

CC build/sublet.o
CC build/tag.o
CC build/grab.o
CC build/display.o
CC build/tray.o
LD subtle
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
rake aborted!
Linker failed with status 1
/home/sergey/install/subtle/source/subtle/Rakefile:362:in `block (2 levels) in <top (required)>'

Can it be because of gcc version?

PS
I have already created a nickname in IRSS, as i have time i will visit it ;)

RE: installing subtle - Added by Emmet Brown over 14 years ago

just for the info , here is my gcc:

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) 

RE: installing subtle - Added by Christoph Kappel over 14 years ago

Hi Emmet,
man this is really complicated on Debian - maybe we will soon get this done. ;)

Do you have the ruby-dev package installed? You need it to compile and link subtle against the ruby lib. I am fetching the correct SO_NAME from the mkmf config so this shouldn't be a problem, but this gives me heachache:

Can you please do this and post me the output?

@
require "mkmf"

CONFIG["RUBY_SO_NAME"]@

I tested this in a VM with Debian and Ruby 1.9 and the expected result is this: => "ruby1.9"

RE: installing subtle - Added by Emmet Brown over 14 years ago

hi Christoph,
I have managed to install subtle on ubuntu today (on both my home laptop and my work desktop). I needed to completely remove ruby1.9 for that and use ruby1.8 as somehow ruby-dev extentions for ruby1.8 were not visible. Will try to play with the configs and will let you know the results.

    (1-10/10)