caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Interface mismatch on build
@ 2006-07-14 15:52 Jonathan Hayward http://JonathansCorner.com
  2006-07-14 16:10 ` [Caml-list] " Jonathan Roewen
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Hayward http://JonathansCorner.com @ 2006-07-14 15:52 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 4276 bytes --]

Error while loading "/usr/lib/ocaml/3.08.3/camlp4/pa_o.cmo": interface
mismatch on MLast. (Full configure and make all output below.)

I'm still trying to get ocamlnet2 to build, or at least netcgi--if I can't
get ocamlnet/netcgi to work with, is there a plainer alternative to netcgi
that will let me access CGI values and make a slightly older-style CGI
script?

I'd like to do it properly and get ocamlnet to work, but if there's
something older and plainer, I'll take that.

root@inner-sanctum:~/download/lib-ocamlnet2/code# ./configure
Welcome to Ocamlnet version 2.2test8
Checking for findlib... found
Checking multi-threading support... posix (ok)
Checking for PCRE... found
Checking operating system... Linux
    This OS supports passing credentials over Unix domain sockets
    Building rpc-auth-local
Apache mod connector... disabled (apxs or apache not found)

Effective options:
    -disable-gtk
    -disable-gtk2
    -disable-tcl
    -disable-ssl
    -enable-modcaml
    -without-nethttpd
    -without-rpc-auth-dh
    -bindir /usr/local/bin
    -datadir /usr/local/lib/ocaml/3.08.3/netstring

Writing Makefile.conf

Please check Makefile.conf.

You can now compile Ocamlnet by invoking
   make all
for the bytecode compiler, and optionally by invoking
   make opt
for the native-code compiler (if supported on your architecture).
Finally, a
   make install
will install the package(s).
root@inner-sanctum:~/download/lib-ocamlnet2/code# make all
for pkg in equeue shell netstring rpc-generator rpc pop smtp netclient cgi
netcgi netplex rpc-auth-local; do \
        ( cd src/$pkg && make -f Makefile.pre generate ) || exit; \
        ( cd src/$pkg && make -f Makefile.pre depend ) || exit; \
        ( cd src/$pkg && make all ) || exit; \
done
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[2]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[2]: Nothing to be done for `realgenerate'.
make[2]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[1]: `depend' is up to date.
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/equeue'
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[2]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[2]: Nothing to be done for `realgenerate'.
make[2]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[1]: `depend' is up to date.
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/shell'
make[1]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/netstring'
make[2]: Entering directory
`/home/jonathan/download/lib-ocamlnet2/code/src/netstring'
ocamlfind ocamlc -g   -package "unix pcre" -package camlp4 -syntax camlp4o
-c  netdb.mli
Error while loading "/usr/lib/ocaml/3.08.3/camlp4/pa_o.cmo": interface
mismatch on MLast.
Preprocessor error
make[2]: *** [netdb.cmi] Error 2
make[2]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/netstring'
make[1]: *** [generate] Error 2
make[1]: Leaving directory
`/home/jonathan/download/lib-ocamlnet2/code/src/netstring'
make: *** [all] Error 2


-- 
++ Jonathan Hayward, jonathan.hayward@pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

** If you'd like a Google Mail (gmail.com) account, please tell me!

[-- Attachment #2: Type: text/html, Size: 5150 bytes --]

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

* Re: [Caml-list] Interface mismatch on build
  2006-07-14 15:52 Interface mismatch on build Jonathan Hayward http://JonathansCorner.com
@ 2006-07-14 16:10 ` Jonathan Roewen
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Roewen @ 2006-07-14 16:10 UTC (permalink / raw)
  To: Jonathan Hayward http://JonathansCorner.com; +Cc: caml-list

> I'm still trying to get ocamlnet2 to build, or at least netcgi--if I can't
> get ocamlnet/netcgi to work with, is there a plainer alternative to netcgi
> that will let me access CGI values and make a slightly older-style CGI
> script?

You can try http://www.lri.fr/~filliatr/ftp/ocaml/cgi/

For do it yourself, you can grab env parameters (such as query string,
cookies, etc) using Sys.getenv, or read post data from stdin (after
getting the content-length header). Just a matter of writing the
parsing stuff yourself (which these libs do for you, and a little
more).


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

end of thread, other threads:[~2006-07-14 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-14 15:52 Interface mismatch on build Jonathan Hayward http://JonathansCorner.com
2006-07-14 16:10 ` [Caml-list] " Jonathan Roewen

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