Hi -
I'm trying to compile qtruby and I'm having some issues.
I have tried both compiling from the kdebindings package AND from
the qtruby standalone package and the same error occurs:
The compile process always seems to die on an undefined reference to
some ruby functions. I'm using Fedora Core 2.
This is the last output from make:
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++
-Wnon-virtual-dtor -Wno-long-lo ng -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subsc ripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -Wformat-security
-Wmissing-format-att ribute -fno-exceptions -fno-check-new -fno-common
-o qtrubyinit -module -L/usr/lib -L/ usr/lib/qt-3.3/lib
-L/usr/X11R6/lib -version-info 0:0:0 -L../../smoke/qt/ -L/usr/local
/lib qtrubyinit.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE
-lpthread -Wl,-R -W l,/usr/local/lib -L/usr/local/lib -L.
.../../smoke/qt/libsmokeqt.la
.../../qtruby/rubylib/ qtruby/libqtrubyinternal.la
libtool: link: warning: `-version-info' is ignored for programs
qtrubyinit.o(.text+0xa): In function `main':
: undefined reference to `ruby_init'
qtrubyinit.o(.text+0x18): In function `main':
: undefined reference to `ruby_script'
qtrubyinit.o(.text+0x25): In function `main':
: undefined reference to `ruby_options'
qtrubyinit.o(.text+0x2a): In function `main':
: undefined reference to `ruby_run'
collect2: ld returned 1 exit status
make[3]: *** [qtrubyinit] Error 1
make[3]: Leaving directory
`/home/davp/downloads/kdebindings-050120/qtruby/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/davp/downloads/kdebindings-050120/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/davp/downloads/kdebindings-050120'
make: *** [all] Error 2
quick solution:
make -k
make -k install
more useful solution:
could you give me the result of:
ruby -r rbconfig -e 'c=Config::CONFIG;mc=c.keys.map{|str|str.length}.max;puts c.keys.sort.map {|dom| "#{dom.rjust mc+1} => #{c[dom]}"}.join "\n"'
···
On Jan 21, 2005, at 5:20 PM, DP wrote:
Hi -
I'm trying to compile qtruby and I'm having some issues.
I have tried both compiling from the kdebindings package AND from
the qtruby standalone package and the same error occurs:
The compile process always seems to die on an undefined reference to
some ruby functions. I'm using Fedora Core 2.
This is the last output from make:
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++
-Wnon-virtual-dtor -Wno-long-lo ng -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subsc ripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -Wformat-security
-Wmissing-format-att ribute -fno-exceptions -fno-check-new -fno-common
-o qtrubyinit -module -L/usr/lib -L/ usr/lib/qt-3.3/lib
-L/usr/X11R6/lib -version-info 0:0:0 -L../../smoke/qt/ -L/usr/local
/lib qtrubyinit.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE
-lpthread -Wl,-R -W l,/usr/local/lib -L/usr/local/lib -L.
.../../smoke/qt/libsmokeqt.la
.../../qtruby/rubylib/ qtruby/libqtrubyinternal.la
libtool: link: warning: `-version-info' is ignored for programs
qtrubyinit.o(.text+0xa): In function `main':
: undefined reference to `ruby_init'
qtrubyinit.o(.text+0x18): In function `main':
: undefined reference to `ruby_script'
qtrubyinit.o(.text+0x25): In function `main':
: undefined reference to `ruby_options'
qtrubyinit.o(.text+0x2a): In function `main':
: undefined reference to `ruby_run'
collect2: ld returned 1 exit status
make[3]: *** [qtrubyinit] Error 1
make[3]: Leaving directory
`/home/davp/downloads/kdebindings-050120/qtruby/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/davp/downloads/kdebindings-050120/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/davp/downloads/kdebindings-050120'
make: *** [all] Error 2
Hi -
I'm trying to compile qtruby and I'm having some issues.
I have tried both compiling from the kdebindings package AND from
the qtruby standalone package and the same error occurs:
The compile process always seems to die on an undefined reference to
some ruby functions. I'm using Fedora Core 2.
This is the last output from make:
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++
-Wnon-virtual-dtor -Wno-long-lo ng -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subsc ripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -Wformat-security
-Wmissing-format-att ribute -fno-exceptions -fno-check-new -fno-common
-o qtrubyinit -module -L/usr/lib -L/ usr/lib/qt-3.3/lib
-L/usr/X11R6/lib -version-info 0:0:0 -L../../smoke/qt/ -L/usr/local
/lib qtrubyinit.o -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE
-lpthread -Wl,-R -W l,/usr/local/lib -L/usr/local/lib -L.
../../smoke/qt/libsmokeqt.la
../../qtruby/rubylib/ qtruby/libqtrubyinternal.la
libtool: link: warning: `-version-info' is ignored for programs
qtrubyinit.o(.text+0xa): In function `main':
: undefined reference to `ruby_init'
qtrubyinit.o(.text+0x18): In function `main':
: undefined reference to `ruby_script'
qtrubyinit.o(.text+0x25): In function `main':
: undefined reference to `ruby_options'
qtrubyinit.o(.text+0x2a): In function `main':
: undefined reference to `ruby_run'
collect2: ld returned 1 exit status
make[3]: *** [qtrubyinit] Error 1
make[3]: Leaving directory
`/home/davp/downloads/kdebindings-050120/qtruby/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/davp/downloads/kdebindings-050120/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/davp/downloads/kdebindings-050120'
make: *** [all] Error 2
The shared library 'libruby.so' is missing, so you need to build ruby with
the '--enable-shared' option. But you shouldn't usually need to use the
'qtrubyinit' command line tool anyway.
see the following in the other reply:
LIBRUBY => libruby.so.1.8.2
detection seems to be wrong
i *think* there are two possible
options that can have the so name
and we should probably || the
second one just in case the first
isn't set. did this in the past
but reverted as noone else had
the problem. could you revert
the revert richard? (hope i
commited really can't recall)
thanks
Alex
···
On Jan 22, 2005, at 9:35 AM, Richard Dale wrote:
The shared library 'libruby.so' is missing, so you need to build ruby with
the '--enable-shared' option. But you shouldn't usually need to use the
'qtrubyinit' command line tool anyway.