caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Problem building mod_caml with Apache2
@ 2007-03-28  0:48 Joel Reymont
  2007-03-28 11:37 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Reymont @ 2007-03-28  0:48 UTC (permalink / raw)
  To: Caml List

Folks,

I'm getting the following error while building mod_caml against Apache2:

gcc -I/usr/local/lib/ocaml -I/opt/local/apache2/include     -c -o  
apache_c.o apache_c.c
apache_c.c: In function 'mod_caml_connection_ap_auth_type':
apache_c.c:237: error: 'struct conn_rec' has no member named  
'ap_auth_type'
apache_c.c:237: error: 'struct conn_rec' has no member named  
'ap_auth_type'
apache_c.c: In function 'mod_caml_connection_user':
apache_c.c:239: error: 'struct conn_rec' has no member named 'user'
apache_c.c:239: error: 'struct conn_rec' has no member named 'user'
make: *** [apache_c.o] Error 1

Googling reveals that ap_auth_type is part of the Apache 1.3 API.

Am I missing something?

N.B.: The Apache2/PCRE bug that the Wiki refers to has been fixed.

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Problem building mod_caml with Apache2
  2007-03-28  0:48 Problem building mod_caml with Apache2 Joel Reymont
@ 2007-03-28 11:37 ` Richard Jones
  2007-03-28 11:40   ` Joel Reymont
  2007-03-29 10:13   ` Joel Reymont
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Jones @ 2007-03-28 11:37 UTC (permalink / raw)
  To: Joel Reymont; +Cc: caml-list

On Wed, Mar 28, 2007 at 01:48:46AM +0100, Joel Reymont wrote:
> Folks,
> 
> I'm getting the following error while building mod_caml against Apache2:
> 
> gcc -I/usr/local/lib/ocaml -I/opt/local/apache2/include     -c -o  
> apache_c.o apache_c.c
> apache_c.c: In function 'mod_caml_connection_ap_auth_type':
> apache_c.c:237: error: 'struct conn_rec' has no member named  
> 'ap_auth_type'
> apache_c.c:237: error: 'struct conn_rec' has no member named  
> 'ap_auth_type'
> apache_c.c: In function 'mod_caml_connection_user':
> apache_c.c:239: error: 'struct conn_rec' has no member named 'user'
> apache_c.c:239: error: 'struct conn_rec' has no member named 'user'
> make: *** [apache_c.o] Error 1

Which version of Apache are you using?  Also have you made the
appropriate changes to Makefile.config (setting APACHE_MAJOR, APXS,
etc.)?

To be honest I only ever use Apache 1.3.

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Problem building mod_caml with Apache2
  2007-03-28 11:37 ` [Caml-list] " Richard Jones
@ 2007-03-28 11:40   ` Joel Reymont
  2007-03-28 11:47     ` Richard Jones
  2007-03-29 10:13   ` Joel Reymont
  1 sibling, 1 reply; 5+ messages in thread
From: Joel Reymont @ 2007-03-28 11:40 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list


On Mar 28, 2007, at 12:37 PM, Richard Jones wrote:

> Which version of Apache are you using?  Also have you made the
> appropriate changes to Makefile.config (setting APACHE_MAJOR, APXS,
> etc.)?

APACHE_MAJOR is 2, I think this is the default. apxs in my path.

It seems like some extra #ifdef-s are needed to use Apache2 structures.

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Problem building mod_caml with Apache2
  2007-03-28 11:40   ` Joel Reymont
@ 2007-03-28 11:47     ` Richard Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Jones @ 2007-03-28 11:47 UTC (permalink / raw)
  To: Joel Reymont; +Cc: caml-list

On Wed, Mar 28, 2007 at 12:40:30PM +0100, Joel Reymont wrote:
> 
> On Mar 28, 2007, at 12:37 PM, Richard Jones wrote:
> 
> >Which version of Apache are you using?  Also have you made the
> >appropriate changes to Makefile.config (setting APACHE_MAJOR, APXS,
> >etc.)?
> 
> APACHE_MAJOR is 2, I think this is the default. apxs in my path.
> 
> It seems like some extra #ifdef-s are needed to use Apache2 structures.

Patches welcome.  I only compiled it on a fairly ancient Apache
2.0.something.

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Problem building mod_caml with Apache2
  2007-03-28 11:37 ` [Caml-list] " Richard Jones
  2007-03-28 11:40   ` Joel Reymont
@ 2007-03-29 10:13   ` Joel Reymont
  1 sibling, 0 replies; 5+ messages in thread
From: Joel Reymont @ 2007-03-29 10:13 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list

The issue is that ap_auth_type and user were moved from conn_rec to  
request_rec in Apache2.

I'm trying to figure out how to fix this.

On Mar 28, 2007, at 12:37 PM, Richard Jones wrote:

> Which version of Apache are you using?  Also have you made the
> appropriate changes to Makefile.config (setting APACHE_MAJOR, APXS,
> etc.)?
>
> To be honest I only ever use Apache 1.3.

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-29 10:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-28  0:48 Problem building mod_caml with Apache2 Joel Reymont
2007-03-28 11:37 ` [Caml-list] " Richard Jones
2007-03-28 11:40   ` Joel Reymont
2007-03-28 11:47     ` Richard Jones
2007-03-29 10:13   ` Joel Reymont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).