Ruby/Pango compilation error (Was: [Alexandria-list] trouble getting Alexandria to run)

Laurent Sansonetti lrz at gnome.org
Mon May 9 07:56:59 EDT 2005


Hi Dan,

I forward your e-mail to the Ruby-GNOME2 mailing list.

Could you give us the output of the pango/mkmf.log file that has been
created by extconf.rb?

Also, some info about your system, such as your version of Ruby, GNOME
libs (GTK, Pango, ...).

Thanks

Laurent

> Okay, what was happening was that the pango and gdkpixbuf modules failed
> to
> build when installing ruby-gnome2 (no binary package is available for my
> platform - SuSE 9.2 Pro).
>
> Now, I got gdkpixbuf to build by stripping the config made by the global
> config script and redoing it in the gdkpixbuf subdirectory.  However, the
> same procedure is not working in the pango subdirectory.  Instead I'm
> getting
> this error which I can't get past.  Any tips?
>
> Here's the output:
> make[1]: Entering directory
> `/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src'
> gcc -fPIC -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall
> -fno-strict-aliasing  -fPIC -Wall -I/opt/gnome/include/pango-1.0
> -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
> -I/home/thedude/downloads/ruby-gnome2-all-0.12.0/glib/src  -I.
> -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux
> -I/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src
> -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE
> -DHAVE_NODE_ATTRASGN -DRUBY_PANGO_COMPILATION
> -I/usr/lib/ruby/site_ruby/1.8/i686-linux  -c rbpangolayoutiter.c
> rbpangolayoutiter.c: In function `layout_iter_copy':
> rbpangolayoutiter.c:27: error: invalid application of `sizeof' to an
> incomplete type
> rbpangolayoutiter.c:28: error: dereferencing pointer to incomplete type
> rbpangolayoutiter.c:28: error: dereferencing pointer to incomplete type
> make[1]: *** [rbpangolayoutiter.o] Error 1
> make[1]: Leaving directory
> `/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src'
> make: *** [all] Error 2
>
> -Dan Sawyer
>
>
>
> On Monday 09 May 2005 00:47, Dan Sawyer wrote:
>> Heya everyone -
>>
>> After being quite enticed by the Alexandria web page, I've gone through
>> installing all the dependencies and Alexandria itself.  However, I get a
>> failure when attempting to start Alexandria that goes as follows:
>>
>> thedude at floyd:~/> alexandria
>> /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23:in `require': No
>> such
>> file to load -- gdk_pixbuf2 (LoadError)
>>         from /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23
>>         from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67:in `require'
>>         from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67
>>         from /usr/bin/alexandria:7:in `require'
>>         from /usr/bin/alexandria:
>>
>> -------------
>> As far as I can tell, all the gdk files are installed, as well as the
>> gnome2-ruby bindings.  I haven't been able to find anything useful on
>> this
>> - the only citation I've found of this problem is on an old ruby mailing
>> list archive dealing with problems in ver. 0.14.
>>
>> Any ideas would be greatly appreciated.  Has anyone seen this before?
>> -Dan Sawyer
>> _______________________________________________
>> Alexandria-list mailing list
>> Alexandria-list at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/alexandria-list
> _______________________________________________
> Alexandria-list mailing list
> Alexandria-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/alexandria-list
>


-- 
Laurent


More information about the Alexandria-list mailing list