免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5833 | 回复: 4
打印 上一主题 下一主题

[C++] [请教]linux下编译gSOAP2.7.12错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-03 00:24 |只看该作者 |倒序浏览
linux as 3下编译gSOAP_2.7.12时出错,在安装gsoap前已安装m4-1.4.1、bison-2.4.1、flex-2.5.35、openssl-0.9.8i、zlib-1.2.3,但编译过程中报如下错误:

make[4]: Entering directory `/data/work/third/gsoap-2.7/gsoap/src'
bison -y  -d -v `test -f 'soapcpp2_yacc.y' || echo './'`soapcpp2_yacc.y
conflicts: 1 shift/reduce
NONE:0: /usr/bin/m4: ERROR: EOF in string
bison: subsidiary program `/usr/bin/m4' failed (exit status 1)

本人没有研究过bison,不知是否是gSOAP的bug,所以请教各位大侠,编译详细日志如下:

[wangxx@localhost gsoap-2.7]$ which bison
/usr/local/bin/bison
[wangxx@localhost gsoap-2.7]$ which flex
/usr/local/bin/flex
[wangxx@localhost gsoap-2.7]$ which m4
/usr/local/bin/m4
[wangxx@localhost gsoap-2.7]$ ls /usr/bin/m4
/usr/bin/m4
[wangxx@localhost gsoap-2.7]$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
[wangxx@localhost gsoap-2.7]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
[wangxx@localhost gsoap-2.7]$
[wangxx@localhost gsoap-2.7]$ ./configure --prefix=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... (cached) yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking for egrep... grep -E
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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking return type of signal handlers... void
checking for strftime... yes
checking for random... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for localtime_r... yes
checking for timegm... yes
checking for gmtime... yes
checking for gmtime_r... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strtold... yes
checking for strtod... yes
checking for strtof... yes
checking for strtold_l... yes
checking for strtod_l... yes
checking for strtof_l... yes
checking for sscanf... yes
checking for sscanf_l... no
checking for sprintf_l... no
checking for wctomb... yes
checking for mbtowc... yes
checking for gethostbyname_r... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for disable namespaces in library... no
checking for disable openssl in library... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gsoap.pc
config.status: creating gsoap++.pc
config.status: creating gsoapck.pc
config.status: creating gsoapck++.pc
config.status: creating gsoapssl.pc
config.status: creating gsoapssl++.pc
config.status: creating gsoap/Makefile
config.status: creating gsoap/src/Makefile
config.status: creating gsoap/wsdl/Makefile
config.status: creating gsoap/samples/Makefile
config.status: creating gsoap/samples/calc/Makefile
config.status: creating gsoap/samples/calc++/Makefile
config.status: creating gsoap/samples/dime/Makefile
config.status: creating gsoap/samples/dom/Makefile
config.status: creating gsoap/samples/events/Makefile
config.status: creating gsoap/samples/events++/Makefile
config.status: creating gsoap/samples/factory/Makefile
config.status: creating gsoap/samples/factorytest/Makefile
config.status: creating gsoap/samples/gmt/Makefile
config.status: creating gsoap/samples/googleapi/Makefile
config.status: creating gsoap/samples/hello/Makefile
config.status: creating gsoap/samples/httpcookies/Makefile
config.status: creating gsoap/samples/lu/Makefile
config.status: creating gsoap/samples/magic/Makefile
config.status: creating gsoap/samples/mashup/Makefile
config.status: creating gsoap/samples/mashup++/Makefile
config.status: creating gsoap/samples/mtom/Makefile
config.status: creating gsoap/samples/mtom-stream/Makefile
config.status: creating gsoap/samples/polytest/Makefile
config.status: creating gsoap/samples/roll/Makefile
config.status: creating gsoap/samples/router/Makefile
config.status: creating gsoap/samples/rss/Makefile
config.status: creating gsoap/samples/ssl/Makefile
config.status: creating gsoap/samples/udp/Makefile
config.status: creating gsoap/samples/varparam/Makefile
config.status: creating gsoap/samples/wsa/Makefile
config.status: creating gsoap/samples/wsse/Makefile
config.status: creating gsoap/samples/xml-rpc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[wangxx@localhost gsoap-2.7]$ make
cd . && /bin/sh /home/wangxx/data/work/third/gsoap-2.7/missing --run autoheader
/home/wangxx/data/work/third/gsoap-2.7/missing: line 46: autoheader: command not found
WARNING: `autoheader' is missing on your system.  You should only need it if
         you modified `acconfig.h' or `configure.in'.  You might want
         to install the `Autoconf' and `GNU m4' packages.  Grab them
         from any GNU archive site.
