I'm trying to install thrift on SUSE, but encounter some problems.
Runtime Environment:
SUSE Linux Enterprise Server 12 SP1 (x86_64)
thrift-0.10.0
using the configuration file
# ./configure --with-boost=/usr/local/boost-1.59.0 --with-openssl=/usr/local/src/openssl-1.0.0a
then
# make
but failed
Error details:
……
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I../../lib/c_glib/src/thrift -I/usr/local/boost-1.59.0/include -I/usr/local/src/openssl-1.0.0a/include -I./src -D__STDC_LIMIT_MACROS -Wall -Wextra -pedantic -g -O2 -std=c++11 -MT src/thrift/transport/TSSLSocket.lo -MD -MP -MF src/thrift/transport/.deps/TSSLSocket.Tpo -c src/thrift/transport/TSSLSocket.cpp -fPIC -DPIC -o src/thrift/transport/.libs/TSSLSocket.o
src/thrift/transport/TSSLSocket.cpp: In constructor 'apache::thrift::transport::SSLContext::SSLContext(const apache::thrift::transport::SSLProtocol&)':
src/thrift/transport/TSSLSocket.cpp:166:39: error: 'TLSv1_1_method' was not declared in this scope
ctx_ = SSL_CTX_new(TLSv1_1_method());
^
src/thrift/transport/TSSLSocket.cpp:168:39: error: 'TLSv1_2_method' was not declared in this scope
ctx_ = SSL_CTX_new(TLSv1_2_method());
^
Makefile:1312: recipe for target 'src/thrift/transport/TSSLSocket.lo' failed
make[3]: *** [src/thrift/transport/TSSLSocket.lo] Error 1
make[3]: Leaving directory '/home/aisp/bak/thrift-0.10.0/lib/cpp'
Makefile:1620: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/aisp/bak/thrift-0.10.0/lib/cpp'
Makefile:635: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/aisp/bak/thrift-0.10.0'
Makefile:548: recipe for target 'all' failed
make: *** [all] Error 2
I could not find the answer anywhere.
What should I do?
Related
We have software that we distributed to a bunch of Pis that have Raspian Wheezy. Recently, we've added in a bit of code that uses C++ standards that aren't integrated until >=gcc-4.8. If I compile on a newer version of Raspian, there are glibc mismatch errors when running on the Wheezy installed Pis.
Can I get >=gcc-4.8 on one of the Wheezy Pis without also having to install a higher version of glibc (which automatically makes any binary compiled refuse to work on the other Pis)?
Side note:
I've been trying to compile gcc-4.8 but I'm having the worst time because it keeps throwing a bits/predefs.h is missing error. Even though I configured it with --disable-multilib:
make[3]: Entering directory '/root/gcc-4.8/gcc-4.8-20150611/armv7l-unknown-linux-gnueabihf/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/root/gcc-4.8/gcc-4.8-20150611/host-armv7l-unknown-linux-gnueabihf/gcc/xgcc -B/root/gcc-4.8/gcc-4.8-20150611/host-armv7l-unknown-linux-gnueabihf/gcc/ -B/usr/local/armv7l-unknown-linux-gnueabihf/bin/ -B/usr/local/armv7l-unknown-linux-gnueabihf/lib/ -isystem /usr/local/armv7l-unknown-linux-gnueabihf/include -isystem /usr/local/armv7l-unknown-linux-gnueabihf/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -fno-inline -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -fno-inline -I. -I. -I../../host-armv7l-unknown-linux-gnueabihf/gcc -I../.././libgcc -I../.././libgcc/. -I../.././libgcc/../gcc -I../.././libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../.././libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/stdio.h:28:0,
from ../.././libgcc/../gcc/tsystem.h:87,
from ../.././libgcc/libgcc2.c:27:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
#include <bits/predefs.h>
^
compilation terminated.
Makefile:460: recipe for target '_muldi3.o' failed
make[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory '/root/gcc-4.8/gcc-4.8-20150611/armv7l-unknown-linux-gnueabihf/libgcc'
Makefile:14787: recipe for target 'all-stage1-target-libgcc' failed
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/root/gcc-4.8/gcc-4.8-20150611'
Makefile:18655: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/root/gcc-4.8/gcc-4.8-20150611'
Makefile:884: recipe for target 'all' failed
make: *** [all] Error 2
This article (https://superuser.com/questions/762274/error-compiling-gcc-on-raspberry-pi) doesn't fix my issue unfortunately.
Why can't I compile a program that uses Bullet Physics?
configure.ac:
PKG_CHECK_MODULES([bullet],[bullet])
src/Makefile.am:
myapp_CFLAGS = ... ${bullet_CFLAGS}
myapp_LDADD = ... ${bullet_LIBS}
Trying to compile it gives me the following error:
$ LC_ALL=C make
make all-recursive
make[1]: Entering directory '/home/me/Utveckling/myapp'
Making all in src
make[2]: Entering directory '/home/me/Utveckling/myapp/src'
depbase=`echo engine/PhysEngine.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT engine/PhysEngine.o -MD -MP -MF $depbase.Tpo -c -o engine/PhysEngine.o engine/PhysEngine.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from engine/PhysEngine.h:4:0,
from engine/PhysEngine.cpp:1:
/usr/include/bullet/BulletCollision/btBulletCollisionCommon.h:22:64: fatal error: BulletCollision/CollisionDispatch/btCollisionWorld.h: No such file or directory
#include "BulletCollision/CollisionDispatch/btCollisionWorld.h"
^
compilation terminated.
Makefile:479: recipe for target 'engine/PhysEngine.o' failed
make[2]: *** [engine/PhysEngine.o] Error 1
make[2]: Leaving directory '/home/me/Utveckling/myapp/src'
Makefile:364: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/me/Utveckling/myapp'
Makefile:305: recipe for target 'all' failed
make: *** [all] Error 2
I've installed the Ubuntu package libbullet-dev, and the files exist on the file system.
Found the solution myself.
Instead of
myapp_CFLAGS = ... ${bullet_CFLAGS}
I should be using
myapp_CPPFLAGS = ... ${bullet_CFLAGS}
A make of qt-everywhere-opensource-src-5.7.0 on OpenSUSE 13.2 after ./configure -qt-xcb fails with the following:
g++ -c -pipe -O2 -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BUILD_XCB_PLUGIN -DXCB_USE_XLIB -DXCB_USE_RENDER -DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\" -DDEFAULT_XKB_RULES=\"evdev\" -DDEFAULT_XKB_MODEL=\"pc105\" -DDEFAULT_XKB_LAYOUT=\"us\" -DQT_BUILD_XCB_QPA_LIB_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQ_FONTCONFIGDATABASE -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Igl_integrations -I../../../3rdparty/xcb/include -I../../../3rdparty/xcb/sysinclude -I../../../3rdparty/xkbcommon -I../../../3rdparty/xkbcommon/xkbcommon -I../../../3rdparty/xkbcommon/src -I../../../3rdparty/xkbcommon/src/xkbcomp -I../../../3rdparty/xkbcommon/src/x11 -I../../../../include -I../../../../include/QtPlatformSupport -I../../../../include/QtPlatformSupport/5.7.0 -I../../../../include/QtPlatformSupport/5.7.0/QtPlatformSupport -I../../../../include/QtGui/5.7.0 -I../../../../include/QtGui/5.7.0/QtGui -I../../../../include/QtGui -I../../../../include/QtCore/5.7.0 -I../../../../include/QtCore/5.7.0/QtCore -I../../../../include/QtCore -I.moc -isystem /usr/include/libdrm -I../../../../mkspecs/linux-g++ -o .obj/qxcbxsettings.o qxcbxsettings.cpp
qxcbxsettings.cpp:49:36: fatal error: X11/extensions/XIproto.h: No such file or directory
#include <X11/extensions/XIproto.h>
^
compilation terminated.
Makefile.xcb_qpa_lib:7354: recipe for target '.obj/qxcbxsettings.o' failed
make[6]: *** [.obj/qxcbxsettings.o] Error 1
make[6]: Leaving directory '/home/jan/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/plugins/platforms/xcb'
Makefile:86: recipe for target 'sub-xcb_qpa_lib-pro-make_first-ordered' failed
make[5]: *** [sub-xcb_qpa_lib-pro-make_first-ordered] Error 2
make[5]: Leaving directory '/home/jan/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/plugins/platforms/xcb'
Makefile:97: recipe for target 'sub-xcb-make_first' failed
make[4]: *** [sub-xcb-make_first] Error 2
make[4]: Leaving directory '/home/jan/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/plugins/platforms'
Makefile:99: recipe for target 'sub-platforms-make_first' failed
make[3]: *** [sub-platforms-make_first] Error 2
make[3]: Leaving directory '/home/jan/src/qt-everywhere-opensource-src-5.7.0/qtbase/src/plugins'
Makefile:641: recipe for target 'sub-plugins-make_first' failed
make[2]: *** [sub-plugins-make_first] Error 2
make[2]: Leaving directory '/home/jan/src/qt-everywhere-opensource-src-5.7.0/qtbase/src'
Makefile:45: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/jan/src/qt-everywhere-opensource-src-5.7.0/qtbase'
Makefile:77: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2
Add inputproto-devel:
sudo zypper install inputproto-devel
and restart the configuration and build.
I'm trying to compile OpenFST:
wget http://distfiles.macports.org/openfst/openfst-1.5.2.tar.gz
tar -xf openfst-1.5.2.tar.gz
cd openfst-1.5.2
sudo ./configure --enable-compact-fsts --enable-const-fsts --enable-far --enable-lookahead-fsts --enable-pdt
sudo make install
But after long time the building fails in this way:
Libraries have been installed in: /usr/local/lib
If you ever happen to want to link against installed libraries in a
given directory, LIBDIR, you must either use libtool, and specify the
full pathname of the library, or use the `-LLIBDIR' flag during
linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for more
information, such as the ld(1) and ld.so(8) manual pages.
---------------------------------------------------------------------- make[3]: Nessuna operazione da eseguire per "install-data-am".
make[3]: uscita dalla directory "/home/pi/src/openfst-1.5.2/src/lib"
make[2]: uscita dalla directory "/home/pi/src/openfst-1.5.2/src/lib"
Making install in script make[2]: ingresso nella directory
"/home/pi/src/openfst-1.5.2/src/script" /bin/bash ../../libtool
--tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I./../include -std=c++11 -MT determinize.lo -MD -MP -MF .deps/determinize.Tpo -c -o determinize.lo determinize.cc libtool: compile: g++ -DHAVE_CONFIG_H
-I./../include -std=c++11 -MT determinize.lo -MD -MP -MF .deps/determinize.Tpo -c determinize.cc -fPIC -DPIC -o
.libs/determinize.o g++: internal compiler error: Killed (program
cc1plus) Please submit a full bug report, with preprocessed source if
appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for
instructions. Makefile:516: set di istruzioni per l'obiettivo
"determinize.lo" non riuscito make[2]: *** [determinize.lo] Errore 1
make[2]: uscita dalla directory
"/home/pi/src/openfst-1.5.2/src/script" Makefile:358: set di
istruzioni per l'obiettivo "install-recursive" non riuscito make[1]:
*** [install-recursive] Errore 1 make[1]: uscita dalla directory "/home/pi/src/openfst-1.5.2/src" Makefile:414: set di istruzioni per
l'obiettivo "install-recursive" non riuscito make: ***
[install-recursive] Errore 1
I don't understand what is the cause of the error and thus how to fix it.
The o.s. is Rapsbian Jessie Lite running on RPi3.
I am trying to install IRC services and it's giving me the following error, I was wondering if anyone has seen this before and has a solution
Thanks
g++ -DHAVE_CONFIG_H -I. -I.. -g -O3 -Wall -Igoogle/sparsehash/src/ -I/usr/include/mysql -MT base64.o -MD -MP -MF .deps/base64.Tpo -c -o base64.o base64.cpp
In file included from base64.cpp:21:0:
stdafx.h:64:19: error fatal: mysql.h: No existe el archivo o el directorio
compilación terminada.
make[2]: *** [base64.o] Error 1
make[2]: se sale del directorio «/home/yeremay/services-master/Nucleo»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/home/yeremay/services-master»`
make: *** [all] Error 2
You need to have the mysql.h file in /usr/include/mysql, that's what the error message said.
or you change it to -I/usr/include