Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help to install mod_proxy_html for reverse proxy

Status
Not open for further replies.

shanekennedy

IS-IT--Management
Joined
Jul 20, 2004
Messages
3
Location
US
when trying to compile mod_proxy_html.c, i receive complaints about XML_PARSE functions. from what i can find, these functions were in a xmlparse.h file which went AWOL from the expat package a couple of years ago. has anyone successfully installed mod_proxy_html? below are package version i have & errors from compile:

httpd-2.0.46-32.ent
httpd-devel-2.0.46-32.ent
expat-1.95.5-6
expat-devel-1.95.5-6
libxml2-2.5.10-5
libxml2-devel-2.5.10-5



# apxs -c -I/usr/include/libxml2 -i mod_proxy_html.c
/usr/bin/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -march=i386 -mcpu=i686 -DSSL_EXPERIMENTAL_ENGINE -I/usr/kerberos/include -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/libxml2 -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo

mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:752: `XML_PARSE_RECOVER' undeclared (first use in this function)
mod_proxy_html.c:752: (Each undeclared identifier is reported only once
mod_proxy_html.c:752: for each function it appears in.)
mod_proxy_html.c:752: `XML_PARSE_NONET' undeclared (first use in this function)
mod_proxy_html.c:753: `XML_PARSE_NOBLANKS' undeclared (first use in this function)
mod_proxy_html.c:753: `XML_PARSE_NOERROR' undeclared (first use in this function)
mod_proxy_html.c:753: `XML_PARSE_NOWARNING' undeclared (first use in this function)
apxs:Error: Command failed with rc=65536
 
taking a stab at this... I feel your pain because I just went through the same thing. unfortunately my notes are missing...

If I remember correctly you need an extra "/" ... but I may be wrong.

I do remember having to put an extra character in the string that is not in the documentation.
 
icvanstra,

thanks for your reply
do you remember where the slash or extra character was needed
i tried adding a slash to the end of the libxml2 path
went from:
apxs -c -I/usr/include/libxml2 -i mod_proxy_html.c
to:
apxs -c -I/usr/include/libxml2/ -i mod_proxy_html.c

unfortunetly this did no help


i believe the HTMLparser.h is being found under /usr/include/libxml2, but the .h file doesn't include the XML_PARSE_XXX functions
 
i solved the problem be adding the following definition to the mod_proxy_html.c file:

#define XML_PARSE_NOWARNING 64
#define XML_PARSE_NOERROR 32
#define XML_PARSE_NOBLANKS 256
#define XML_PARSE_NONET 2048
#define XML_PARSE_RECOVER 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top