Avatar of TKD
TKD

asked on 

mipsel-uclibc-gcc compiles gSOAP project without finding MB_CUR_MAX

Hi,
I compile the webserver sample in gSOAP project with cross-compiler mipsel-uclibc-gcc. The mipsel-uclibc-gcc compiler shows me the error message:
------------------------------------------------------------
../../stdsoap2.c: In function `soap_string_out':
../../stdsoap2.c:8413: warning: implicit declaration of function `mbtowc'
../../stdsoap2.c:8413: `MB_CUR_MAX' undeclared (first use in this function)
../../stdsoap2.c:8413: (Each undeclared identifier is reported only once
../../stdsoap2.c:8413: for each function it appears in.)
../../stdsoap2.c: In function `soap_string_in':
../../stdsoap2.c:8847: warning: implicit declaration of function `wctomb'
../../stdsoap2.c:8848: `MB_CUR_MAX' undeclared (first use in this function)
make: *** [tr069] Error 1
------------------------------------------------------------
I confirm that the stdsoap2.c includes stdlib.h. I can find that `MB_CUR_MAX' is in  /opt/brcm/hndtools-mipsel-uclibc-3.2.3/include/stdlib.h, and I also add the include path [/opt/brcm/hndtools-mipsel-uclibc-3.2.3/include/ ].  
But why the mipsel-uclibc-gcc compiler can't find that?

GSOAP=../../bin/soapcpp2
SOAPH=../../stdsoap2.h
SOAPC=../../stdsoap2.c
CC=mipsel-uclibc-gcc
#CC=gcc
LIBS=-lz -lrt -ldl -lssl -lcrypto -lsqlite3
COFLAGS=-O2
CWFLAGS=-Wall
CIFLAGS=-I../.. -I../../plugin -I/opt/brcm/hndtools-mipsel-uclibc-3.2.3/include/ -I/usr/local/include/ -I. -L.
CMFLAGS=-DDEBUG -DWITH_OPENSSL -DWITH_COOKIES
CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS) -D wchar_t="unsigned int"
all: tr069
tr069:          tr069.c tr069.h logging.o httpget.o httpform.o httpda.o md5evp.o  $(SOAPH) $(SOAPC)
                $(GSOAP) -c -I../../import tr069.h
                $(CC) $(CFLAGS) -o tr069 tr069.c logging.o httpget.o httpform.o httpda.o md5evp.o soapC.c soapClient.c soapServer.c $(SOAPC) $(LIBS)
logging.o:      ../../plugin/logging.h ../../plugin/logging.c
                $(CC) $(CFLAGS) -c ../../plugin/logging.c
httpget.o:      ../../plugin/httpget.h ../../plugin/httpget.c
                $(CC) $(CFLAGS) -c ../../plugin/httpget.c
httpform.o:     ../../plugin/httpform.h ../../plugin/httpform.c
                $(CC) $(CFLAGS) -c ../../plugin/httpform.c
httpda.o:       ../../plugin/httpda.h ../../plugin/httpda.c
                $(CC) $(CFLAGS) -c ../../plugin/httpda.c
md5evp.o:       ../../plugin/md5evp.h ../../plugin/md5evp.c
                $(CC) $(CFLAGS) -c ../../plugin/md5evp.c
clean:
                rm -f *.o soapH.h soapStub.h soapC.cpp soapC.c soapClient.cpp soapClient.c soapServer.cpp soapServer.c soap*Proxy.h
distclean:
                rm -f *.o *.wsdl *.xsd *.xml *.nsmap *.log soapH.h soapStub.h soapC.cpp soapC.c soapClient.cpp soapClient.c soapServer.cpp soapServer.c soapClientLib.c soapClientLib.cpp soapServerLib.c soapServerLib.cpp soap*Proxy.h tr069

Open in new window

Web Languages and StandardsC

Avatar of undefined
Last Comment
TKD

8/22/2022 - Mon