comp.lang.ada
 help / color / mirror / Atom feed
* debian 6 aws.client.post sll trouble
@ 2013-06-20 16:03 björn lundin
  2013-06-20 16:24 ` Pascal Obry
  0 siblings, 1 reply; 9+ messages in thread
From: björn lundin @ 2013-06-20 16:03 UTC (permalink / raw)


Hi!
I got a debian 6, with
libaws2.10 and gnat 4.6


I try to use AWS.Client.Post on a https-URL but I get this
exception:
 adjust/finalize raised PROGRAM_ERROR: SSL not supported


I've only installed via apt-get, no programs/libs are compiled onto this system.
Is there a simple way of getting SSL support here ?

code as :

    Aws.Headers.Set.Add (My_Headers, "X-Authentication", My_Token.Id);
    Aws.Headers.Set.Add (My_Headers, "X-Application", Token.App_Key);
    Aws.Headers.Set.Add (My_Headers, "Accept", "application/json");

    Answer := Aws.Client.Post (Url          =>  "https://api-ng.betstores.com/betting/betfair/services/beta-api.betfair.com/betting/json-rpc",
                               Data         =>  "[{'jsonrpc': '2.0', 'method': 'SportsAPING/v1.0/listEventTypes', 'params': {'filter':{}}, 'id': 1}]",
                               Content_Type => "application/json",
                               Headers      => My_Headers);

    --crash above

    Log(Aws.Response.Message_Body(Answer));


thanks

/Björn



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

* Re: debian 6 aws.client.post sll trouble
  2013-06-20 16:03 debian 6 aws.client.post sll trouble björn lundin
@ 2013-06-20 16:24 ` Pascal Obry
  2013-06-22 10:18   ` björn lundin
  0 siblings, 1 reply; 9+ messages in thread
From: Pascal Obry @ 2013-06-20 16:24 UTC (permalink / raw)



Hi Björn,

> I got a debian 6, with
> libaws2.10 and gnat 4.6
> 
> 
> I try to use AWS.Client.Post on a https-URL but I get this
> exception:
>  adjust/finalize raised PROGRAM_ERROR: SSL not supported

This means that AWS was not compiled with SSL support on GNU/Debian.
You'll probably have to build yourself from source.

Pascal.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

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

* Re: debian 6 aws.client.post sll trouble
  2013-06-20 16:24 ` Pascal Obry
@ 2013-06-22 10:18   ` björn lundin
  2013-06-22 10:20     ` björn lundin
  0 siblings, 1 reply; 9+ messages in thread
From: björn lundin @ 2013-06-22 10:18 UTC (permalink / raw)


torsdagen den 20:e juni 2013 kl. 18:24:01 UTC+2 skrev Pascal Obry:
> >  adjust/finalize raised PROGRAM_ERROR: SSL not supported
> 
> This means that AWS was not compiled with SSL support on GNU/Debian.
> You'll probably have to build yourself from source.

Hmm, I was hoping not to have to do that. 
I'll try this weekend.
Thanks Pascal

/Björn


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

* Re: debian 6 aws.client.post sll trouble
  2013-06-22 10:18   ` björn lundin
@ 2013-06-22 10:20     ` björn lundin
  2013-06-22 11:24       ` Ludovic Brenta
  0 siblings, 1 reply; 9+ messages in thread
From: björn lundin @ 2013-06-22 10:20 UTC (permalink / raw)


> Hmm, I was hoping not to have to do that. 
> I'll try this weekend.

ok, uninstalled the debian pre-packaged, 
and installed from source, editing makefile.conf

Seems to work :-)
But I am a bit surprised that AWS on Debian is not packaged with ssl enabled by default

Thanks
/Björn


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

* Re: debian 6 aws.client.post sll trouble
  2013-06-22 10:20     ` björn lundin
@ 2013-06-22 11:24       ` Ludovic Brenta
  2013-06-22 20:52         ` björn lundin
                           ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ludovic Brenta @ 2013-06-22 11:24 UTC (permalink / raw)


björn lundin writes:
>> Hmm, I was hoping not to have to do that. 
>> I'll try this weekend.
>
> ok, uninstalled the debian pre-packaged, 
> and installed from source, editing makefile.conf
>
> Seems to work :-)
> But I am a bit surprised that AWS on Debian is not packaged with ssl
> enabled by default

That's because the OpenSSH license is incompatible with the GPL that AWS
uses, see /usr/share/doc/libaws2.10.2-dev/README.Debian, which I
reproduce here for your convenience:

Ada Web Server for Debian - maintainer's notes

The Ada Web Server library  can use either libopenssl or libgnutls for
strong  cryptography.  This enables  support for  the HTTPS  and other
encrypted  protocols.   Unfortunately  there  are problems  with  both
libraries.

libopenssl  is  licensed under  terms  incompatible  with the  General
Public License,  while libaws is  licensed under the  GPL.  Therefore,
Debian cannot ship binaries of libaws linked with libopenssl.

Linking libaws with libgnutls has  a technical problem which I haven't
been able to correct.  The  symptom is that both ada2wsdl and wsdl2aws
segfault during  elaboration.  The  segmentation fault takes  place in
the call to gcry_control which is at aws-net-ssl__gnutls.adb:1000.

Ted Dennison writes:

> Obviously there could be a million reasons for this. However, I know
> a common cause of this particular symptom in an Ada program is a
> task having too small of a stack for the amount of data being
> declared in it.  There's usually a global default, which can be
> changed for a given task with pragma Storage_Size.

