comp.lang.ada
 help / color / mirror / Atom feed
* AWS Windos build trouble.
@ 2012-05-31  4:56 Shark8
  2012-05-31  5:44 ` Pascal Obry
  0 siblings, 1 reply; 11+ messages in thread
From: Shark8 @ 2012-05-31  4:56 UTC (permalink / raw)


Alright; I got AWS to build (using cygwin) though it fails on make install.
"Not too much of a problem" I foolishly thought to myself, as I tried to manually put the proper files under the includes directory (which required some fishing about the GPR files), create a project for it, and compile all the files... which I did, but now I'm getting this mess of errors [compiling the AWS "Hello World"]:

gnatmake -d -PC:\AWS\aws_test.gpr Test.adb
gnatbind -I- -x C:\AWS\Obj\test.ali
gnatlink C:\AWS\Obj\test.ali -o C:\AWS\test.exe
Warning: resolving _getpeername by linking to _getpeername@12
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _getsockname by linking to _getsockname@12
Warning: resolving _gethostname by linking to _gethostname@8
Warning: resolving _gethostbyname by linking to _gethostbyname@4
Warning: resolving _gethostbyaddr by linking to _gethostbyaddr@12
Warning: resolving _accept by linking to _accept@12
Warning: resolving _bind by linking to _bind@12
Warning: resolving _connect by linking to _connect@12
Warning: resolving _listen by linking to _listen@8
Warning: resolving _recvfrom by linking to _recvfrom@24
Warning: resolving _setsockopt by linking to _setsockopt@20
Warning: resolving _shutdown by linking to _shutdown@8
Warning: resolving _socket by linking to _socket@12
C:\AWS\Obj\sockets-naming.o:sockets-naming.adb:(.text+0x498b): undefined reference to `inet_addr'
C:\AWS\Obj\sockets.o:sockets.adb:(.text+0x1f4b): undefined reference to `send'
C:\AWS\Obj\sockets.o:sockets.adb:(.text+0x2351): undefined reference to `socketpair'
C:\AWS\Obj\aws-net-poll_events.o:aws-net-poll_events.adb:(.text+0x125b): undefined reference to `poll'
C:\AWS\Obj\aws-net.o:aws-net.adb:(.text+0xd7a): undefined reference to `socket_strerror'
C:\AWS\Obj\zlib-thin.o:zlib-thin.adb:(.text+0xbf): undefined reference to `deflateInit2_'
C:\AWS\Obj\zlib-thin.o:zlib-thin.adb:(.text+0xeb): undefined reference to `inflateInit2_'
C:\AWS\Obj\zlib-thin.o:zlib-thin.adb:(.text+0x1cb): undefined reference to `zlibVersion'
C:\AWS\Obj\zlib.o:zlib.adb:(.text+0x873): undefined reference to `crc32'
C:\AWS\Obj\zlib.o:zlib.adb:(.text+0x195b): undefined reference to `zlibVersion'
C:\AWS\Obj\zlib.o:zlib.adb:(.rdata+0x208): undefined reference to `inflate'
C:\AWS\Obj\zlib.o:zlib.adb:(.rdata+0x20c): undefined reference to `inflateEnd'
C:\AWS\Obj\zlib.o:zlib.adb:(.rdata+0x210): undefined reference to `deflate'
C:\AWS\Obj\zlib.o:zlib.adb:(.rdata+0x214): undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
gnatlink: error when calling C:\Programming\GNAT\2010\bin\gcc.exe
gnatmake: *** link failed.

I'm stuck at the end of my rope.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-05-31  4:56 AWS Windos build trouble Shark8
@ 2012-05-31  5:44 ` Pascal Obry
  2012-05-31  7:01   ` Shark8
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Obry @ 2012-05-31  5:44 UTC (permalink / raw)


Shark8,

> Alright; I got AWS to build (using cygwin) though it fails on make install.
> "Not too much of a problem" I foolishly thought to myself, as I tried to manually put the proper files under the includes directory (which required some fishing about the GPR files), create a project for it, and compile all the files... which I did, but now I'm getting this mess of errors [compiling the AWS "Hello World"]:
> 
> gnatmake -d -PC:\AWS\aws_test.gpr Test.adb
> gnatbind -I- -x C:\AWS\Obj\test.ali
> gnatlink C:\AWS\Obj\test.ali -o C:\AWS\test.exe
> Warning: resolving _getpeername by linking to _getpeername@12
> Use --enable-stdcall-fixup to disable these warnings
> Use --disable-stdcall-fixup to disable these fixups
> Warning: resolving _getsockname by linking to _getsockname@12
> Warning: resolving _gethostname by linking to _gethostname@8
> Warning: resolving _gethostbyname by linking to _gethostbyname@4
> Warning: resolving _gethostbyaddr by linking to _gethostbyaddr@12
> Warning: resolving _accept by linking to _accept@12
> Warning: resolving _bind by linking to _bind@12
> Warning: resolving _connect by linking to _connect@12
> Warning: resolving _listen by linking to _listen@8
> Warning: resolving _recvfrom by linking to _recvfrom@24
> Warning: resolving _setsockopt by linking to _setsockopt@20
> Warning: resolving _shutdown by linking to _shutdown@8
> Warning: resolving _socket by linking to _socket@12

