- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我不确定我的环境出了什么问题,但是可以在我的另一个工作站上安装 gsoap,但是失败了...以及配置和制作日志
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... (cached) yes
checking for g++... g++
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 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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
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 grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 locale.h usability... yes
checking locale.h presence... yes
checking for locale.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 ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.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 for inttypes.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
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 poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking gnutls/gnutls.h usability... yes
checking gnutls/gnutls.h presence... yes
checking for gnutls/gnutls.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 struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
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 asctime... yes
checking for asctime_r... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for snprintf... yes
checking for strchr... yes
checking for strerror... yes
checking for strerror_r... yes
checking for strlcpy... no
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 snprintf... (cached) yes
checking for sprintf_l... no
checking for wctomb... yes
checking for mbtowc... yes
checking for poll... yes
checking for newlocale... yes
checking for uselocale... yes
checking for freelocale... yes
checking for isnan... yes
checking for isinf... 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 c locale usage in library... no
checking for enable ipv6 in library... no
checking for disable openssl in library... no
checking for enable gnutls in library... no
checking that generated files are newer than configure... done
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/autotest/Makefile
config.status: creating gsoap/samples/aws/Makefile
config.status: creating gsoap/samples/calc/Makefile
config.status: creating gsoap/samples/calc++/Makefile
config.status: creating gsoap/samples/chaining/Makefile
config.status: creating gsoap/samples/chaining++/Makefile
config.status: creating gsoap/samples/databinding/Makefile
config.status: creating gsoap/samples/dime/Makefile
config.status: creating gsoap/samples/dom/Makefile
config.status: creating gsoap/samples/oneway/Makefile
config.status: creating gsoap/samples/oneway++/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/primes/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/template/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/wsrm/Makefile
config.status: creating gsoap/samples/wsse/Makefile
config.status: creating gsoap/samples/wst/Makefile
config.status: creating gsoap/samples/xml-rpc-json/Makefile
config.status: creating gsoap/samples/rest/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
制作
make: Warning: File `Makefile' has modification time 1.8e+02 s in the future
make all-recursive
make[1]: Entering directory `/home/ghfan/gsoap-2.8'
make[1]: Warning: File `Makefile' has modification time 1.8e+02 s in the future
Making all in gsoap
make[2]: Entering directory `/home/ghfan/gsoap-2.8/gsoap'
make[2]: Warning: File `Makefile' has modification time 1.8e+02 s in the future
ln -s -f ./stdsoap2.cpp stdsoap2_cpp.cpp
ln -s -f ./dom.cpp dom_cpp.cpp
ln -s -f ./stdsoap2.cpp stdsoap2_ck.c
ln -s -f ./stdsoap2.cpp stdsoap2_ck_cpp.cpp
ln -s -f ./stdsoap2.cpp stdsoap2_ssl.c
ln -s -f ./stdsoap2.cpp stdsoap2_ssl_cpp.cpp
make all-recursive
make[3]: Entering directory `/home/ghfan/gsoap-2.8/gsoap'
make[3]: Warning: File `Makefile' has modification time 1.8e+02 s in the future
Making all in .
make[4]: Entering directory `/home/ghfan/gsoap-2.8/gsoap'
make[4]: Warning: File `Makefile' has modification time 1.8e+02 s in the future
gcc -DHAVE_CONFIG_H -I. -I.. -DLINUX -g -O2 -MT libgsoap_a-stdsoap2.o -MD -MP -MF .deps/libgsoap_a-stdsoap2.Tpo -c -o libgsoap_a-stdsoap2.o `test -f 'stdsoap2.c' || echo './'`stdsoap2.c
mv -f .deps/libgsoap_a-stdsoap2.Tpo .deps/libgsoap_a-stdsoap2.Po
gcc -DHAVE_CONFIG_H -I. -I.. -DLINUX -g -O2 -MT libgsoap_a-dom.o -MD -MP -MF .deps/libgsoap_a-dom.Tpo -c -o libgsoap_a-dom.o `test -f 'dom.c' || echo './'`dom.c
In file included from dom.c:55:
****stdsoap2.h:2830: error: expected specifier-qualifier-list before 'locale_t'****
make[4]: *** [libgsoap_a-dom.o] Error 1
make[4]: Leaving directory `/home/ghfan/gsoap-2.8/gsoap'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ghfan/gsoap-2.8/gsoap'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ghfan/gsoap-2.8/gsoap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ghfan/gsoap-2.8'
make: *** [all] Error 2
我不知道这个问题,有人知道为什么吗?
最佳答案
您的系统可能没有可用的 locale.h、xlocale.h,或者无法使用其中一个或两个。
解决方法如下:
如果您使用的是最新版本 2.8.49,则使用 ./configure --disable-c-locale
如果您使用的是旧版本,请使用 ./configure SOAPCPP2_DEBUG="-DWITH_NO_C_LOCALE"
当使用 strtod_l
等函数转换浮点值时,这会禁用 C 语言环境的内部使用。
它将允许您构建库。
我不确定是否要构建 wsdl2h,但是您可以在导航到 gsoap/wsdl
.
但请注意:使用这些选项意味着机器或应用程序中的其他区域设置可能会影响浮点转换,例如当 LC_NUMERIC
设置为欧式十进制逗号而不是小数点时。这显然会影响 XML 中的文本处理。
关于linux - 无法在 Linux 上安装 gsoap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45233734/
我需要在 gsoap 中启用 keep alive。 我尝试通过设置 soap.keep_alive = 1 并为输入/输出模式设置保持事件标志。 但我仍然没有观察到 wireshark 中的 kee
我知道如何为 gsoap 普通代码实现 http get,但是当我使用 gsoap 和 soapcpp2 -i 生成代码时,我没有可用的 soap_serve 函数,我不知道如何/在哪里重新实现 fg
我有一些关于使用 gSOAP 的问题用于解析 XML。如果有人对此有经验,请给我一些帮助。谢谢:D 我以前从不知道 XML,现在我需要将 XML 解析为 C 中的结构。然后我发现了一些使用 gSOAP
我刚开始使用 gsoap。我只使用 c++ 取得了 4 个小成功,但是我当前的项目限制了我设置源代码生成选项来创建纯 ANSI C(不是 c++)。我似乎无法成功调用该服务,错误返回为 0xC0000
您能否举例说明您是如何使用 gSOAP 以及它在您现有架构中的集成程度如何?您是否发现 gSOAP 的开发瓶颈? 最佳答案 我们将 gSOAP 用于一组 ARM 客户端与 AXIS Web 服务服务器
我目前正在使用 gSoap 的 soapcpp2 为我自己的数据类型生成 XML 序列化器/反序列化器。 我只是在头文件中定义我的类型,然后使用以下命令行将其提交到 soapcpp2: soapcpp
第 1 步,我使用 ASP.NET (C#) 创建了一个 WebService: [WebService(Namespace = "http://tempuri.org/")] [WebSer
我使用 gsoap 在我的 C 程序中实现一些 Web 服务。 我像这样使用gsoap: int motion_detector_check_status(const char *endpoint,
我有一个 SOAP 函数,其在 gSOAP 语法中定义为 //gsoap ns service method-documentation: get foo and bar int ns__getFoo
gsoap 生成函数来分配复杂类型,如下所示:soap_new_set_ns1__Date 我找不到如何只对一个整数做同样的事情。整数是可选的,因此必须以类似的方式分配。 谢谢。 最佳答案 您可以使用
我正在使用 gSOAP 从 SOAP 网络服务请求信息 soap 网络服务返回一个对象。我在名为“dataconnector”的调用中执行请求 在数据连接器中,我可以输出返回对象的所有值但除此之外,对
我正在使用带有 g++ 和 qmake 的 gsoap 编译一个程序。经过几个小时的工作,我从编译器中得到了这个错误: /usr/share/gsoap/import/ds.h:89:2: error
我们正在将 gsoap 版本从 2.7.8 升级到最新版本 2.8.33 当我们的 make 文件使用完全相同的标志运行 soapcpp2.exe 和 wsdl2h.exe 时,我没有得到完全相同的类
我目前正在使用 gSoap 库开发应用程序,并且对正确使用库有一些误解。我已经生成了包装我自己的类的代理对象(-j 标志),如下所示。应用程序必须 24/7 全天候工作并同时连接到多个摄像头(约 50
看起来 gSoap“忘记”生成很多东西了。我用过 wsdl2h.exe -o NumOpsService.h http://192.168.2.113/numops.wsdl soapcpp2.exe
我正在尝试构建我的第一个 gSoap 应用程序。即使给出的 calc 示例也无法为我编译。我遵循了自述文件,并执行了以下操作: 使用提供的工具将 wsdl 转换为 header (wsdl2h -s
我有三个网络服务。客户端、服务器和另一个服务器。第一台服务器充当第二台服务器的客户端。现在我有两个服务在同一台机器上运行。这些是单独的服务,但一个使用另一个。但是当我同时使用这两种服务时,会出现命名空
我使用 gSOAP 工具包生成 soap 服务和客户端,它应该发送一个 int 数组,该数组按照 gSOAP 文档中的建议放入结构中: //我的服务.h struct abc { int __
我已经使用 gSOAP 开发了网络服务。其中一种方法返回 json 输出。但是浏览器需要传递 header (Access-Control-Allow-Origin)。 gSOAP 是否支持在发送数据
我有一个带有两个 eth 卡的 Linux 系统。 eth0 和 eth1。我正在创建一个发送的客户端到端点 1.2.3.4。 我使用soap_call_函数发送我的网络服务。如何选择 eth1 而不
我是一名优秀的程序员,十分优秀!