[AWS] Make Build errors

Hamel, Mark A. (Mission Systems) mark.hamel at ngc.com
Wed Sep 24 21:48:35 CEST 2008


Thank you!  That got me much farther, however after several minutes the build poops out while "building relocatable library..." with

C:\GNAT\2008\bin\gcc.exe -shared -o C:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\lib\src\libaws.dll -LC:/GNAT/2008/lib/gcc/pentium-mingw32msv/4.1.3/adalib/ C:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\obj\src\aws-attachments.o .. -laws_win32 -lwsock32 -lws2_32 -LC:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\lib\win32\ -laws_win32 -LC:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\lib\ssl -laws_ssl -LC:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\lib\include -laws_include -LC:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\lib\zlib -lz -LC:/GNAT/2008/lib/gcc/pentium-mingw32msv/4.1.3/adalib/ -lgnarl-6.2 -lgnat-6.2
C:\aws\AWS-gpl-2.5.0w\.build\release\relocatable\obj\src\aws-net.o:aws-net.adb(.text+0x13bb): undefined reference to 'setsockopt' 

I vaguely recall seeing an error message like this on a completely unrelated project that was solved by including -lwsock32, but I see that is called here. So close...

-----Original Message-----
From: Pascal Obry [mailto:pascal at obry.net] 
Sent: Wednesday, September 24, 2008 11:41 AM
To: Hamel, Mark A. (Mission Systems)
Cc: aws at lists.adacore.com
Subject: Re: [AWS] Make Build errors

Hamel, Mark A. (Mission Systems) a écrit :
> Hello all,
> 
> I've tried playing around with aws on windows over the past year or so 
> with little success.  With Jocelyn Paine's procedures here 
> _http://www.j-paine.org/installing_aws_for_xp.html_ I decided to try 
> once more.  I immediately ran into some errors but in reading more 
> carefully I saw my environment was a bit out of date.  So I upgrade my
> GNAT2007 to GNAT2008 and aws2.3 to aws2.5.  Other some slight path 
> naming differences, I believe my environment is that as described on 
> this site, including Cygwin 3.8.1.  I've changed the makefile.conf to 
> explictly set the path to GNAT root and the win32/makefile to 
> explicitly set CC  = gcc.  I run "make setup", no problemos.  I run "make build"
> and have the following issues:
> 
> $ make build
> Building Zlib library
> include.gpr:73:13: "end case" expected
> include.gpr:74:11: identifier expected
> include.gpr:76:16: Expected "include"
> include.gpr:82:04: Unexpected text following end of project
> shared.gpr:149:13: "end case" expected
> shared.gpr:150:11: identifier expected
> shared.gpr:152:16: Expected "shared"
> shared.gpr:158:04: Unexpected text following end of project
> zlib.gpr:45:08: undefined attribute "externally_build"
> gnatmake: "include" processing failed
> Make[1]: *** [build] Error 4
> Make: *** [include_build] Error 2

You have an old compiler in your path (maybe the Cygwin GCC/GNAT?). Make sure GNAT GPL come first in the PATH.

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