You are probably mixing Cygwin libraries and native Windows ones. No
hope on this route.

Please clean-up everything. Make sure GNAT compiler come first in the
PATH and then Cygwin toolset.

At this point just do:

   $ make setup
   $ make
   $ make install

If you have any error during those steps please report.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-05-31  5:44 ` Pascal Obry
@ 2012-05-31  7:01   ` Shark8
  2012-06-01 22:14     ` Pascal Obry
  0 siblings, 1 reply; 11+ messages in thread
From: Shark8 @ 2012-05-31  7:01 UTC (permalink / raw)


Thank you for the quick reply.

On Thursday, May 31, 2012 12:44:48 AM UTC-5, Pascal Obry wrote:
> 
> You are probably mixing Cygwin libraries and native Windows ones. No
> hope on this route.

Only madness and insanity, gotcha.

> 
> Please clean-up everything. Make sure GNAT compiler come first in the
> PATH and then Cygwin toolset.
> 
> At this point just do:
> 
>    $ make setup
>    $ make
>    $ make install
> 
> If you have any error during those steps please report.

During make I had a few of these:
warning: no compiler specified for language "makefile", ignoring all its sources

During make install I got these:
cp: cannot stat `aws.html': No such file or directory
cp: cannot stat `aws.txt': No such file or directory
cp: cannot stat `aws*.info*': No such file or directory
cp: cannot create regular file `/cygdrive/c/Programming/GNAT/2010/bin/../bin/lib
z.dll': Device or resource busy
makefile:445: recipe for target `install' failed
make: *** [install] Error 1




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-05-31  7:01   ` Shark8
@ 2012-06-01 22:14     ` Pascal Obry
  2012-06-02  2:03       ` Shark8
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Obry @ 2012-06-01 22:14 UTC (permalink / raw)



Shark8,

>> At this point just do:
>>
>>    $ make setup
>>    $ make
>>    $ make install
>>
>> If you have any error during those steps please report.
> 
> During make I had a few of these:
> warning: no compiler specified for language "makefile", ignoring all its sources

That's fine.

> During make install I got these:
> cp: cannot stat `aws.html': No such file or directory
> cp: cannot stat `aws.txt': No such file or directory
> cp: cannot stat `aws*.info*': No such file or directory

All these are fine.

> cp: cannot create regular file `/cygdrive/c/Programming/GNAT/2010/bin/../bin/lib
> z.dll': Device or resource busy
> makefile:445: recipe for target `install' failed
> make: *** [install] Error 1

Not good, looks like bin/libz.dll is used by another application!

BTW, you should consider upgrading to GPL 2011 or wait a bit for GPL 2012 :)

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-01 22:14     ` Pascal Obry
@ 2012-06-02  2:03       ` Shark8
  2012-06-03 14:45         ` Pascal Obry
  0 siblings, 1 reply; 11+ messages in thread
From: Shark8 @ 2012-06-02  2:03 UTC (permalink / raw)


On Friday, June 1, 2012 5:14:13 PM UTC-5, Pascal Obry wrote:
> > Shark8,
> > cp: cannot create regular file `/cygdrive/c/Programming/GNAT/2010/bin/../bin/lib
> > z.dll': Device or resource busy
> > makefile:445: recipe for target `install' failed
> > make: *** [install] Error 1
> 
> Not good, looks like bin/libz.dll is used by another application!

That's really odd, I can't think of what would be using it.

>
> BTW, you should consider upgrading to GPL 2011 or wait a bit for GPL 2012 :)

I did, I just re-used the "2010" on the path.
One thing that I've got to ask, considering the mixed-binaries cygwin/windows issue, is building this in the cygwin prompt making the build dependent on cygwin? (That is, if I compile some AWS application, does the resultant EXE need cygwin on some other [deployment] machine?) I'd much rather have no dependency on Cygwin for my final executable.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-02  2:03       ` Shark8
@ 2012-06-03 14:45         ` Pascal Obry
  2012-06-04 16:04           ` Shark8
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Obry @ 2012-06-03 14:45 UTC (permalink / raw)
  To: Shark8


Shark8,

> I did, I just re-used the "2010" on the path. One thing that I've got
> to ask, considering the mixed-binaries cygwin/windows issue, is
> building this in the cygwin prompt making the build dependent on
> cygwin? 

