[AWS] make gnatsockets, and "std" and SOCKET in makefile.conf, on Windows

Pascal Obry pascal at obry.net
Thu Aug 21 09:25:20 CEST 2008


Jocelyn,

> In makefile.conf in the top-level AWS directory, there are these lines:
>   # AWS supports SSL (Secure Socket Layer). The SSL support is always built-in
>   # AWS. To build AWS's demos will SSL support you need to set SOCKET to ssl, in
>   # this case you must have installed OpenSSL on you computer. OpenSSL libraries
>   # are distributed on Windows platforms therefore the SSL mode is the default
>   # on this platform. (note that below ssl and openssl are aliases).
>   #
>   # SOCKET = [std/openssl/gnutls]
>   #
>   SOCKET	= std
> 
> The comment says "note that below ssl and openssl are aliases". But there
> isn't an "ssl" in the list of permitted values, or anywhere else below.
> Should this read "note that below std and openssl are aliases"?

No ssl has been obsoleted, but it is still supported for compatibility 
issue. So ssl is equivalent to OpenSSL.

> Also, the comment says "To build AWS's demos will SSL support you need to
> set SOCKET to ssl". Does the value of SOCKET affect anything apart from
> the demos?

Of course not, support for SSL is not built into the AWS's runtime.
Also some tests are not passed.

> I'm confused, because of what I reported in my post at
> http://lists.adacore.com/pipermail/aws/2008-August/000924.html . I
> built AWS there using SOCKET = std; the makefile.conf comment suggested
> the demos wouldn't then need SSL support; but the compiler complained
> because it couldn't find ssl-thin.ads .
> 
> And one other question. In the AWS User's Guide at
> https://libre.adacore.com/aws/aws-gpl-2.3.0.html#AWS_002eNet_002eStd ,
> Section 2.2 says that to select the default implementation of sockets for
> use with AWS.Net.Std, which is GNAT.Sockets (as opposed to AdaSockets),
> one must give the command:
>   make gnatsockets

Again that's old stuff! Support for AdaSockets has been removed.

> I found out from
> http://osdir.com/ml/lang.ada.sockets/2007-11/msg00017.html what the
> difference between GNAT.Sockets and AdaSockets is, so I can see why
> GNAT.Sockets is the default. But when I gave the command "make
> gnatsockets" (from the top-level AWS directory), I got the error "No rule
> to make target 'gnatsockets'".

Right. I encourage you to use the latest AWS version together with the 
latest documentation. Using a mix of both won't help you :)

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595


More information about the AWS mailing list