Re: installation error

Gerd Stolpmann <[email protected]> Thu, 10 Oct 2013 16:34:38 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <1381415678.5500.11.camel@thinkpad>
--===============5905198169748970826==
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature"; 
	boundary="=-8gHSNRnzTjgYFfiVLemN"


--=-8gHSNRnzTjgYFfiVLemN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Am Donnerstag, den 10.10.2013, 10:09 -0400 schrieb Ashish Agarwal:
> With opam, on RHEL, I'm getting the error below. I've installed
> ocamlnet on the same computer many times before, and don't think I
> changed anything. Any ideas?

It's a bug. Fix:

https://godirepo.camlcity.org/wwwsvn/trunk/code/src/netsys/netsys_c.c?r1=3D=
1886&r2=3D1918&p1=3Dtrunk/code/src/netsys/netsys_c.c&p2=3Dtrunk/code/src/ne=
tsys/netsys_c.c&root=3Dlib-ocamlnet2

But honestly, you are using an ancient kernel (without CLOEXEC flag,
i.e. older than 2.6.23). Consider upgrading the system.

Gerd

>=20
> =3D=3D=3D=3D=3D ERROR while installing ocamlnet.3.7.3 =3D=3D=3D=3D=3D
> # opam-version 1.1.0-beta (c381a2daa6751e5b649d96a6e2b4226c8ebe4366)
> # os           linux
> # command      make all
> # path         /home/aa144/.opam/4.01.0/build/ocamlnet.3.7.3
> # compiler     4.01.0
> # exit-code    2
> # env-file
>   /home/aa144/.opam/4.01.0/build/ocamlnet.3.7.3/ocamlnet-22544-ffb3fd.env
> # stdout-file
>  /home/aa144/.opam/4.01.0/build/ocamlnet.3.7.3/ocamlnet-22544-ffb3fd.out
> # stderr-file
>  /home/aa144/.opam/4.01.0/build/ocamlnet.3.7.3/ocamlnet-22544-ffb3fd.err
> ### stdout ###
> # ...[truncated]
> # ocamlfind ocamlc -g   -package "unix unix" -c  netsys_xdr.mli
> # ocamlfind ocamlc -g   -package "unix unix"  -c  netsys_xdr.ml
> # ocamlfind ocamlc -g   -package "unix unix" -c  netsys_tmp.mli
> # ocamlfind ocamlc -g   -package "unix unix"  -c  netsys_tmp.ml
> # ocamlfind ocamlc -g   -package "unix unix" -c  netsys_sem.mli
> # ocamlfind ocamlc -g   -package "unix unix"  -c  netsys_sem.ml
> # ocamlfind ocamlc -g   -package "unix unix" -c  netsys_pmanage.mli
> # ocamlfind ocamlc -g   -package "unix unix"  -c  netsys_pmanage.ml
> # ../../tools/stubcc -ocamlc ocamlc -ccopt -O   netsys_c.c
> # make[1]: Leaving directory
> `/home/aa144/.opam/4.01.0/build/ocamlnet.3.7.3/src/netsys'
> ### stderr ###
> # + gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=3D64 -D_REENTRANT -fPIC
> -c  -O  -I'/home/aa144/.opam/4.01.0/lib/ocaml' 'netsys_c.c'
> # netsys_c.c: In function 'netsys_openat':
> # netsys_c.c:482: error: 'fd' undeclared (first use in this function)
> # netsys_c.c:482: error: (Each undeclared identifier is reported only
> once
> # netsys_c.c:482: error: for each function it appears in.)
> # make[1]: *** [netsys_c.o] Error 2
> # make: *** [all] Error 2
>=20
>=20
> -------------------------------------------------------------------------=
-----
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most =
from=20
> the latest Intel processors and coprocessors. See abstracts and register =
>
> http://pubads.g.doubleclick.net/gampad/clk?id=3D60134071&iu=3D/4140/ostg.=
clktrk
> _______________________________________________ Ocamlnet-devel mailing li=
st [email protected] https://lists.sourceforge.net/lists=
/listinfo/ocamlnet-devel

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

--=-8gHSNRnzTjgYFfiVLemN
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.4.11 (GNU/Linux)

iQEcBAABAgAGBQJSVrr+AAoJEAaM4b9ZLB5TaOoH/i3KTjpFcjdPdDf+1k5hejiw
8MpNHauZpzWNHy7HZn2XsRRPe3gvj8eZtLy4cPPdLXaxGrJ5XMpkaAWbBqamHoRx
LNusKRtpsDc0FkC5DsSWIkM9QrLXIqjVJ+uAAjV8P+p2SqCxVwjoi6IXdhzUhzU/
Zq3wFFrmwbKnMUl7U9nmQ6eoajo2rGOeQI3xKAzTCpLHLjbAHBSpnORxd6/NwPjZ
BB/tQmfAtFsoGuUtEEL8jLjPHQWaB8NeROadseuZdaAuTFpKBZXmiWLP+H+rR3ZR
JjWSNHmi6R97OJ36ghVdBJPdw+oOg/7W+DhZFUvuC55Abscbrk2/8HnTpxVRlMk=
=huGB
-----END PGP SIGNATURE-----

--=-8gHSNRnzTjgYFfiVLemN--



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

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
--===============5905198169748970826==
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

--===============5905198169748970826==--