[AWS] Re: Unable to built latest CVS version of AWS

Peter Fedorow fedorowp at earthlink.net
Wed Feb 2 22:02:57 CET 2005


I'm new to Ada, so I especially appreciate your help over these bumps.


aws-request at lists.adacore.com wrote:
> From: Dmitriy Anisimkov <anisimkov at ada-ru.org>
> What version of ada compiler do you use ?
> gnatls -v
> command would show it.

F:\CVSRoot\AWS>gnatls -v

GNATLS 3.15p  (20020523) Copyright 1997-2001 Free Software Foundation, Inc.

Source Search Path:
    <Current_Directory>
    N:\AWS\components\
    N:\AWS\include\
    N:\GNAT\Bindings\Win32Ada\
    N:\GNAT\lib\win32\
    N:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adainclude\


Object Search Path:
    <Current_Directory>
    N:\AWS\lib\
    N:\AWS\components\
    N:\AWS\include\
    N:\GNAT\Bindings\Win32Ada\
    N:\GNAT\lib\win32\
    N:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\


> Do you use MSYS or CygWin (UNIX command line for Windows) ?

I am using CygWin.  I originally tried to get 2.0p to build with MSYS 
with no success.


>>I'm not aware of any changes to my build environment since I built the 
>>2.0p release.
> 
> But you should. We could not help with unknown build environment.

So I have a known environment to work with, I have removed all UNIX 
environment and compatibility tools and GNAT from my system and reinstalled.

I don't see a recommended approach documented anywhere, so here are the 
steps I went through.

Installed gnat-3.15p-nt.exe from http://libre.adacore.com/GNAT/

Installed gnatwin-3.15p.exe from http://libre.adacore.com/GNAT/

Installed MinGW-3.1.0-1.exe from http://www.mingw.org/download.shtml

Updated system path to start with: N:\GNAT\bin;D:\mingw\bin;

Tested GNAT and AdaGuide.
	They work fine.

Updated AWS from the CVS version.

Checked makefile.conf:
	INSTALL  = N:\Ada
	No other changes from the default.

make setup

This is what I get:
---
F:\CVSRoot\AWS>make setup
The syntax of the command is incorrect.
Setup OS specific definitions
In file included from D:\MinGW\include\ws2tcpip.h:19,
                  from src/check_config.c:12:
D:\MinGW\include\winsock2.h:339: parse error before `__int64'
D:\MinGW\include\winsock2.h:339: warning: no semicolon at end of struct
or union

D:\MinGW\include\winsock2.h:341: parse error before `}'
D:\MinGW\include\winsock2.h:524: parse error before `inet_ntoa'
D:\MinGW\include\winsock2.h:524: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:533: parse error before `gethostbyaddr'
D:\MinGW\include\winsock2.h:533: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:534: parse error before `gethostbyname'
D:\MinGW\include\winsock2.h:534: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:535: parse error before `getservbyport'
D:\MinGW\include\winsock2.h:535: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:536: parse error before `getservbyname'
D:\MinGW\include\winsock2.h:536: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:537: parse error before `getprotobynumber'
D:\MinGW\include\winsock2.h:537: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:538: parse error before `getprotobyname'
D:\MinGW\include\winsock2.h:538: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:763: redefinition of `struct _BLOB'
D:\MinGW\include\winsock2.h:766: warning: redefinition of `BLOB'
N:\GNAT\pentium-mingw32msv\include\Windows32/Structures.h:279: warning:
`BLOB' p
reviously declared here
D:\MinGW\include\winsock2.h:988: parse error before `ULONG_PTR'
D:\MinGW\include\winsock2.h:988: warning: no semicolon at end of struct
or union

D:\MinGW\include\winsock2.h:988: warning: no semicolon at end of struct
or union

D:\MinGW\include\winsock2.h:990: parse error before `}'
D:\MinGW\include\winsock2.h:990: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:991: parse error before `}'
D:\MinGW\include\winsock2.h:991: warning: data definition has no type or
storage
  class
D:\MinGW\include\winsock2.h:1093: parse error before `LPWSACOMPLETION'
D:\MinGW\include\winsock2.h:1143: parse error before `LPWSACOMPLETION'
make[1]: *** [../src/aws-os_lib-definitions.ads] Error 1
make: *** [config_setup] Error 2

F:\CVSRoot\AWS>
---

> You can have CVS access to the latest AWS sources, see
> http://libre.act-europe.fr/aws/

That is the version I am trying to build.  AWS 2.0p is installed and 
functional.


> From: Pascal Obry <pascal at obry.org>
> To add to Dmitriy answer I'd like to point that you seem to be using a mixed
> environment. The make tool is from d:\Util\UnxUtils\usr\local\wbin\ and the
> include from D:\MinGW\include\. We really need more information : compiler
> version, MSYS, Cygwin ...

Starting over with a clean built environment, gnatls -v gives identical 
output as it did previously, see above.

MinGW is the version listed as current, 3.1.0.

make.exe is the version in N:\GNAT\bin\ installed by the GNAT installer.
make --v returns
---
GNU Make version 3.77, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
         Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make at gnu.org>.
---


> Note that the procedure to build AWS on CVS has changed (better integration
> with the GNAT Project Files). Be sure to check the documentation. But I don't
> think the error aboves are due to that.

Is the document I should check AWS\INSTALL or is there a version of the 
AWS User's Guide that matches the CVS version?




More information about the AWS mailing list