Menu

#1275 ../stdsoap2.cpp", line 5154.11: 1540-0274 (S) The name lookup for "tmpbuf" did not find a declaration.

v1.0 (example)
closed-fixed
None
4
2020-03-28
2020-02-14
No

Hi folks
Need assistance from anyone who have seen these errrors after compiling wsdl2h sucessfully: SEE below:
AIX 7.2
Include BISON and FLEX

/usr/local/gsoap2020/gsoap-2.8/gsoap/wsdl $make -f MakefileManual secure
make -f MakefileManual distclean
rm -f .o .wsdl .xsd .xml *.nsmap wsdl2h wsdlH.h wsdlStub.h wsdlC.cpp wsdlClient.cpp wsdlServer.cpp wsdlClientLib.cpp wsdlServerLib.cpp
make -f MakefileManual CMFLAGS='-DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP' LIBS="httpda.o smdevp.o -lz -lm -lpthread -lcrypto -lssl" httpda.o smdevp.o wsdl2h
gcc -c -g -I.. -I../plugin -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP ../plugin/httpda.c
gcc -c -g -I.. -I../plugin -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP ../plugin/smdevp.c
../src/soapcpp2 -I../import -SC -pwsdl wsdl.h
soapcpp2: using both options -C and -S omits client/server code

** The gSOAP code generator for C and C++, soapcpp2 release 2.8.97
** Copyright (C) 2000-2020, Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The soapcpp2 tool and its generated software are released under the GPL.
** ----------------------------------------------------------------------------
** A commercial use license is available from Genivia Inc., contact@genivia.com
** ----------------------------------------------------------------------------

Saving wsdlStub.h annotated copy of the source interface header file
Saving wsdlH.h serialization functions to #include in projects
Saving xmime.nsmap namespace mapping table
Saving wsdlC.cpp serialization functions

Compilation successful

    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP wsdlC.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP wsdl2h.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP wsdl.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP wadl.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP schema.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP soap.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP mime.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP wsp.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP bpel.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP types.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP service.cpp
    gcc -c  -g -I.. -I../plugin  -DWITH_FLEX -DWITH_OPENSSL -DWITH_GZIP ../stdsoap2.cpp

**"../stdsoap2.cpp", line 5154.11: 1540-0274 (S) The name lookup for "tmpbuf" did not find a declaration.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.**

Please share any info you have any

Thanks
Dharma

Discussion

  • Dharma Sanassy

    Dharma Sanassy - 2020-02-14

    I am attaching two files stdsoap2.cpp and stdsoap2.h for review on declaration tmpbuf

     
  • Robert van Engelen

    This change to stdsoap2.cpp around line 5154 should fix this compilation error:

    #if (!defined(_AIX43) && !defined(TRU64) && !defined(HP_UX)) || !defined(HAVE_GETHOSTBYNAME_R)
    #if (!defined(__GLIBC__) || !defined(_GNU_SOURCE) || (!_GNU_SOURCE && !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__ANDROID__) || defined(FREEBSD) || defined(__FreeBSD__)) && defined(HAVE_GETHOSTBYNAME_R)
          if (tmpbuf && tmpbuf != soap->tmpbuf)
            SOAP_FREE(soap, tmpbuf);
    #endif
    #endif
    
     
  • Robert van Engelen

    • status: open --> pending-fixed
    • assigned_to: Robert van Engelen
     
  • Robert van Engelen

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB