* [Buildroot] glib-networking when using gtlsconnection fails
@ 2013-10-16 15:48 Bernhard Schuster
2013-10-16 15:56 ` Thomas Petazzoni
2013-10-17 19:48 ` Bernhard Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Schuster @ 2013-10-16 15:48 UTC (permalink / raw)
To: buildroot
Hi,
I am trying to cross compile a application which works just fine on my
x86_64 machine for a ARMv5TE "gadget". Unfortunately something really
weird happens: Altough having selected gnutls in order to use TLS with
glib-networking (GTlsConnection), I always get an error as soon as the
combined cert/key pem file is read (it exists, has proper permissions,
all tripple checked). The error always contains "TLS unsupported" or
"no TLS support" (can not recall, currently away from that machine)
altough the config.h of glib-networking says the opposite. The binary
is statically compiled (which worked fine so far).
I am puzzled on how to fix my issue, I already tried to fix it by
adding a couple of commandline opts explicitly (though they say that
they are enabled by default, thus - as expected - nothing changed).
Also note that I have a similar issue with pcre (required for GRegex),
where I pass --enable-utf8 but it still did not fix anything.
Any help, hint, tip is appreciated.
Buildroot 2013.08 is used together with the code sourcery 2011/2013
toolchain
Best
Bernhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131016/f53289b7/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] glib-networking when using gtlsconnection fails
2013-10-16 15:48 [Buildroot] glib-networking when using gtlsconnection fails Bernhard Schuster
@ 2013-10-16 15:56 ` Thomas Petazzoni
2013-10-17 19:48 ` Bernhard Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-10-16 15:56 UTC (permalink / raw)
To: buildroot
Dear Bernhard Schuster,
On Wed, 16 Oct 2013 15:50:51 +0002, Bernhard Schuster wrote:
> I am trying to cross compile a application which works just fine on my
> x86_64 machine for a ARMv5TE "gadget". Unfortunately something really
> weird happens: Altough having selected gnutls in order to use TLS with
> glib-networking (GTlsConnection), I always get an error as soon as the
> combined cert/key pem file is read (it exists, has proper permissions,
> all tripple checked). The error always contains "TLS unsupported" or
> "no TLS support" (can not recall, currently away from that machine)
> altough the config.h of glib-networking says the opposite. The binary
> is statically compiled (which worked fine so far).
>
> I am puzzled on how to fix my issue, I already tried to fix it by
> adding a couple of commandline opts explicitly (though they say that
> they are enabled by default, thus - as expected - nothing changed).
>
> Also note that I have a similar issue with pcre (required for GRegex),
> where I pass --enable-utf8 but it still did not fix anything.
>
> Any help, hint, tip is appreciated.
>
> Buildroot 2013.08 is used together with the code sourcery 2011/2013
> toolchain
Just to be sure: did you do a complete "make clean all" cycle after
adjusting your configuration to enable gnutls, or after adding
--enable-utf8 to pcre?
Remember that Buildroot does not automatically rebuild packages: if you
enable gnutls, it will build gnutls, but it will not rebuild
glib-networking automatically.
If you can provide a simple test case (or maybe even an existing test
application for glib-networking) to reproduce the problem, it would
definitely be helpful. Same for the pcre / GRegex problem.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] glib-networking when using gtlsconnection fails
@ 2013-10-16 22:43 Bernhard Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Bernhard Schuster @ 2013-10-16 22:43 UTC (permalink / raw)
To: buildroot
I cleaned all direct dependencies manually via <project>-clean and
removing the apropriate .stamp_ entries in the output/build directory.
Demo code https://github.com/drahnr/buildrootbugdemo
Note: I do not have the machine at hand to test it right now, but I'd
really appreciate if somebody could give it a whirl.
Thanks a lot!
Best
Bernhard
On Wed, Oct 16, 2013 at 5:56 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Bernhard Schuster,
>
> On Wed, 16 Oct 2013 15:50:51 +0002, Bernhard Schuster wrote:
>
>> I am trying to cross compile a application which works just fine on
>> my
>> x86_64 machine for a ARMv5TE "gadget". Unfortunately something
>> really
>> weird happens: Altough having selected gnutls in order to use TLS
>> with
>> glib-networking (GTlsConnection), I always get an error as soon as
>> the
>> combined cert/key pem file is read (it exists, has proper
>> permissions,
>> all tripple checked). The error always contains "TLS unsupported"
>> or
>> "no TLS support" (can not recall, currently away from that machine)
>> altough the config.h of glib-networking says the opposite. The
>> binary
>> is statically compiled (which worked fine so far).
>>
>> I am puzzled on how to fix my issue, I already tried to fix it by
>> adding a couple of commandline opts explicitly (though they say
>> that
>> they are enabled by default, thus - as expected - nothing changed).
>>
>> Also note that I have a similar issue with pcre (required for
>> GRegex),
>> where I pass --enable-utf8 but it still did not fix anything.
>>
>> Any help, hint, tip is appreciated.
>>
>> Buildroot 2013.08 is used together with the code sourcery 2011/2013
>> toolchain
>>
> Just to be sure: did you do a complete "make clean all" cycle after
> adjusting your configuration to enable gnutls, or after adding
> --enable-utf8 to pcre?
>
> Remember that Buildroot does not automatically rebuild packages: if
> you
> enable gnutls, it will build gnutls, but it will not rebuild
> glib-networking automatically.
>
> If you can provide a simple test case (or maybe even an existing test
> application for glib-networking) to reproduce the problem, it would
> definitely be helpful. Same for the pcre / GRegex problem.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131016/900a4f09/attachment-0001.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] glib-networking when using gtlsconnection fails
2013-10-16 15:48 [Buildroot] glib-networking when using gtlsconnection fails Bernhard Schuster
2013-10-16 15:56 ` Thomas Petazzoni
@ 2013-10-17 19:48 ` Bernhard Schuster
2013-10-22 14:38 ` Thomas Petazzoni
1 sibling, 1 reply; 5+ messages in thread
From: Bernhard Schuster @ 2013-10-17 19:48 UTC (permalink / raw)
To: buildroot
The issue consisted of two issues:
pcre actually lacked the --enable-utf8 --enable-unicode-properties,
after adding them GRegex worked fine again.
The second issue is (most likely) related to how glib-networking is
loaded at runtime (dlopen?) and thus static linkage is doomed to fail,
though I have yet to prove this. Dynamic linking just works out of the
box.
Cheers
Bernhard
On Wed, Oct 16, 2013 at 5:48 PM, Bernhard Schuster
<schuster.bernhard@googlemail.com> wrote:
> Hi,
>
> I am trying to cross compile a application which works just fine on
> my x86_64 machine for a ARMv5TE "gadget". Unfortunately something
> really weird happens: Altough having selected gnutls in order to use
> TLS with glib-networking (GTlsConnection), I always get an error as
> soon as the combined cert/key pem file is read (it exists, has proper
> permissions, all tripple checked). The error always contains "TLS
> unsupported" or "no TLS support" (can not recall, currently away from
> that machine) altough the config.h of glib-networking says the
> opposite. The binary is statically compiled (which worked fine so
> far).
>
> I am puzzled on how to fix my issue, I already tried to fix it by
> adding a couple of commandline opts explicitly (though they say that
> they are enabled by default, thus - as expected - nothing changed).
>
> Also note that I have a similar issue with pcre (required for
> GRegex), where I pass --enable-utf8 but it still did not fix anything.
>
> Any help, hint, tip is appreciated.
>
> Buildroot 2013.08 is used together with the code sourcery 2011/2013
> toolchain
>
> Best
>
> Bernhard
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131017/bdba5cb8/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] glib-networking when using gtlsconnection fails
2013-10-17 19:48 ` Bernhard Schuster
@ 2013-10-22 14:38 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-10-22 14:38 UTC (permalink / raw)
To: buildroot
Dear Bernhard Schuster,
On Thu, 17 Oct 2013 19:50:55 +0002, Bernhard Schuster wrote:
> The issue consisted of two issues:
>
> pcre actually lacked the --enable-utf8 --enable-unicode-properties,
> after adding them GRegex worked fine again.
Can you provide a patch that fixes that?
> The second issue is (most likely) related to how glib-networking is
> loaded at runtime (dlopen?) and thus static linkage is doomed to fail,
> though I have yet to prove this. Dynamic linking just works out of the
> box.
Interesting. Could you investigate this a bit more, and if it turns out
to be true, ensure the packages get the proper "depends
on !BR2_PREFER_STATIC_LIB" dependencies?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-22 14:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 15:48 [Buildroot] glib-networking when using gtlsconnection fails Bernhard Schuster
2013-10-16 15:56 ` Thomas Petazzoni
2013-10-17 19:48 ` Bernhard Schuster
2013-10-22 14:38 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2013-10-16 22:43 Bernhard Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox