Problem compiling gtksourceview bindings?

Hi there,
not sure why but gtksourceview seems to give me slight problems. The
other ruby-gnome bindings work well, i.e. buttons etc… are all working,
just not getting ruby-gtksourceview to compile.

Maybe one of you has a hint that can help me.

For the record, I am using latest CVS checkout of ruby-gnome module.

In /usr/lib I have these gktsourceview relevant files:

libgtksourceview-1.0.la libgtksourceview-1.0.so.0
libgtksourceview-2.0.la libgtksourceview-2.0.so.0
libgtksourceview-1.0.so libgtksourceview-1.0.so.0.0.0
libgtksourceview-2.0.so libgtksourceview-2.0.so.0.0.0

In /usr/include I have both gtksourceview-1.0 and gtksourceview-2.0.
Removing gtksourceview-2.0 from
/usr/lib and /usr/include does not influence anything.

My Gcc Version is: gcc 4.2.0

Now to the error of the rubygnome binding, running the following in
gtksourceview/ directory:
ruby extconf.rb

Results into:

checking for GCC… yes
checking for rb_define_alloc_func()… yes
checking for rb_block_proc()… yes
checking for new allocation framework… yes
checking for attribute assignment… aliayes
checking for gtksourceview-1.0… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Here the log of mkmf.log

cat mkmf.log
“gcc -I. -I/Programs/Ruby/1.8.6/lib/ruby/1.8/i686-linux -I.
-I/usr/include -O2 -march=i686 -fPIC -c conftest.c”
checked program was:
/* begin /
1: /top/
2: #ifndef GNUC
3: # error
4: >>>>>> GNUC undefined <<<<<<
5: #endif
/
end */

have_func: checking for rb_define_alloc_func()… --------------------
yes

“gcc -o conftest -I. -I/Programs/Ruby/1.8.6/lib/ruby/1.8/i686-linux -I.
-I/usr/include -I/Programs/Ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux
-O2 -march=i686 -fPIC -Wall conftest.c -L’/Programs/Ruby/1.8.6/lib’
-Wl,-R’/Programs/Ruby/1.8.6/lib’ -rdynamic -Wl,-export-dynamic
-lruby-static -ldl -lcrypt -lm -lc”
conftest.c: In function ‘t’:
conftest.c:3: error: ‘rb_define_alloc_func’ undeclared (first use in
this function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin /
1: /top/
2: int main() { return 0; }
3: int t() { void ((volatile p)()); p = (void
((
)()))rb_define_alloc_func; return 0; }
/
end */

“gcc -o conftest -I. -I/Programs/Ruby/1.8.6/lib/ruby/1.8/i686-linux -I.
-I/usr/include -I/Programs/Ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux
-O2 -march=i686 -fPIC -Wall conftest.c -L’/Programs/Ruby/1.8.6/lib’
-Wl,-R’/Programs/Ruby/1.8.6/lib’ -rdynamic -Wl,-export-dynamic
-lruby-static -ldl -lcrypt -lm -lc”
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function
‘rb_define_alloc_func’
checked program was:
/* begin /
1: /top/
2: int main() { return 0; }
3: int t() { rb_define_alloc_func(); return 0; }
/
end */


have_func: checking for rb_block_proc()… -------------------- yes

“gcc -o conftest -I. -I/Programs/Ruby/1.8.6/lib/ruby/1.8/i686-linux -I.
-I/usr/include -I/Programs/Ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux
-O2 -march=i686 -fPIC -Wall conftest.c -L’/Programs/Ruby/1.8.6/lib’
-Wl,-R’/Programs/Ruby/1.8.6/lib’ -rdynamic -Wl,-export-dynamic
-lruby-static -ldl -lcrypt -lm -lc”
conftest.c: In function ‘t’:
conftest.c:3: error: ‘rb_block_proc’ undeclared (first use in this
function)
conftest.c:3: error: (Each undeclared identifier is reported only once
conftest.c:3: error: for each function it appears in.)
checked program was:
/* begin /
1: /top/
2: int main() { return 0; }
3: int t() { void ((volatile p)()); p = (void (()()))rb_block_proc;
return 0; }
/
end */

“gcc -o conftest -I. -I/Programs/Ruby/1.8.6/lib/ruby/1.8/i686-linux -I.
-I/usr/include -I/Programs/Ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux
-O2 -march=i686 -fPIC -Wall conftest.c -L’/Programs/Ruby/1.8.6/lib’
-Wl,-R’/Programs/Ruby/1.8.6/lib’ -rdynamic -Wl,-export-dynamic
-lruby-static -ldl -lcrypt -lm -lc”
conftest.c: In function ‘t’:
conftest.c:3: warning: implicit declaration of function ‘rb_block_proc’
checked program was:
/* begin /
1: /top/
2: int main() { return 0; }
3: int t() { rb_block_proc(); return 0; }
/
end */


“gcc -I. -I/Programs/Ruby/1.8.6/lib/ruby/1.8/i686-linux -I.
-I/usr/include -I/Programs/Ruby/1.8.6/lib/ruby/site_ruby/1.8/i686-linux
-O2 -march=i686 -fPIC -Wall -c conftest.c”
checked program was:
/* begin /
1: #include “ruby.h”
2: #include “node.h”
3: int node_attrasgn = (int)NODE_ATTRASGN;
/
end */

=


Powered by Outblaze


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi,

On Thu, 12 Jul 2007 14:33:42 +0100
“Roebe XXX” [email protected] wrote:

necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

You may need to install a dev package of gtksourceview.
What the result of pkg-config ?

$ pkg-config gtksourceview-1.0 --libs --cflags --modversion

If it returns error messages, check it carefully.


.:% Masao M.[email protected]


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/