thoughtbot/capybara-webkit — Issue #223: Error Installing capybara-webkit "‘__locale_t’ has not been declared"
Author: dimacus
Created: 2011-12-01 18:39:02+00:00
State: open

Installing on Ubuntu, 64bit QT version 1_1_4

$ gem install capybara-webkit -v 0.5.0
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.

/home/builduser/.rvm//rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb
/usr/local/bin/qmake
cd src/ && /usr/local/bin/qmake /home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0/src/webkit_server.pro -spec /packages/installed/distbuild-2011.11.30_15.30/mkspecs/linux-g++ -o Makefile.webkit_server
cd src/ && make -f Makefile.webkit_server
make[1]: Entering directory `/home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/packages/installed/distbuild-2011.11.30_15.30/mkspecs/linux-g++ -I. -I/packages/installed/distbuild-2011.11.30_15.30/include/QtCore -I/packages/installed/distbuild-2011.11.30_15.30/include/QtNetwork -I/packages/installed/distbuild-2011.11.30_15.30/include/QtGui -I/packages/installed/distbuild-2011.11.30_15.30/include/QtWebKit -I/packages/installed/distbuild-2011.11.30_15.30/include -I. -o main.o main.cpp
In file included from /usr/local/include/QtCore/qbytearray.h:48:0,
from /usr/local/include/QtCore/qstring.h:46,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/qobject.h:48,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/QObject:1,
from Server.h:1,
from main.cpp:1:
/usr/include/string.h:546:5: error: ‘__locale_t’ has not been declared
/usr/include/string.h:547:33: error: nonnull argument references non-pointer operand (argument 1, operand 3)
/usr/include/string.h:550:18: error: ‘__locale_t’ has not been declared
/usr/include/string.h:551:33: error: nonnull argument references non-pointer operand (argument 1, operand 4)
In file included from /packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/localefwd.h:42:0,
from /packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/string:45,
from /usr/local/include/QtCore/qstring.h:60,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/qobject.h:48,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/QObject:1,
from Server.h:1,
from main.cpp:1:
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:52:23: error: ‘uselocale’ was not declared in this scope
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:52:45: error: invalid type in declaration before ‘;’ token
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function ‘int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)’:
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:72:53: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:97:33: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
In file included from /usr/include/stdio.h:907:0,
from /usr/local/include/QtCore/qfile.h:47,
from /usr/local/include/QtCore/qfileinfo.h:45,
from /usr/local/include/QtCore/qdir.h:46,
from /usr/local/include/QtCore/qabstractfileengine.h:45,
from /usr/local/include/QtCore/QtCore:39,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtGui/QtGui:3,
from main.cpp:2:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’:
/usr/include/bits/stdio.h:118:52: error: ‘__getdelim’ was not declared in this scope
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2

make
cd src/ && make -f Makefile.webkit_server
make[1]: Entering directory `/home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0/src'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/packages/installed/distbuild-2011.11.30_15.30/mkspecs/linux-g++ -I. -I/packages/installed/distbuild-2011.11.30_15.30/include/QtCore -I/packages/installed/distbuild-2011.11.30_15.30/include/QtNetwork -I/packages/installed/distbuild-2011.11.30_15.30/include/QtGui -I/packages/installed/distbuild-2011.11.30_15.30/include/QtWebKit -I/packages/installed/distbuild-2011.11.30_15.30/include -I. -o main.o main.cpp
In file included from /usr/local/include/QtCore/qbytearray.h:48:0,
from /usr/local/include/QtCore/qstring.h:46,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/qobject.h:48,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/QObject:1,
from Server.h:1,
from main.cpp:1:
/usr/include/string.h:546:5: error: ‘__locale_t’ has not been declared
/usr/include/string.h:547:33: error: nonnull argument references non-pointer operand (argument 1, operand 3)
/usr/include/string.h:550:18: error: ‘__locale_t’ has not been declared
/usr/include/string.h:551:33: error: nonnull argument references non-pointer operand (argument 1, operand 4)
In file included from /packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/bits/localefwd.h:42:0,
from /packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/string:45,
from /usr/local/include/QtCore/qstring.h:60,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/qobject.h:48,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtCore/QObject:1,
from Server.h:1,
from main.cpp:1:
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:52:23: error: ‘uselocale’ was not declared in this scope
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:52:45: error: invalid type in declaration before ‘;’ token
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h: In function ‘int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, ...)’:
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:72:53: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
/packages/encap/gcc-4.5.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../include/c++/4.5.2/x86_64-unknown-linux-gnu/bits/c++locale.h:97:33: error: ‘__gnu_cxx::__uselocale’ cannot be used as a function
In file included from /usr/include/stdio.h:907:0,
from /usr/local/include/QtCore/qfile.h:47,
from /usr/local/include/QtCore/qfileinfo.h:45,
from /usr/local/include/QtCore/qdir.h:46,
from /usr/local/include/QtCore/qabstractfileengine.h:45,
from /usr/local/include/QtCore/QtCore:39,
from /packages/installed/distbuild-2011.11.30_15.30/include/QtGui/QtGui:3,
from main.cpp:2:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’:
/usr/include/bits/stdio.h:118:52: error: ‘__getdelim’ was not declared in this scope
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0/src'
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2

Gem files will remain installed in /home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0 for inspection.
Results logged to /home/builduser/.rvm/gems/ree-1.8.7-2011.03/gems/capybara-webkit-0.5.0/./gem_make.out