touch ./config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/data/work/third/gsoap-2.7'
Making all in gsoap
make[2]: Entering directory `/data/work/third/gsoap-2.7/gsoap'
ln -s -f ./stdsoap2.cpp stdsoap2_cpp.cpp
source='stdsoap2.c' object='libgsoap_a-stdsoap2.o' libtool=no \
depfile='.deps/libgsoap_a-stdsoap2.Po' tmpdepfile='.deps/libgsoap_a-stdsoap2.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -g -O2 -c -o libgsoap_a-stdsoap2.o `test -f 'stdsoap2.c' || echo './'`stdsoap2.c
rm -f libgsoap.a
ar cru libgsoap.a libgsoap_a-stdsoap2.o
ranlib libgsoap.a
source='stdsoap2_cpp.cpp' object='libgsoap___a-stdsoap2_cpp.o' libtool=no \
depfile='.deps/libgsoap___a-stdsoap2_cpp.Po' tmpdepfile='.deps/libgsoap___a-stdsoap2_cpp.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -g -O2 -c -o libgsoap___a-stdsoap2_cpp.o `test -f 'stdsoap2_cpp.cpp' || echo './'`stdsoap2_cpp.cpp
rm -f libgsoap++.a
ar cru libgsoap++.a libgsoap___a-stdsoap2_cpp.o
ranlib libgsoap++.a
ln -s -f ./stdsoap2.cpp stdsoap2_ck.c
source='stdsoap2_ck.c' object='libgsoapck_a-stdsoap2_ck.o' libtool=no \
depfile='.deps/libgsoapck_a-stdsoap2_ck.Po' tmpdepfile='.deps/libgsoapck_a-stdsoap2_ck.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -DWITH_COOKIES -g -O2 -c -o libgsoapck_a-stdsoap2_ck.o `test -f 'stdsoap2_ck.c' || echo './'`stdsoap2_ck.c
rm -f libgsoapck.a
ar cru libgsoapck.a libgsoapck_a-stdsoap2_ck.o
ranlib libgsoapck.a
ln -s -f ./stdsoap2.cpp stdsoap2_ck_cpp.cpp
source='stdsoap2_ck_cpp.cpp' object='libgsoapck___a-stdsoap2_ck_cpp.o' libtool=no \
depfile='.deps/libgsoapck___a-stdsoap2_ck_cpp.Po' tmpdepfile='.deps/libgsoapck___a-stdsoap2_ck_cpp.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -DWITH_COOKIES -g -O2 -c -o libgsoapck___a-stdsoap2_ck_cpp.o `test -f 'stdsoap2_ck_cpp.cpp' || echo './'`stdsoap2_ck_cpp.cpp
rm -f libgsoapck++.a
ar cru libgsoapck++.a libgsoapck___a-stdsoap2_ck_cpp.o
ranlib libgsoapck++.a
ln -s -f ./stdsoap2.cpp stdsoap2_ssl.c
source='stdsoap2_ssl.c' object='libgsoapssl_a-stdsoap2_ssl.o' libtool=no \
depfile='.deps/libgsoapssl_a-stdsoap2_ssl.Po' tmpdepfile='.deps/libgsoapssl_a-stdsoap2_ssl.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -DWITH_OPENSSL -DWITH_DOM -DWITH_GZIP -g -O2 -c -o libgsoapssl_a-stdsoap2_ssl.o `test -f 'stdsoap2_ssl.c' || echo './'`stdsoap2_ssl.c
rm -f libgsoapssl.a
ar cru libgsoapssl.a libgsoapssl_a-stdsoap2_ssl.o
ranlib libgsoapssl.a
ln -s -f ./stdsoap2.cpp stdsoap2_ssl_cpp.cpp
source='stdsoap2_ssl_cpp.cpp' object='libgsoapssl___a-stdsoap2_ssl_cpp.o' libtool=no \
depfile='.deps/libgsoapssl___a-stdsoap2_ssl_cpp.Po' tmpdepfile='.deps/libgsoapssl___a-stdsoap2_ssl_cpp.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..      -DLINUX -DWITH_OPENSSL -DWITH_DOM -DWITH_GZIP -g -O2 -c -o libgsoapssl___a-stdsoap2_ssl_cpp.o `test -f 'stdsoap2_ssl_cpp.cpp' || echo './'`stdsoap2_ssl_cpp.cpp
rm -f libgsoapssl++.a
ar cru libgsoapssl++.a libgsoapssl___a-stdsoap2_ssl_cpp.o
ranlib libgsoapssl++.a
make  all-recursive
make[3]: Entering directory `/data/work/third/gsoap-2.7/gsoap'
Making all in src
make[4]: Entering directory `/data/work/third/gsoap-2.7/gsoap/src'
bison -y  -d -v `test -f 'soapcpp2_yacc.y' || echo './'`soapcpp2_yacc.y
conflicts: 1 shift/reduce
NONE:0: /usr/bin/m4: ERROR: EOF in string
bison: subsidiary program `/usr/bin/m4' failed (exit status 1)
make[4]: *** [soapcpp2_yacc.c] Error 1
make[4]: Leaving directory `/data/work/third/gsoap-2.7/gsoap/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/data/work/third/gsoap-2.7/gsoap'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/data/work/third/gsoap-2.7/gsoap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/work/third/gsoap-2.7'
make: *** [all] Error 2
[wangxx@localhost gsoap-2.7]$
[wangxx@localhost gsoap-2.7]$

论坛徽章:
0
2 [报告]
发表于 2009-01-03 10:32 |只看该作者
有时候,下的包是有问题的

论坛徽章:
0
3 [报告]
发表于 2009-01-03 10:43 |只看该作者
bison 装了吗?

论坛徽章:
0
4 [报告]
发表于 2009-01-03 12:21 |只看该作者
已经安装bison-2.4.1,经校验过官方的gsoap-2.7.12.tar.gz的md5是正确的。不知跟bison的版本是否有关系啊。

论坛徽章:
0
5 [报告]
发表于 2009-01-03 14:57 |只看该作者

问题解决,结帖了

将原rh-linux带的m4版本1.4.1涉及到1.4.12问题解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP