caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
@ 2003-11-08 11:47 Mikael Brockman
  2003-11-08 12:08 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Brockman @ 2003-11-08 11:47 UTC (permalink / raw)
  To: caml-list; +Cc: rich

I'm using Apache 1.3.29, mod_caml 1.0.0, and O'Caml 3.07+2, and
getting this error on startup of Apache:

  Syntax error on line 59 of /etc/apache/conf/apache.conf: Cannot load
    /etc/apache/modules/mod_caml.so into server:
    /etc/apache/modules/mod_caml.so: undefined symbol: caml_mutex_new

Line 59 is the call to LoadModule for mod_caml.so.

mod_caml worked with O'Caml 3.06, but I upgraded to 3.07+2 to avoid
needing to add CamlLoad lines and restart Apache for every new module
I want to link to.  I believe I have recompiled all O'Caml modules on
my system.

--
Mikael Brockman
<phubuh@phubuh.org>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

* [Caml-list] Re: mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
  2003-11-08 11:47 [Caml-list] mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new Mikael Brockman
@ 2003-11-08 12:08 ` Richard Jones
  2003-11-08 12:29   ` Mikael Brockman
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Jones @ 2003-11-08 12:08 UTC (permalink / raw)
  To: Mikael Brockman; +Cc: caml-list

On Sat, Nov 08, 2003 at 12:47:18PM +0100, Mikael Brockman wrote:
> I'm using Apache 1.3.29, mod_caml 1.0.0, and O'Caml 3.07+2, and
> getting this error on startup of Apache:
> 
>   Syntax error on line 59 of /etc/apache/conf/apache.conf: Cannot load
>     /etc/apache/modules/mod_caml.so into server:
>     /etc/apache/modules/mod_caml.so: undefined symbol: caml_mutex_new
> 
> Line 59 is the call to LoadModule for mod_caml.so.

Do you know what library contains this symbol? I'm using OCaml 3.07
from Debian/unstable, and my libcamlrun.a doesn't contain this
symbol. Are you using any non-standard OCaml libraries?

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles,
RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

* Re: [Caml-list] Re: mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
  2003-11-08 12:08 ` [Caml-list] " Richard Jones
@ 2003-11-08 12:29   ` Mikael Brockman
  2003-11-08 12:54     ` Richard Jones
  2003-11-08 17:57     ` Benjamin Geer
  0 siblings, 2 replies; 7+ messages in thread
From: Mikael Brockman @ 2003-11-08 12:29 UTC (permalink / raw)
  To: caml-list

Richard Jones <rich@annexia.org> writes:

> On Sat, Nov 08, 2003 at 12:47:18PM +0100, Mikael Brockman wrote:
> > I'm using Apache 1.3.29, mod_caml 1.0.0, and O'Caml 3.07+2, and
> > getting this error on startup of Apache:
> > 
> >   Syntax error on line 59 of /etc/apache/conf/apache.conf: Cannot load
> >     /etc/apache/modules/mod_caml.so into server:
> >     /etc/apache/modules/mod_caml.so: undefined symbol: caml_mutex_new
> > 
> > Line 59 is the call to LoadModule for mod_caml.so.
> 
> Do you know what library contains this symbol? I'm using OCaml 3.07
> from Debian/unstable, and my libcamlrun.a doesn't contain this
> symbol. Are you using any non-standard OCaml libraries?
> 
> Rich.
> 
  $ find /usr/lib/ocaml/ -name "*.cm[ioa]" | xargs grep "caml_mutex_new"
  Binary file /usr/lib/ocaml/threads/threads.cma matches
  Binary file /usr/lib/ocaml/site-packages/camltemplate/camltemplate.cma matches

So I suppose threads.cma exports it, and CamlTemplate tries to import
it, but fails.

--
Mikael Brockman
<phubuh@phubuh.org>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

* Re: [Caml-list] Re: mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
  2003-11-08 12:29   ` Mikael Brockman
@ 2003-11-08 12:54     ` Richard Jones
  2003-11-08 13:25       ` Mikael Brockman
  2003-11-08 17:57     ` Benjamin Geer
  1 sibling, 1 reply; 7+ messages in thread
From: Richard Jones @ 2003-11-08 12:54 UTC (permalink / raw)
  Cc: caml-list

On Sat, Nov 08, 2003 at 01:29:07PM +0100, Mikael Brockman wrote:
> So I suppose threads.cma exports it, and CamlTemplate tries to import
> it, but fails.

Mmmmm. Are you using threads? Probably you shouldn't be.

You could try adding threads.cma to ALL_CMAS in the Makefile, but I'm
not sure that the results will be well-defined.

Or if you're not using CamlTemplate, then disable it in Makefile.config.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
 All new technology is irrelevant until it is taken up by the public.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