> Most tasks are created and have their stack variables built during
> elaboration. The exception would be task objects (of a defined task
> type) that are dynamically allocated. Even those *could* be created
> during an elaboration, if the coder allocates them inside a
> package's "begin...end" block.

If you would like to help solve this problem, please send email to
aws@lists.adacore.com (I'm on that list, so you don't need to CC me).

-- 
Ludovic Brenta, 2008-06-01


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

* Re: debian 6 aws.client.post sll trouble
  2013-06-22 11:24       ` Ludovic Brenta
@ 2013-06-22 20:52         ` björn lundin
  2013-06-23  6:46         ` Jacob Sparre Andersen
  2013-06-23 10:43         ` Pascal Obry
  2 siblings, 0 replies; 9+ messages in thread
From: björn lundin @ 2013-06-22 20:52 UTC (permalink / raw)


Den lördagen den 22:e juni 2013 kl. 13:24:36 UTC+2 skrev Ludovic Brenta:
> 
> > ok, uninstalled the debian pre-packaged, 
> > and installed from source, editing makefile.conf
> > Seems to work :-)
> > But I am a bit surprised that AWS on Debian is not packaged with ssl
> > enabled by default
> 
> 
> 
> That's because the OpenSSH license is incompatible with the GPL that AWS
> uses, see /usr/share/doc/libaws2.10.2-dev/README.Debian, which I
> reproduce here for your convenience:

Thanks for the explanation, I understand now, and it makes sense.
/Björn

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

* Re: debian 6 aws.client.post sll trouble
  2013-06-22 11:24       ` Ludovic Brenta
  2013-06-22 20:52         ` björn lundin
@ 2013-06-23  6:46         ` Jacob Sparre Andersen
  2013-06-24  8:45           ` Jacob Sparre Andersen
  2013-06-23 10:43         ` Pascal Obry
  2 siblings, 1 reply; 9+ messages in thread
From: Jacob Sparre Andersen @ 2013-06-23  6:46 UTC (permalink / raw)


Ludovic Brenta wrote:

> Linking libaws with libgnutls has a technical problem which I haven't
> been able to correct.  The symptom is that both ada2wsdl and wsdl2aws
> segfault during elaboration.  The segmentation fault takes place in
> the call to gcry_control which is at aws-net-ssl__gnutls.adb:1000.

I've built AWS (git revision 4cb349e5d3514ba8b37df08af8b936098926e9a2
from 2013-06-10) with libgnutls-dev (Debian/wheezy package version
2.12.20-7) for use with Alice.  It seems that I didn't enable building
"ada2wsdl", but "wsdl2ada" works well enough to print usage instructions
on standard output.

I think there should be hope for a SSL/TLS enabled AWS package for the
next version of Debian.

Greetings,

Jacob
-- 
"Preserve wildlife, pickle a duck."

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

* Re: debian 6 aws.client.post sll trouble
  2013-06-22 11:24       ` Ludovic Brenta
  2013-06-22 20:52         ` björn lundin
  2013-06-23  6:46         ` Jacob Sparre Andersen
@ 2013-06-23 10:43         ` Pascal Obry
  2 siblings, 0 replies; 9+ messages in thread
From: Pascal Obry @ 2013-06-23 10:43 UTC (permalink / raw)



Indeed GNU/TLS will be neat to have fully supported. I have been playing
with this since some time, it is *almost* working fine but seems to
heavily depends on the GNU/TLS version.

If someone with good knowledge on GNU/TLS want to have a look it will be
really nice. At this point I feel that we are almost ready for making
GNU/TLS first class citizen and make this SSL layer the default...

Pascal.

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B

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

* Re: debian 6 aws.client.post sll trouble
  2013-06-23  6:46         ` Jacob Sparre Andersen
@ 2013-06-24  8:45           ` Jacob Sparre Andersen
  0 siblings, 0 replies; 9+ messages in thread
From: Jacob Sparre Andersen @ 2013-06-24  8:45 UTC (permalink / raw)


I wrote:

> I've built AWS (git revision 4cb349e5d3514ba8b37df08af8b936098926e9a2
> from 2013-06-10) with libgnutls-dev (Debian/wheezy package version
> 2.12.20-7) for use with Alice.  It seems that I didn't enable building
> "ada2wsdl", but "wsdl2ada" works well enough to print usage
> instructions on standard output.
>
> I think there should be hope for a SSL/TLS enabled AWS package for the
> next version of Debian.

Hmmm...  Well...  Maybe...  (Now that I think about it, I did that build
with GNAT GPL 2012, so it is not certain that it will work with the
Gnu/Debian version of GNAT.)

Greetings,

Jacob
-- 
Rent-a-Minion Inc. Because good help is so hard to find.


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

end of thread, other threads:[~2013-06-24  8:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-20 16:03 debian 6 aws.client.post sll trouble björn lundin
2013-06-20 16:24 ` Pascal Obry
2013-06-22 10:18   ` björn lundin
2013-06-22 10:20     ` björn lundin
2013-06-22 11:24       ` Ludovic Brenta
2013-06-22 20:52         ` björn lundin
2013-06-23  6:46         ` Jacob Sparre Andersen
2013-06-24  8:45           ` Jacob Sparre Andersen
2013-06-23 10:43         ` Pascal Obry

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