[请教]linux as 3下编译gSOAP_2.7.12错误问题

wxx8la 2009-01-03 12:38:49
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]$
[m[wangxx@localhost gsoap-2.7]$ ./configure --prefix=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
..........
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]$
...全文
425 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
wxx8la 2009-01-03
  • 打赏
  • 举报
回复
将原rh-linux带的m4版本1.4.1涉及到1.4.12问题解决。

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