[Kde-bindings] Problems builing RUBY binding
Alexander Kellett
lypanov at kde.org
Fri Jun 4 12:17:12 UTC 2004
what does
ruby -rrbconfig -e 'puts Config::CONFIG.collect {|k,v|"#{k.ljust 18}-> #{v}"}.join "\n"'
print out for you?
Alex
On Fri, Jun 04, 2004 at 01:58:13PM +0200, Alex Martin Ugalde wrote:
> Hi Folks,
>
> I got a link error while linking korudum:
>
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde3/include
> -I/usr/lib/qt3/include -I/usr/X11R6/include
> -I/usr/lib/ruby/1.8/i686-linux -DQT_THREAD_SUPPORT -D_REENTRANT
> -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 -fno-exceptions -fno-check-new
> -fno-common -c -o krubyinit.o krubyinit.cpp
> /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 -fno-exceptions -fno-check-new -fno-common -o krubyinit -module -L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kde3/lib -version-info 0:0:0 -L../../smoke/kde/ -L/usr/lib krubyinit.o ../../smoke/kde/libsmokekde.la ../../qtruby/rubylib/qtruby/libqtrubyinternal.la
> libtool: link: warning: `-version-info' is ignored for programs
> krubyinit.o: In function `main':
> krubyinit.o(.text+0xf): undefined reference to `ruby_init'
> krubyinit.o(.text+0x1d): undefined reference to `ruby_script'
> krubyinit.o(.text+0x27): undefined reference to `ruby_options'
> krubyinit.o(.text+0x2f): undefined reference to `ruby_run'
> collect2: ld returned 1 exit status
> make[1]: *** [krubyinit] Error 1
>
> The problem was it miss "-lruby", I have included it in bin/Makefile,
> and the link gone well.
>
> I guess it is not the best place :), but anyway here is the changes i
> made at korundum/bin/Makefile:
> 88c88
> < $(AM_LDFLAGS) $(LDFLAGS) -lruby -o $@
> ---
> > $(AM_LDFLAGS) $(LDFLAGS) -o $@
>
> Regards,
> Alex
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
mvg,
Alex
--
When women love us, they forgive us everything, even our crimes; when they do
not love us, they give us credit for nothing, not even our virtues.
-- Honor'e de Balzac
More information about the Kde-bindings
mailing list