* [Buildroot] curl sagmentatation fault - > is openssl the culprit ?
@ 2012-03-16 14:52 Sagaert Johan
2012-03-16 15:53 ` Arnout Vandecappelle
0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2012-03-16 14:52 UTC (permalink / raw)
To: buildroot
Hi
Things are not always what they seem:
It seems to me that when the configure script of curl runs it checks for openssh, if none is found
Then it is build without openssl.
uClibc 0.9.32 and openssl seems no problem.
I gonna do some more builds (may take some time.)
======================================
GCC 4.5.3 : uClibc 0.9.33 (binutils 2.22)
======================================
BR2_PACKAGE_OPENSSL=y
# curl
Segmentation fault
#
# BR2_PACKAGE_OPENSSL is not set
# curl --version
curl 7.24.0 (arm-unknown-linux-gnu) libcurl/7.24.0 zlib/1.2.5
Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
Features: Largefile libz
#
======================================
GCC 4.5.3 : uClibc 0.9.32 (binutils 2.22) <-- now uClibc 0.9.32
======================================
BR2_PACKAGE_OPENSSL=y
# notice the SSL support
# curl --version
curl 7.24.0 (arm-unknown-linux-gnu) libcurl/7.24.0 OpenSSL/1.0.0g zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp
smtps telnet tftp
Features: Largefile NTLM NTLM_WB SSL libz
#
======================================
GCC 4.6.3 : uClibc 0.9.33 (binutils 2.22)
======================================
# curl --version
Segmentation fault
#
Gonna try some more, wished i had a 64 CPU machine with a total of 256 cores...
Sagaert Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] curl sagmentatation fault - > is openssl the culprit ?
2012-03-16 14:52 [Buildroot] curl sagmentatation fault - > is openssl the culprit ? Sagaert Johan
@ 2012-03-16 15:53 ` Arnout Vandecappelle
2012-03-16 16:08 ` [Buildroot] curl sagmentatation fault - > is openssl theculprit ? Sagaert Johan
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-03-16 15:53 UTC (permalink / raw)
To: buildroot
On Friday 16 March 2012 15:52:53 Sagaert Johan wrote:
> Hi
>
> Things are not always what they seem:
>
> It seems to me that when the configure script of curl runs it checks for openssh, if none is found
> Then it is build without openssl.
Hm, could be. Maybe try if other programs work with openssl, e.g.
lighttpd (make sure you configure it to use openssl).
But of course, that doesn't tell you what the real problem is... You'll
still need to get a strack trace.
[snip]
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] curl sagmentatation fault - > is openssl theculprit ?
2012-03-16 15:53 ` Arnout Vandecappelle
@ 2012-03-16 16:08 ` Sagaert Johan
2012-03-16 16:32 ` Gustavo Zacarias
0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2012-03-16 16:08 UTC (permalink / raw)
To: buildroot
Hi Arnout ;
I looked into the openssl.mk.
I don't know where armv4 stands for i am using arm9 on my target..
Snip....
# Some architectures are optimized in OpenSSL
ifeq ($(ARCH),arm)
ifneq ($(BR2_generic_arm),y)
ifneq ($(BR2_arm610),y)
ifneq ($(BR2_arm710),y)
OPENSSL_TARGET_ARCH = armv4
endif
endif
endif
endif
Snip...
This needs some more research...
Gone give it a try commenting it out.
Goede bezighouding voor in het weekend.....
Regards Johan
-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Arnout Vandecappelle
Verzonden: vrijdag 16 maart 2012 16:54
Aan: Sagaert Johan
CC: 'Thomas Petazzoni'; buildroot at busybox.net
Onderwerp: Re: [Buildroot] curl sagmentatation fault - > is openssl theculprit ?
On Friday 16 March 2012 15:52:53 Sagaert Johan wrote:
> Hi
>
> Things are not always what they seem:
>
> It seems to me that when the configure script of curl runs it checks
> for openssh, if none is found Then it is build without openssl.
Hm, could be. Maybe try if other programs work with openssl, e.g.
lighttpd (make sure you configure it to use openssl).
But of course, that doesn't tell you what the real problem is... You'll still need to get a strack trace.
[snip]
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F _______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] curl sagmentatation fault - > is openssl theculprit ?
2012-03-16 16:08 ` [Buildroot] curl sagmentatation fault - > is openssl theculprit ? Sagaert Johan
@ 2012-03-16 16:32 ` Gustavo Zacarias
0 siblings, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2012-03-16 16:32 UTC (permalink / raw)
To: buildroot
On 2012-03-16 13:08, Sagaert Johan wrote:
> Hi Arnout ;
>
> I looked into the openssl.mk.
>
> I don't know where armv4 stands for i am using arm9 on my target..
>
> Snip....
>
> # Some architectures are optimized in OpenSSL
> ifeq ($(ARCH),arm)
> ifneq ($(BR2_generic_arm),y)
> ifneq ($(BR2_arm610),y)
> ifneq ($(BR2_arm710),y)
> OPENSSL_TARGET_ARCH = armv4
> endif
> endif
> endif
> endif
>
> Snip...
>
> This needs some more research...
> Gone give it a try commenting it out.
Newer openssl versions incorporated ARM assembly optimizations which
require at least an ARMv4 ISA-capable processor to utilize them.
Similar to the optimizations already in place for PowerPC and others.
So it's just a basic check that you've got at least a v4-capable CPU as
target to enable them.
Regards.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-16 16:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 14:52 [Buildroot] curl sagmentatation fault - > is openssl the culprit ? Sagaert Johan
2012-03-16 15:53 ` Arnout Vandecappelle
2012-03-16 16:08 ` [Buildroot] curl sagmentatation fault - > is openssl theculprit ? Sagaert Johan
2012-03-16 16:32 ` Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox