ryanmelt/qtbindings — Issue #26: errors when building with 1.9.3
Author: ippa
Created: 2011-12-10 17:53:13+00:00
State: open

Any idea what is causing this? Running 1.9.3p0 that I compiled from source on debian squeeze/sid.

from "gem isntall qtbindings"

----------------------
Scanning dependencies of target smokeqttest
make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
make[3]: Entering directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
[ 78%] Building CXX object smoke/qttest/CMakeFiles/smokeqttest.dir/smokedata.o
[ 79%] Building CXX object smoke/qttest/CMakeFiles/smokeqttest.dir/x_1.o
Linking CXX shared library libsmokeqttest.so
make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
[ 79%] Built target smokeqttest
make[3]: Entering directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
[ 79%] Generating smokedata.cpp, x_1.cpp
using generator "/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build/generator/bin/generator_smoke.so"
parsing "/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/smoke/qthelp/qthelp_includes.h"
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include

Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include
Couldn't find file for #include

Couldn't find file for #include
Couldn't find file for #include
Not parsing stdio.h because it is not handled correctly by smokegen on FreeBSD based systems
Not parsing stdio.h because it is not handled correctly by smokegen on FreeBSD based systems
Couldn't find file for #include
Couldn't find file for #include
Generating SMOKE sources...
preparing SMOKE data [qthelp]
writing out smokedata.cpp [qthelp]
writing out x_*.cpp [qthelp]
Done.
Scanning dependencies of target smokeqthelp
make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
make[3]: Entering directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
[ 80%] Building CXX object smoke/qthelp/CMakeFiles/smokeqthelp.dir/smokedata.o
[ 81%] Building CXX object smoke/qthelp/CMakeFiles/smokeqthelp.dir/x_1.o
Linking CXX shared library libsmokeqthelp.so
make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
[ 81%] Built target smokeqthelp
make[3]: Entering directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
Scanning dependencies of target qtruby4shared
make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
make[3]: Entering directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
[ 82%] Building CXX object ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/Qt.o
[ 82%] Building CXX object ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/handlers.o
[ 83%] Building CXX object ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/marshall_types.o
Linking CXX shared library libqtruby4shared.so
/usr/bin/ld: /usr/local/lib/libruby-static.a(array.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libruby-static.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [ruby/qtruby/src/libqtruby4shared.so.2.0.0] Error 1
make[3]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
make[2]: *** [ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/all] Error 2
make[2]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/ext/build'
make: *** [build] Error 2

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/qtbindings-4.6.3.4/./gem_make.out
----------------------