Advertisement

07.17.2008 at 08:21PM PDT, ID: 23575719
[x]
Attachment Details

mipsel-uclibc-gcc compiles gSOAP project without finding MB_CUR_MAX

Asked by TKD in C Programming Language, SOAP

Tags: gSOAP mipsel-uclibc-gcc, C, Red Hat

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?
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
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
 
Loading Advertisement...
 
[+][-]07.17.2008 at 11:51PM PDT, ID: 22033309

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 11:54PM PDT, ID: 22033320

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:09AM PDT, ID: 22033376

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:12AM PDT, ID: 22033389

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:23AM PDT, ID: 22033434

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:30AM PDT, ID: 22033473

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:30AM PDT, ID: 22033476

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:33AM PDT, ID: 22033488

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:35AM PDT, ID: 22033501

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:38AM PDT, ID: 22033510

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:39AM PDT, ID: 22033518

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:43AM PDT, ID: 22033539

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:46AM PDT, ID: 22033552

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:46AM PDT, ID: 22033553

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:48AM PDT, ID: 22033563

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 12:51AM PDT, ID: 22033577

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 01:07AM PDT, ID: 22033651

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C Programming Language, SOAP
Tags: gSOAP mipsel-uclibc-gcc, C, Red Hat
Sign Up Now!
Solution Provided By: Infinity08
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.18.2008 at 01:08AM PDT, ID: 22033657

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.21.2008 at 07:19PM PDT, ID: 22056081

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 12:54AM PDT, ID: 22057111

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628