[Kde-bindings] qtruby compile error

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Sep 23 06:32:12 UTC 2004


On Thursday 23 September 2004 00:25, Navindra Umanee wrote:
> Richard, any idea about this?
>
> [vinata] [/<1>build/qtruby-cvs/qtruby/bin] kde-config -v
> Qt: 3.3.0-snapshot-20031220
> KDE: 3.2.0
> kde-config: 1.0
> [vinata] [/<1>build/qtruby-cvs/qtruby/bin] g++ --version
> g++ (GCC) 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)
> Copyright (C) 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> ...
>
> /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ 
> -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
> -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
> -Wpointer-arith -Wwrite-strings -O2 -Wformat-security
> -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common    -o
> qtrubyinit -module -L/usr/X11R6/lib -L/usr/local/qt//lib -version-info
> 0:0:0 -L../../smoke/qt/ -L/usr/lib qtrubyinit.o -lqt-mt  -lz -lpng -lz -lm
> -lXext -lX11  -lSM -lICE -lpthread  ../../smoke/qt/libsmokeqt.la
> ../../qtruby/rubylib/qtruby/libqtrubyinternal.la libtool: link: warning:
> `-version-info' is ignored for programs
>
> qtrubyinit.o(.text+0x9): In function `main':
> : undefined reference to `ruby_init'
>
> qtrubyinit.o(.text+0x17): In function `main':
> : undefined reference to `ruby_script'
>
> qtrubyinit.o(.text+0x26): In function `main':
> : undefined reference to `ruby_options'
>
> qtrubyinit.o(.text+0x2b): In function `main':
> : undefined reference to `ruby_run'
>
> collect2: ld returned 1 exit status
> make[3]: *** [qtrubyinit] Error 1
> make[3]: Leaving directory `/workspace/build/qtruby-cvs/qtruby/bin'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/workspace/build/qtruby-cvs/qtruby'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/workspace/build/qtruby-cvs'
> make: *** [all] Error 2
> Exit 2
Hi Navin

You need to build ruby with the '--enable-shared' option so it builds a 
'libruby.so' library - you get this error if you don't do that. But the 
configure check for ruby should really look for it and give an error if it 
doesn't find it.

-- Richard



More information about the Kde-bindings mailing list