No, not at all. You just need to ensure that the first
compiler/linker/assembler found in the PATH is the ones from GNAT.

> (That is, if I compile some AWS application, does the
> resultant EXE need cygwin on some other [deployment] machine?) I'd
> much rather have no dependency on Cygwin for my final executable.

I've been using Windows and Cygwin for years. Cyginw is the toolset and
when correctly setup (as explain above) it can be used to build standard
native applications with GNAT.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-03 14:45         ` Pascal Obry
@ 2012-06-04 16:04           ` Shark8
  2012-06-04 16:33             ` Pascal Obry
  0 siblings, 1 reply; 11+ messages in thread
From: Shark8 @ 2012-06-04 16:04 UTC (permalink / raw)
  Cc: Shark8

Hm, ok.

I cleaned out the GNAT\includes\ and GNAT\share\gps\plug-ins of the AWS stuff and tried a make install, which apparently worked.

The output, which you said was ok, was:
cp: cannot stat `aws.html': No such file or directory
cp: cannot stat `aws.txt': No such file or directory
cp: cannot stat `aws*.info*': No such file or directory

However, when I subsequently tried running GPS I got the splash-screen followed by nothing; i.e. a crash.

Simply reinstalling over the previous install rendered a an error:
Microsoft Visual C++ Runtime Library Error
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-04 16:04           ` Shark8
@ 2012-06-04 16:33             ` Pascal Obry
  2012-06-06  3:37               ` Shark8
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Obry @ 2012-06-04 16:33 UTC (permalink / raw)



Shark8,

> I cleaned out the GNAT\includes\ and GNAT\share\gps\plug-ins of the
> AWS stuff and tried a make install, which apparently worked.
> 
> The output, which you said was ok, was:
> cp: cannot stat `aws.html': No such file or directory
> cp: cannot stat `aws.txt': No such file or directory
> cp: cannot stat `aws*.info*': No such file or directory

Fine.

> However, when I subsequently tried running GPS I got the
> splash-screen followed by nothing; i.e. a crash.

Still with GPS 2010? I kind of remember an incompatibility between
libz.dll from GPS and the one from AWS! Copy bin/libz.dll away,
reinstall GPS and it should be fine. Of course AWS may fail if you use
compression... The best solution is probably to upgrade to GNAT GPL 2012
when it is available or GPL 2011 right now.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-04 16:33             ` Pascal Obry
@ 2012-06-06  3:37               ` Shark8
  2012-06-06  6:56                 ` Pascal Obry
  0 siblings, 1 reply; 11+ messages in thread
From: Shark8 @ 2012-06-06  3:37 UTC (permalink / raw)


On Monday, June 4, 2012 11:33:30 AM UTC-5, Pascal Obry wrote:
>
> Still with GPS 2010? I kind of remember an incompatibility between
> libz.dll from GPS and the one from AWS! Copy bin/libz.dll away,
> reinstall GPS and it should be fine. Of course AWS may fail if you use
> compression... The best solution is probably to upgrade to GNAT GPL 2012
> when it is available or GPL 2011 right now.

Nope, I'm using 2011.

Well, after getting the libz.dll swapped out it would get the splash-screen, followed by nothing (GPS.EXE crash).
Some investigation into why I  I tracked it down to share\gps\plug-in files:
aws.api.xml
ada2wsdl.xml
aws.py
aws.xml
wsdl2aws.xml

On a hunch I moved them to a flash-drive (Fat32) and back, this aleviated that problem.
Apparently it was a permissions problem (perhaps GPS.EXE could see but not read the file).
Running GPS.EXE and opening my test/hello AWS program I now got these:

gnatmake -d -PC:\AWS\aws_test.gpr Test.adb
gcc -c -gnat05 -I- -gnatA C:\AWS\src\Test.adb
test.adb:12:24: file "Ssl-Thin.ads" not found
test.adb:12:24: "Test (body)" depends on "Aws.Server (spec)"
test.adb:12:24: "Aws.Server (spec)" depends on "Aws.Net.Ssl (spec)"
test.adb:12:24: "Aws.Net.Ssl (spec)" depends on "Ssl.Thin (spec)"
gnatmake: "C:\AWS\src\Test.adb" compilation error

After copy/renaminging config\src\ssl-thin__dummy.ads from the AWS cource directoy I got these:
gcc -c -gnat05 -I- -gnatA C:\Programming\GNAT\2010\include\aws\aws-server-status.adb
aws-server-status.adb:35:06: file "Templates_Parser-Configuration.ads" not found
aws-server-status.adb:35:06: "AWS.SERVER.STATUS (body)" depends on "TEMPLATES_PARSER (body)"
aws-server-status.adb:35:06: "TEMPLATES_PARSER (body)" depends on "TEMPLATES_PARSER.CONFIGURATION (spec)"
templates_parser.adb:878:25: "Configuration" is undefined (more references follow)
gnatmake: "C:\Programming\GNAT\2010\include\aws\aws-server-status.adb" compilation error

Obviously I'll have to do the same, essentially manually replicating the GPR files's.
Why did the make install fail to propigate these into GNAT's include directory? Or was it supposed to propigate the ALI files somewhere to make them part of the library? (Isn't that what make install's supposed to do?)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-06  3:37               ` Shark8
@ 2012-06-06  6:56                 ` Pascal Obry
  2012-06-06 13:55                   ` Shark8
  0 siblings, 1 reply; 11+ messages in thread
