Ubuntu 11.04

user@host:$ make setup i686-pc-linux-gnu-gcc -c check_config.c In file included from /usr/include/sys/socket.h:40:0, from aws-gpl-2.10.0-src/config/setup/check_config.c:53: /usr/include/bits/socket.h:381:24: fatal error:
asm/socket.h: No such file or directory compilation terminated. [..]
Erreur 127
make: *** [config_setup] Erreur 2

Install gcc-multilib

$ sudo aptitude install gcc-multilib

Relaunch AWS build setup step

user@host:$ make setup
i686-pc-linux-gnu-gcc -c check_config.c
ar cr libsetup.a ...
ranlib libsetup.a
i686-pc-linux-gnu-gcc check_config.o -o check_config
Setup OS specific definitions
Can not generate system tags. The test are disabled
During the build process, ld can complain that libdl can't be find. The following will solve the issue.
For x86 32 bits Ubuntu :
export LIBRARY_PATH=/usr/lib/i386-linux-gnu:$LIBRARY_PATH
For x86 64 bits Ubuntu :
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH

Ubuntu 11.10

Please define the following variable before the installation process :
 $ export C_INCLUDE_PATH=/usr/include/i386-linux-gnu/
This need to be updated accordingly to your platform. If you want to have OpenSSL support in AWS, SSLv2 support seems to have been drop out in Ubuntu 11.10, so in aws-gpl-2.10.0-src/config/src/aws-net-ssl__openssl.adb replace the following:
         Methods : constant array (Method) of Meth_Func :=
(SSLv2          => TSSL.SSLv2_method'Access,
SSLv2_Server   => TSSL.SSLv2_server_method'Access,
SSLv2_Client   => TSSL.SSLv2_client_method'Access,
         Methods : constant array (Method) of Meth_Func :=
(SSLv2          => TSSL.SSLv23_method'Access,
SSLv2_Server   => TSSL.SSLv23_server_method'Access,
SSLv2_Client   => TSSL.SSLv23_client_method'Access,
And continue with the Ubuntu 11.04 procedure if needed. Please note that this work-around may be not the best ways to solve this issue, any better solutions are welcomed.