* Re: [Caml-list] Re: mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
  2003-11-08 12:54     ` Richard Jones
@ 2003-11-08 13:25       ` Mikael Brockman
  2003-11-08 13:40         ` Richard Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Brockman @ 2003-11-08 13:25 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list

Richard Jones <rich@annexia.org> writes:

> On Sat, Nov 08, 2003 at 01:29:07PM +0100, Mikael Brockman wrote:
> > So I suppose threads.cma exports it, and CamlTemplate tries to import
> > it, but fails.
> 
> Mmmmm. Are you using threads? Probably you shouldn't be.

Nope, unless mod_caml does.

> You could try adding threads.cma to ALL_CMAS in the Makefile, but I'm
> not sure that the results will be well-defined.

I was about to try this, but decided to nuke my mod_caml build
directory and start fresh, instead.  I had to add

  include Makefile.config

to makefile (not Makefile) to get $(APACHELIBDIR) and the other
configuration variables, but Apache can link this fresh mod_caml
perfectly.  I guess I had some old compiled cruft that was built for
O'Caml 3.06 laying around. :-)

> Or if you're not using CamlTemplate, then disable it in Makefile.config.

Ah, I wanted to ask about that.  Does Cgi.Template use CamlTemplate?
The documentation for CamlTemplate uses ${...} for variable
interpolation, but Cgi.Template uses ::...::.  OTOH, mod_caml uses
CamlTemplate if it is available.

By the way, I love mod_caml.  I'm using it to write a Wiki engine that
will hopefully be used to serve a Wiki about O'Caml.  My only
complaint so far is that the build process needs more polishing. :-)

--
Mikael Brockman
<phubuh@phubuh.org>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

* Re: [Caml-list] Re: mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
  2003-11-08 13:25       ` Mikael Brockman
@ 2003-11-08 13:40         ` Richard Jones
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Jones @ 2003-11-08 13:40 UTC (permalink / raw)
  To: Mikael Brockman; +Cc: caml-list

On Sat, Nov 08, 2003 at 02:25:47PM +0100, Mikael Brockman wrote:
> Richard Jones <rich@annexia.org> writes:
> 
> > On Sat, Nov 08, 2003 at 01:29:07PM +0100, Mikael Brockman wrote:
> > > So I suppose threads.cma exports it, and CamlTemplate tries to import
> > > it, but fails.
> > 
> > Mmmmm. Are you using threads? Probably you shouldn't be.
> 
> Nope, unless mod_caml does.
> 
> > You could try adding threads.cma to ALL_CMAS in the Makefile, but I'm
> > not sure that the results will be well-defined.
> 
> I was about to try this, but decided to nuke my mod_caml build
> directory and start fresh, instead.  I had to add
> 
>   include Makefile.config
> 
> to makefile (not Makefile) to get $(APACHELIBDIR) and the other
> configuration variables,

Ah, I wouldn't use the autoconf configuration. It's out of date
(indeed, I've temporarily removed it from the CVS version).

Stick with the basic Makefile and the instructions in INSTALL.

> but Apache can link this fresh mod_caml
> perfectly.  I guess I had some old compiled cruft that was built for
> O'Caml 3.06 laying around. :-)
> 
> > Or if you're not using CamlTemplate, then disable it in Makefile.config.
> 
> Ah, I wanted to ask about that.  Does Cgi.Template use CamlTemplate?

No.

> The documentation for CamlTemplate uses ${...} for variable
> interpolation, but Cgi.Template uses ::...::.  OTOH, mod_caml uses
> CamlTemplate if it is available.

mod_caml links with CamlTemplate if it's available, so it's there for
you to use. CamlTemplate and mod_caml's Cgi.Template are two different
templating systems, and you should use whichever suits your style
best.

> By the way, I love mod_caml.  I'm using it to write a Wiki engine that
> will hopefully be used to serve a Wiki about O'Caml.  My only
> complaint so far is that the build process needs more polishing. :-)

Excellent! Agreed. We'll have autoconf working at some point.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
'There is a joke about American engineers and French engineers. The
American team brings a prototype to the French team. The French team's
response is: "Well, it works fine in practice; but how will it hold up
in theory?"'

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

* Re: [Caml-list] Re: mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new
  2003-11-08 12:29   ` Mikael Brockman
  2003-11-08 12:54     ` Richard Jones
@ 2003-11-08 17:57     ` Benjamin Geer
  1 sibling, 0 replies; 7+ messages in thread
From: Benjamin Geer @ 2003-11-08 17:57 UTC (permalink / raw)
  To: Mikael Brockman; +Cc: caml-list

Mikael Brockman wrote:
>   $ find /usr/lib/ocaml/ -name "*.cm[ioa]" | xargs grep "caml_mutex_new"
>   Binary file /usr/lib/ocaml/threads/threads.cma matches
>   Binary file /usr/lib/ocaml/site-packages/camltemplate/camltemplate.cma matches
> 
> So I suppose threads.cma exports it, and CamlTemplate tries to import
> it, but fails.

Did you compile CamlTemplate with thread support (by changing its 
Makefile.config)?  (If so, it won't work with mod_caml.)  If not, let me 
know off-list and I'll try to reproduce your problem.

Ben

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


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

end of thread, other threads:[~2003-11-08 17:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-08 11:47 [Caml-list] mod_caml 1.0.0 and O'Caml 3.07+2 - problem with caml_mutex_new Mikael Brockman
2003-11-08 12:08 ` [Caml-list] " Richard Jones
2003-11-08 12:29   ` Mikael Brockman
2003-11-08 12:54     ` Richard Jones
2003-11-08 13:25       ` Mikael Brockman
2003-11-08 13:40         ` Richard Jones
2003-11-08 17:57     ` Benjamin Geer

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).