From: Pascal Obry @ 2012-06-06  6:56 UTC (permalink / raw)



Shark8,

> Nope, I'm using 2011.
> 
> Well, after getting the libz.dll swapped out it would get the splash-screen, followed by nothing (GPS.EXE crash).
> Some investigation into why I  I tracked it down to share\gps\plug-in files:
> aws.api.xml
> ada2wsdl.xml
> aws.py
> aws.xml
> wsdl2aws.xml

Really strange, never seen that!

> On a hunch I moved them to a flash-drive (Fat32) and back, this aleviated that problem.
> Apparently it was a permissions problem (perhaps GPS.EXE could see but not read the file).
> Running GPS.EXE and opening my test/hello AWS program I now got these:
> 
> gnatmake -d -PC:\AWS\aws_test.gpr Test.adb
> gcc -c -gnat05 -I- -gnatA C:\AWS\src\Test.adb
> test.adb:12:24: file "Ssl-Thin.ads" not found
> test.adb:12:24: "Test (body)" depends on "Aws.Server (spec)"
> test.adb:12:24: "Aws.Server (spec)" depends on "Aws.Net.Ssl (spec)"
> test.adb:12:24: "Aws.Net.Ssl (spec)" depends on "Ssl.Thin (spec)"
> gnatmake: "C:\AWS\src\Test.adb" compilation error

Should be working!

> Obviously I'll have to do the same, essentially manually replicating
> the GPR files's. Why did the make install fail to propigate these
> into GNAT's include directory? Or was it supposed to propigate the
> ALI files somewhere to make them part of the library? (Isn't that
> what make install's supposed to do?)

Yes, "make install" should do everything for you. Then adding /with
"aws";/ in you project file should be sufficient to build any AWS
applications. Looks like you have permissions issues in the
installation. Can you show us the content of makefile.setup on top of
AWS build directory?

BTW, there is a dedicated AWS mailing-list, maybe you'll find more help
here.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: AWS Windos build trouble.
  2012-06-06  6:56                 ` Pascal Obry
@ 2012-06-06 13:55                   ` Shark8
  0 siblings, 0 replies; 11+ messages in thread
From: Shark8 @ 2012-06-06 13:55 UTC (permalink / raw)


On Wednesday, June 6, 2012 1:56:20 AM UTC-5, Pascal Obry wrote:
> 
> Really strange, never seen that!

Yeah; one reason I hate the *nix/C mentality: the both frown on providing any helpful error message.

> 
> Should be working!

*nod* - That's what I thought.
( However, "should" and "is" are two different things. :( )

> 
> > Obviously I'll have to do the same, essentially manually replicating
> > the GPR files's. Why did the make install fail to propigate these
> > into GNAT's include directory? Or was it supposed to propigate the
> > ALI files somewhere to make them part of the library? (Isn't that
> > what make install's supposed to do?)
> 
> Yes, "make install" should do everything for you. Then adding /with
> "aws";/ in you project file should be sufficient to build any AWS
> applications. Looks like you have permissions issues in the
> installation. Can you show us the content of makefile.setup on top of
> AWS build directory?

prefix=/cygdrive/c/Programming/GNAT/2010/bin/..
DEFAULT_LIBRARY_TYPE=static
DEFAULT_TARGET=native
ENABLE_SHARED=true
ZLIB=false
XMLADA=false
ASIS=false
IPv6=false
SOCKET=std
LDAP=false
DEBUG=false
PROCESSORS=2
TARGET=native

> BTW, there is a dedicated AWS mailing-list, maybe you'll find more help
> here.

Ah, I did not know that.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-06-06 13:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-31  4:56 AWS Windos build trouble Shark8
2012-05-31  5:44 ` Pascal Obry
2012-05-31  7:01   ` Shark8
2012-06-01 22:14     ` Pascal Obry
2012-06-02  2:03       ` Shark8
2012-06-03 14:45         ` Pascal Obry
2012-06-04 16:04           ` Shark8
2012-06-04 16:33             ` Pascal Obry
2012-06-06  3:37               ` Shark8
2012-06-06  6:56                 ` Pascal Obry
2012-06-06 13:55                   ` Shark8

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox