Re: For "make doc": -enable-gtk2, but "lablgtk" is used

Gerd Stolpmann <[email protected]> Thu, 05 Nov 2015 10:47:31 +0100
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
--===============1900532451126841741==
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature"; 
	boundary="=-WL1eH0GYDsM/QxgrbUi9"


--=-WL1eH0GYDsM/QxgrbUi9
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

I create the documentation all the time. You need a fully configured
ocamlnet, with all bells and whistles. Which makes sense, because the
docs should be complete.

Gerd

Am Mittwoch, den 04.11.2015, 16:34 +0100 schrieb Oliver Bandel:
> Well,  the main problem was:
>=20
>    ocamlfind: Package `lablgtk' not found
>=20
>=20
> Now I tried with svn-stuff.
>=20
> The configure seems to have different defaults.
> -enable-gtk2 seems not to be necessary.
>=20
> So I did just "./configure".
> Then "make doc"
>=20
> Result:
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ~/tmp/OCamlnet-Docs/trunk/code >make doc
> for pkg in src/*/.; do \
>      test ! -f $pkg/Makefile -o -f $pkg/doc-ignore || \
>          { ( cd $pkg && make -f Makefile.pre generate ) || exit; \
>            ( cd $pkg && make -f Makefile.pre depend ) || exit; \
>            ( cd $pkg && make ocamldoc.dump ) || exit; \
>          }; \
> done
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> make[2]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> sed -e 's/@VERSION@/4.0.4/' \
>      -e 's/@AUTHDHREQS@//' \
>      -e 's/@PREFERRED_CGI_PKG@//' \
>      -e 's/@REGEXP_PROVIDER@/str/' \
>      -e 's/@COMPAT_PCRE_PROVIDER@//' \
>              -e 's/@ZIP_PROVIDER@//' \
>          META.in >META
> make[2]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> ocamlfind ocamldep   *.ml *.mli >depend || { rm -f depend; exit 1; }
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> ocamlfind ocamlc -g  -I ../../src/equeue -I ../../src/netsys -package =
=20
> "unix" -w -3-25 -c  uq_tcl.mli
> File "uq_tcl.mli", line 3, characters 5-11:
> Error: Unbound module Equeue
> ../../Makefile.rules:120: recipe for target 'uq_tcl.cmi' failed
> make[1]: *** [uq_tcl.cmi] Error 2
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl'
> Makefile:40: recipe for target 'doc' failed
> make: *** [doc] Error 2
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
>=20
> Then directly afterwards I compiled the software, before starting =20
> again a "make doc".
> Software builds.
>=20
> Result of "make doc", after is does some work:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> [...]
> ocamlfind ocamlc -g  -I ../../src/netsys -I ../../src/netstring =20
> -package "unix unix"  -w -3-25 -c  nettls_gnutls.ml
> ocamlfind ocamldoc -dump ocamldoc.dump -stars -I ../../src/netsys -I =20
> ../../src/netstring -package "unix unix"  nettls_gnutls_bindings.mli =20
> nettls_nettle_bindings.mli nettls_gnutls.mli || { rm -f ocamldoc.dump; =
=20
> exit 1; }
> Warning: Module type Netsys_crypto_types.DIGESTS not found
> Warning: Module type Netsys_crypto_types.SYMMETRIC_CRYPTO not found
> Warning: Module type Netsys_crypto_types.TLS_PROVIDER not found
> Warning: Module or module type Netsys_crypto_types.TLS_PROVIDER not found
> Warning: Element Netsys_types.memory not found
> Warning: Element Netsys_types not found
> Warning: Element Netsys_types not found
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/nettls-gnutls'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[2]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[2]: Nothing to be done for 'realgenerate'.
> make[2]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[1]: 'depend' is up to date.
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> ocamlfind ocamldoc -dump ocamldoc.dump -stars -I ../../src/netstring =20
> -package "unix"  netunidata.mli || { rm -f ocamldoc.dump; exit 1; }
> Warning: Element Netconversion not found
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> make[2]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> sed -e 's/@VERSION@/4.0.4/' \
>      -e 's/@AUTHDHREQS@//' \
>      -e 's/@PREFERRED_CGI_PKG@//' \
>      -e 's/@REGEXP_PROVIDER@/str/' \
>      -e 's/@COMPAT_PCRE_PROVIDER@//' \
>              -e 's/@ZIP_PROVIDER@//' \
>          META.in >META
> make[2]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> ocamlfind ocamldep   *.ml *.mli >depend || { rm -f depend; exit 1; }
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> make[1]: Entering directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> ocamlfind ocamlc -g  -I ../../src/netstring -package "unix " -w -3-25 =
=20
> -c  netgzip.mli
> File "netgzip.mli", line 5, characters 19-34:
> Error: Unbound module Gzip
> ../../Makefile.rules:120: recipe for target 'netgzip.cmi' failed
> make[1]: *** [netgzip.cmi] Error 2
> make[1]: Leaving directory =20
> '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip'
> Makefile:40: recipe for target 'doc' failed
> make: *** [doc] Error 2
> ~/tmp/OCamlnet-Docs/trunk/code >
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>=20
>=20
> So it's not possible to generate the docs from the svn-stuff, even =20
> though the lib itself can be build.
>=20
> Ciao,
>     Oliver
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> Zitat von Gerd Stolpmann <[email protected]> (Wed, 04 Nov 2015 =20
> 10:56:44 +0100)
>=20
> > Try it with a checked-out version of ocamlnet:
> >
> > svn co https://godirepo.camlcity.org/svn/lib-ocamlnet2/trunk ocamlnet
> >
> > Obviously the file src/equeue-gtk1/doc-ignore is missing in the tarball=
.
> >
> > Gerd
> >
> >
> > Am Freitag, den 30.10.2015, 22:44 +0100 schrieb Oliver Bandel:
> >> Hello,
> >>
> >> my main goal was, to get the documentation as pdf.
> >>
> >> So I tried the target "doc" with "make doc", to see what happens.
> >>
> >> The process failed with a message, that "lablgtk" is unknown.
> >> I tried with "-enable-gtk2" (after using a fresh source dir to be sure
> >> about this problem).
> >>
> >> But "lablgtk" is used anyway for the "make doc" and the stuff fails ag=
ain.
> >>
> >>
> >>
> >> Here is the output from "make doc":
> >>
> >>
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >> ocamlnet-4.0.4> make doc
> >> for pkg in src/*/.; do \
> >>      test ! -f $pkg/Makefile -o -f $pkg/doc-ignore || \
> >>          { ( cd $pkg && make -f Makefile.pre generate ) || exit; \
> >>            ( cd $pkg && make -f Makefile.pre depend ) || exit; \
> >>            ( cd $pkg && make ocamldoc.dump ) || exit; \
> >>          }; \
> >> done
> >> make[1]: Entering directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> make[2]: Entering directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> sed -e 's/@VERSION@/4.0.4/' \
> >>      -e 's/@AUTHDHREQS@//' \
> >>      -e 's/@PREFERRED_CGI_PKG@//' \
> >>      -e 's/@REGEXP_PROVIDER@/str/' \
> >>      -e 's/@COMPAT_PCRE_PROVIDER@//' \
> >>              -e 's/@ZIP_PROVIDER@//' \
> >>          META.in >META
> >> make[2]: Leaving directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> make[1]: Leaving directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> make[1]: Entering directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> make[1]: Leaving directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> make[1]: Entering directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> ocamlfind ocamlc -g  -I ../../src/equeue -I ../../src/netsys -package
> >> "unix lablgtk" -pp "../../tools/cppo-0.9.4/cppo -D GTK1" -w -3-25 -c
> >> uq_gtk_helper.ml
> >> ocamlfind: Package `lablgtk' not found
> >> ../../Makefile.rules:117: recipe for target 'uq_gtk_helper.cmo' failed
> >> make[1]: *** [uq_gtk_helper.cmo] Error 2
> >> make[1]: Leaving directory
> >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1'
> >> Makefile:40: recipe for target 'doc' failed
> >> make: *** [doc] Error 2
> >> ocamlnet-4.0.4>
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >>
> >> Any ideas on that?
> >>
> >> Ciao,
> >>     Oliver
> >>
> >>
> >> ----------------------------------------------------------------------=
--------
> >> _______________________________________________
> >> Ocamlnet-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel
> >
> > --
> > ------------------------------------------------------------
> > Gerd Stolpmann, Darmstadt, Germany    [email protected]
> > My OCaml site:          http://www.camlcity.org
> > Contact details:        http://www.camlcity.org/contact.html
> > Company homepage:       http://www.gerd-stolpmann.de
> > ------------------------------------------------------------
>=20
>=20
>=20

--=20
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    [email protected]
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------


--=-WL1eH0GYDsM/QxgrbUi9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJWOyWzAAoJEAaM4b9ZLB5Ttv8H/22qrmRau6CZX/B49ZufkoEG
L5W7nDE/7GvMqIMV+MclRPdMy5gQ24ZlkLptHXIK8ujRUJXq8v/6E5iSK4+NPBZq
kBPszoyFXpNHlWGY+zFWkyIjjWx8wmu3NKeFTrlmta/IPYHCEAQ2NYZZ5MEipa/L
6sNU7uikQ8ywMQk+CnFz6yffA8v56qj3d5697/hd1wK9N0WRWvkqndzpXu/4fnba
v5tgrCcLDe3GFL073LIbyDOnVRZZyYsZgKQ2kWEQpuZQwpJKEebOtbDIJvUngE3O
DyP3gFoAiKnhjfC/BKKn/Rck4v3nCMP9QXCV6v/Ex7IHIfMpmgNtAB2ND4YzB50=
=Pjl8
-----END PGP SIGNATURE-----

--=-WL1eH0GYDsM/QxgrbUi9--



--===============1900532451126841741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============1900532451126841741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel

--===============1900532451126841741==--