Advertisement

05.22.2008 at 02:03AM PDT, ID: 23423686
[x]
Attachment Details

[gSOAP] Use HTTP Digest Authentication with "undefined reference to `md5_handler'"

Asked by TKD in SOAP, C Programming Language

Tags: gSOAP, C

Hi,
I add HTTP Digest Authentication Plug-in into webserver sample code. At first , I insert the following code into Makefile
--------------------------------------------------------------------------------------------------------------------
webserver:      webserver.h webserver.c logging.o httpget.o httpform.o httpda.o threads.o options.o $(SOAPH) $(SOAPC)
                $(GSOAP) -c webserver.h
                $(CC) $(CFLAGS) -o webserver webserver.c logging.o httpget.o httpform.o httpda.o threads.o options.o soapC.c soapClient.c soapServer.c $(SOAPC) $(LIBS)
...
httpda.o:       ../../plugin/httpda.h ../../plugin/httpda.c md5evp.o
                $(CC) $(CFLAGS) -c ../../plugin/httpda.c md5evp.o
md5evp.o:       ../../plugin/md5evp.h ../../plugin/md5evp.c
                $(CC) $(CFLAGS) -c ../../plugin/md5evp.c
...
--------------------------------------------------------------------------------------------------------------------
When I 'make', it tells me
--------------------------------------------------------------------------------------------------------------------
httpda.o: In function `http_da_disconnect':
httpda.c:(.text+0x138): undefined reference to `md5_handler'
httpda.o: In function `http_da_preparerecv':
httpda.c:(.text+0x1c4): undefined reference to `md5_handler'
httpda.o: In function `http_da_preparesend':
httpda.c:(.text+0x254): undefined reference to `md5_handler'
httpda.o: In function `http_da_prepareinit':
httpda.c:(.text+0x32a): undefined reference to `md5_handler'
httpda.o: In function `http_da_calc_response':
httpda.c:(.text+0x419): undefined reference to `md5_handler'
httpda.o:httpda.c:(.text+0x440): more undefined references to `md5_handler' follow
--------------------------------------------------------------------------------------------------------------------
I can't figure out what's wrong.
Could someone tell me how to solve it? Thank you.

Start Free Trial
 
Keywords: [gSOAP] Use HTTP Digest Authentic…
 
Loading Advertisement...
 
[+][-]05.22.2008 at 02:53AM PDT, ID: 21622297

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: SOAP, C Programming Language
Tags: gSOAP, C
Sign Up Now!
Solution Provided By: evilrix
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.22.2008 at 06:23PM PDT, ID: 21628823

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.

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