Comments (6)
protoc --version
libprotoc 3.6.1
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-4/root/usr --mandir=/opt/rh/devtoolset-4/root/usr/share/man --infodir=/opt/rh/devtoolset-4/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-default-libstdcxx-abi=gcc4-compatible --with-isl=/builddir/build/BUILD/gcc-5.3.1-20160406/obj-x86_64-redhat-linux/isl-install --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 5.3.1 20160406 (Red Hat 5.3.1-6) (GCC)
from skyapm-php-sdk.
retry
git clone --recurse-submodules https://github.com/SkywalkingContrib/skywalking-php-sdk.git
from skyapm-php-sdk.
我也遇到了这个问题,请问如何处理?
from skyapm-php-sdk.
@maopaolinux 问题发出来
from skyapm-php-sdk.
编译报错:
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20170718
checking for PHP installed headers prefix... /usr/include/php/20170718
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable skywalking support... yes, shared
checking for libgrpc support... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for libgrpc files in default path... found in /usr/local
checking for grpc_channel_destroy in -lgrpc... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: executing default-1 commands
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
config.status: executing default-2 commands
mv: cannot stat 'src/grpc/common/common.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/register/Register.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/language-agent-v2/trace.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/register/InstancePing.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/common/trace-common.grpc.pb.cc': No such file or directory
config.status: executing libtool commands
from skyapm-php-sdk.
编译报错:
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20170718
checking for PHP installed headers prefix... /usr/include/php/20170718
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable skywalking support... yes, shared
checking for libgrpc support... yes, shared
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for libgrpc files in default path... found in /usr/local
checking for grpc_channel_destroy in -lgrpc... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
config.status: executing default-1 commands
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
./src/grpc/: No such file or directory
config.status: executing default-2 commands
mv: cannot stat 'src/grpc/common/common.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/register/Register.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/language-agent-v2/trace.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/register/InstancePing.grpc.pb.cc': No such file or directory
mv: cannot stat 'src/grpc/common/trace-common.grpc.pb.cc': No such file or directory
config.status: executing libtool commands
make之后出现以下报错:
make
/bin/sh /data/src/skywalking-php-sdk/libtool --mode=compile cc -Wall -Werror -std=c++11 -I. -I/data/src/skywalking-php-sdk -DPHP_ATOM_INC -I/data/src/skywalking-php-sdk/include -I/data/src/skywalking-php-sdk/main -I/data/src/skywalking-php-sdk -I/opt/php/php7.0.13/include/php -I/opt/php/php7.0.13/include/php/main -I/opt/php/php7.0.13/include/php/TSRM -I/opt/php/php7.0.13/include/php/Zend -I/opt/php/php7.0.13/include/php/ext -I/opt/php/php7.0.13/include/php/ext/date/lib -I/usr/local/include -I/data/src/skywalking-php-sdk/src/report/deps/boost -I/data/src/skywalking-php-sdk/src/grpc -I/data/src/skywalking-php-sdk/src -DHAVE_CONFIG_H -g -O2 -c /data/src/skywalking-php-sdk/skywalking.c -o skywalking.lo
mkdir .libs
cc -Wall -Werror -std=c++11 -I. -I/data/src/skywalking-php-sdk -DPHP_ATOM_INC -I/data/src/skywalking-php-sdk/include -I/data/src/skywalking-php-sdk/main -I/data/src/skywalking-php-sdk -I/opt/php/php7.0.13/include/php -I/opt/php/php7.0.13/include/php/main -I/opt/php/php7.0.13/include/php/TSRM -I/opt/php/php7.0.13/include/php/Zend -I/opt/php/php7.0.13/include/php/ext -I/opt/php/php7.0.13/include/php/ext/date/lib -I/usr/local/include -I/data/src/skywalking-php-sdk/src/report/deps/boost -I/data/src/skywalking-php-sdk/src/grpc -I/data/src/skywalking-php-sdk/src -DHAVE_CONFIG_H -g -O2 -c /data/src/skywalking-php-sdk/skywalking.c -fPIC -DPIC -o .libs/skywalking.o
cc1: error: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [-Werror]
cc1: all warnings being treated as errors
make: *** [skywalking.lo] Error 1
from skyapm-php-sdk.
Related Issues (20)
- centos安装成功之后前端没有数据展示 HOT 10
- hyperf(swoole) 上报数据异常,报FRAME_SIZE_ERROR HOT 4
- 关于skywalking时间的问题 HOT 5
- receive content is empty HOT 5
- sw extension compile failed at the 200th rust pkg. HOT 2
- sky-php-agent不能注册 HOT 1
- 4.2版本tars框架服务没有数据上报 HOT 9
- skywalking 9.1.0版本前端页面显示数据有延时 HOT 1
- docker部署8.9.1仪表盘显示异常 HOT 1
- 执行 php -v , php -m Segmentation fault (core dumped) HOT 3
- 数据无法上报:sky_core_report_ipc_send err message queue is fulled HOT 18
- skywalking.oap_authentication 支持这个参数吗? HOT 2
- skywakling导致php命令行终止执行 HOT 1
- 引入skywalking后,当访问增加时,进程被杀掉了
- 安装skywalking扩展后,执行php脚本报错
- sky_request_flush message_queue exNo such file or directory
- Error relocating skywalking.so: rc_dtor_func: symbol not found HOT 1
- 5.0.1 不配置 service_instance 不上报数据,配置 service_instance 上报为空
- 数据没有显现
- php skywalking 5.0.1 没有mysql和redis 等链路监控数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skyapm-php-sdk.