Re: Getting mod_caml and perl4caml into Debian
On Sat, Nov 08, 2003 at 12:05:35PM +0000, Richard Jones wrote:
> Similarly, I've updated the mod_caml packages, and included diffs.
>
> http://www.annexia.org/tmp/modcaml-src/
Ok, i am having a look currently.
There are still a few warning in the build process, but i guess these
are harmless. Still it would be nice to solve them :
ocamldoc -html -stars -sort -I +pcre -I /usr/lib/ocaml/3.07/postgres -d html
apache.ml cgi.ml dbi.ml dbi_mysql.ml dbi_perl.ml dbi_postgres.ml
mod_caml.ml registry.ml apache.mli cgi.mli dbi.mli dbi_mysql.mli dbi_perl.mli
dbi_postgres.mli mod_caml.mli registry.mli
File "cgi.ml", line 308, characters 5-35:
Warning: this expression should have type unit.
File "cgi.ml", line 476, characters 1-16:
Warning: this expression should have type unit.
File "dbi_mysql.ml", line 95, characters 3-15:
Unbound value Mysql.escape
File "dbi_perl.ml", line 23, characters 0-9:
Unbound module Perl
2 error(s) encountered
make[1]: [html/index.html] Erreur 1 (ignorée)
Mmm, does modcaml depend on perl4caml ?
And :
ocamlc -output-obj -g -w s -I +pcre -I /usr/lib/ocaml/3.07/postgres
dynlink.cma str.cma pcre.cma postgres.cma dbi.cmo dbi_postgres.cmo
apache.cmo mod_caml_config.cmo mod_caml.cmo cgi.cmo -o mod_caml.o
mod_caml.c: Dans la fonction « caml_startup »:
mod_caml.c:13313: attention : implicit declaration of function
`caml_startup_code'
However, for perl4caml, it doesn't build with :
gcc -Wall -Wno-unused -I/usr/lib/perl/5.8.2/CORE -c -o perl_c.o
perl_c.c
Dans le fichier inclus à partir de /usr/lib/perl/5.8.2/CORE/perl.h:37,
à partir de perl_c.c:24:
/usr/lib/perl/5.8.2/CORE/config.h:3691:1: attention : «
HAS_GETHOSTBYADDR_R » redéfini
Dans le fichier inclus à partir de /usr/include/caml/misc.h:22,
à partir de /usr/include/caml/alloc.h:20,
à partir de perl_c.c:12:
/usr/include/caml/config.h:72:1: attention : ceci est la localisation
d'une précédente définition
Dans le fichier inclus à partir de /usr/lib/perl/5.8.2/CORE/perl.h:37,
à partir de perl_c.c:24:
/usr/lib/perl/5.8.2/CORE/config.h:3704:1: attention : «
HAS_GETHOSTBYNAME_R » redéfini
Dans le fichier inclus à partir de /usr/include/caml/misc.h:22,
à partir de /usr/include/caml/alloc.h:20,
à partir de perl_c.c:12:
/usr/include/caml/config.h:71:1: attention : ceci est la localisation
d'une précédente définition
In file included from /usr/lib/perl/5.8.2/CORE/op.h:484,
from /usr/lib/perl/5.8.2/CORE/perl.h:2344,
from perl_c.c:24:
/usr/lib/perl/5.8.2/CORE/reentr.h:611: error: field `_crypt_struct' has
incomplete type
make[1]: *** [perl_c.o] Erreur 1
make[1]: Leaving directory `/home/luther/debian/modcaml/perl4caml-0.3.6'
Not sure about this, but maybe a missing build-dependency, or an
incompatible header package or something such. I have upgraded my sid
install this morning.
Also, when installing apache, i get :
Paramétrage de libapache-ocaml (1.0.0-5) ...
dpkg : des problèmes de dépendances empêchent la configuration de
libapache-ocaml-dev :
libapache-ocaml-dev dépend de apache ; cependant :
Paquet apache n'est pas installé.
dpkg : erreur de traitement de libapache-ocaml-dev (--install) :
problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
libapache-ocaml-dev
But then, i have apache2 and not apache installed.
Friendly,
Sven Luther
Reply to: