You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Igor Cicimov <ic...@gmail.com> on 2009/08/06 05:29:20 UTC

[users@httpd] mod_proxy_html can't install

Hi all,

I'm trying to install mod_proxy_htnl in apache2.2.11 on Solaris 9 but I'm
getting the following error:

# /usr/local/apache2/bin/apxs -c -I /usr/include/libxml2 -i -a
mod_proxy_html.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DSOLARIS2=9 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
-g -O2 -pthreads -I/usr/local/apache2/include
-I/usr/local/apache2/include   -I/usr/local/apache2/include
-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:802: error: `XML_PARSE_RECOVER' undeclared (first use in
this function)
mod_proxy_html.c:802: error: (Each undeclared identifier is reported only
once
mod_proxy_html.c:802: error: for each function it appears in.)
mod_proxy_html.c:802: error: `XML_PARSE_NONET' undeclared (first use in this
function)
mod_proxy_html.c:803: error: `XML_PARSE_NOBLANKS' undeclared (first use in
this function)
mod_proxy_html.c:803: error: `XML_PARSE_NOERROR' undeclared (first use in
this function)
mod_proxy_html.c:803: error: `XML_PARSE_NOWARNING' undeclared (first use in
this function)
apxs:Error: Command failed with rc=65536


I have tried with mod_proxy_html version 2.5.1. Is this problem with the
module or apache?

Thanks for any help.

Igor

Re: [users@httpd] mod_proxy_html can't install

Posted by Nick Kew <ni...@webthing.com>.
Eric Covener wrote:
> On Thu, Aug 6, 2009 at 9:05 AM, Nick Kew<ni...@webthing.com> wrote:
>> Eric Covener wrote:
>>> On Thu, Aug 6, 2009 at 6:43 AM, Nick Kew<ni...@webthing.com> wrote:
>>>
>>>> You can compile mod_proxy_html against it with a simple #define.
>>>> See the comment in the source code, at about line 800 or 801
>>>> in the version that bombs out at 802.
>>> FWIW I tried that -D and it still comlained about the three HTTP_* macros.
>>>
>> Huh?  HTTP_ macros?  Whare do they come from?
> 
> Doh, HTML_* (HTML_INVALID, HTML_DEPRECATED, HTML_REQUIRED)
> 
> 
Aha, I see.  They're new in mod_proxy_html 3.0, which is several
years later than the XML_ macros with the old-libxml2 support.

I guess it's time to declare very-old-libxml2 unsupported.

I also recollect there was a serious libxml2 bug that affected
mod_proxy_html and could cause it to spin and eat memory in
comment parsing.  It was fixed in IIRC libxml2-2.5.10,
so supporting earlier versions is really a Bad Thing.

Thanks for bringing that to my attention!
Guess I should release 3.1.  It's been ready and just
awaiting docs updates for a long time!

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy_html can't install

Posted by Eric Covener <co...@gmail.com>.
On Thu, Aug 6, 2009 at 9:05 AM, Nick Kew<ni...@webthing.com> wrote:
> Eric Covener wrote:
>>
>> On Thu, Aug 6, 2009 at 6:43 AM, Nick Kew<ni...@webthing.com> wrote:
>>
>>> You can compile mod_proxy_html against it with a simple #define.
>>> See the comment in the source code, at about line 800 or 801
>>> in the version that bombs out at 802.
>>
>> FWIW I tried that -D and it still comlained about the three HTTP_* macros.
>>
> Huh?  HTTP_ macros?  Whare do they come from?

Doh, HTML_* (HTML_INVALID, HTML_DEPRECATED, HTML_REQUIRED)


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy_html can't install

Posted by Nick Kew <ni...@webthing.com>.
Eric Covener wrote:
> On Thu, Aug 6, 2009 at 6:43 AM, Nick Kew<ni...@webthing.com> wrote:
> 
>> You can compile mod_proxy_html against it with a simple #define.
>> See the comment in the source code, at about line 800 or 801
>> in the version that bombs out at 802.
> 
> FWIW I tried that -D and it still comlained about the three HTTP_* macros.
> 
Huh?  HTTP_ macros?  Whare do they come from?

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy_html can't install

Posted by Eric Covener <co...@gmail.com>.
On Thu, Aug 6, 2009 at 6:43 AM, Nick Kew<ni...@webthing.com> wrote:

> You can compile mod_proxy_html against it with a simple #define.
> See the comment in the source code, at about line 800 or 801
> in the version that bombs out at 802.

FWIW I tried that -D and it still comlained about the three HTTP_* macros.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy_html can't install

Posted by Nick Kew <ni...@webthing.com>.
On 6 Aug 2009, at 04:29, Igor Cicimov wrote:

> Hi all,
>
> I'm trying to install mod_proxy_htnl in apache2.2.11 on Solaris 9  
> but I'm getting the following error:

You have a very old libxml2 version!

You can compile mod_proxy_html against it with a simple #define.
See the comment in the source code, at about line 800 or 801
in the version that bombs out at 802.

I guess your underlying issue is an ancient Solaris version.
I expect you'd find life easier with at least Solaris 10, unless
you're locked into old apps that can't be upgraded.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy_html can't install

Posted by Igor Cicimov <ic...@gmail.com>.
Ok it worked with the new libxml2 ... Thanks again Eric

Igor

On Thu, Aug 6, 2009 at 2:07 PM, Igor Cicimov <ic...@gmail.com> wrote:

> Thanks Eric I will sure try that. I have the module installed on Solaris 10
> with no problems but faild in Solaris 9...
>
> I will post again after libxml2 install.
>
> Cheers,
>
> Igor
>
>
>
> On Thu, Aug 6, 2009 at 1:49 PM, Eric Covener <co...@gmail.com> wrote:
>
>> On Wed, Aug 5, 2009 at 11:29 PM, Igor Cicimov<ic...@gmail.com> wrote:
>> > mod_proxy_html.c:802: error: `XML_PARSE_RECOVER' undeclared (first use
>> in
>> > this function)
>>
>> Try installing the latest libxml2 from blastwave (pkg-get, pkgtool,
>> whatever) and point to /opt/csw/include/libxml2 instead of
>> /usr/lib/libxml2 (worked for me on Solaris 9, failed for updating csw
>> version)
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] mod_proxy_html can't install

Posted by Igor Cicimov <ic...@gmail.com>.
Thanks Eric I will sure try that. I have the module installed on Solaris 10
with no problems but faild in Solaris 9...

I will post again after libxml2 install.

Cheers,

Igor


On Thu, Aug 6, 2009 at 1:49 PM, Eric Covener <co...@gmail.com> wrote:

> On Wed, Aug 5, 2009 at 11:29 PM, Igor Cicimov<ic...@gmail.com> wrote:
> > mod_proxy_html.c:802: error: `XML_PARSE_RECOVER' undeclared (first use in
> > this function)
>
> Try installing the latest libxml2 from blastwave (pkg-get, pkgtool,
> whatever) and point to /opt/csw/include/libxml2 instead of
> /usr/lib/libxml2 (worked for me on Solaris 9, failed for updating csw
> version)
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] mod_proxy_html can't install

Posted by Eric Covener <co...@gmail.com>.
On Wed, Aug 5, 2009 at 11:29 PM, Igor Cicimov<ic...@gmail.com> wrote:
> mod_proxy_html.c:802: error: `XML_PARSE_RECOVER' undeclared (first use in
> this function)

Try installing the latest libxml2 from blastwave (pkg-get, pkgtool,
whatever) and point to /opt/csw/include/libxml2 instead of
/usr/lib/libxml2 (worked for me on Solaris 9, failed for updating csw
version)

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org