Skip Menu |
 

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 97834
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Net-SSLeay

People
Owner: MIKEM [...] cpan.org
Requestors: Vincent.Riera [...] imgtec.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-2.568 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.668] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked
content-type: text/plain; charset="utf-8"; format="flowed"
Message-ID: <53E39524.5090408 [...] imgtec.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.568
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id EB381240427 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Thu, 7 Aug 2014 11:03:15 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Z4LhtLkFQse for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Thu, 7 Aug 2014 11:03:12 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 0401B24025D for <bug-Net-SSLeay [...] rt.cpan.org>; Thu, 7 Aug 2014 11:03:11 -0400 (EDT)
Received: (qmail 10100 invoked by alias); 7 Aug 2014 15:03:10 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 07 Aug 2014 08:03:07 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id ACF60DF4C94BB for <bug-Net-SSLeay [...] rt.cpan.org>; Thu, 7 Aug 2014 16:02:57 +0100 (IST)
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 7 Aug 2014 16:03:00 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 7 Aug 2014 16:02:59 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
Subject: Net-SSLeay fails to compile for MIPS
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Return-Path: <Vincent.Riera [...] imgtec.com>
X-RT-Mail-Extension: net-ssleay
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Thu, 7 Aug 2014 16:03:00 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
X-RT-Original-Encoding: iso-8859-1
X-RT-Interface: Email
Content-Length: 7292
Download (untitled) / with headers
text/plain 7.1k
Hello, I was trying to build Net-SSLeay for MIPS and I found that it fails to compile. OS: buildroot Net-SSLeay version: 1.65 Perl version: 5.18.2 SSL version: 1.0.1h For some reason the OPTIMIZE variable in "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 -mtune=generic" which cause the compilation to fail. This is the full build log. --------------------------------- $ make Show quoted text
>>> perl-net-ssleay 1.65 Extracting
gzip -d -c /buildroot/dl/Net-SSLeay-1.65.tar.gz | tar --strip-components=1 -C /buildroot/output/build/perl-net-ssleay-1.65 -xf - Show quoted text
>>> perl-net-ssleay 1.65 Patching
Applying perl-net-ssleay-0000-fix-build-system.patch using patch: patching file inc/Module/Install/PRIVATE/Net/SSLeay.pm Show quoted text
>>> perl-net-ssleay 1.65 Configuring
cd /buildroot/output/build/perl-net-ssleay-1.65/ && if [ -f Build.PL ] ; then OPENSSL_PREFIX=/buildroot/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr PERL_MM_USE_DEFAULT=1 perl Build.PL --config ar="/buildroot/output/host/usr/bin/mips-linux-gnu-ar" --config full_ar="/buildroot/output/host/usr/bin/mips-linux-gnu-ar" --config cc="/buildroot/output/host/usr/bin/mips-linux-gnu-gcc" --config ccflags="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os " --config ld="/buildroot/output/host/usr/bin/mips-linux-gnu-gcc" --config lddlflags="-shared " --config ldflags="" --include_dirs /buildroot/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/lib/perl5/5.18.2/mips64el-linux/CORE --destdir /buildroot/output/target --installdirs vendor --install_path lib=/usr/lib/perl5/site_perl/5.18.2 --install_path arch=/usr/lib/perl5/site_perl/5.18.2/mips64el-linux --install_path bin=/usr/bin --install_path script=/usr/bin --install_path bindoc=/usr/share/man/man1 --install_path libdoc=/usr/share/man/man3 ; else OPENSSL_PREFIX=/buildroot/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps perl Makefile.PL AR="/buildroot/output/host/usr/bin/mips-linux-gnu-ar" FULL_AR="/buildroot/output/host/usr/bin/mips-linux-gnu-ar" CC="/buildroot/output/host/usr/bin/mips-linux-gnu-gcc" CCFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os " LD="/buildroot/output/host/usr/bin/mips-linux-gnu-gcc" LDDLFLAGS="-shared " LDFLAGS="" DESTDIR=/buildroot/output/target INSTALLDIRS=vendor INSTALLVENDORLIB=/usr/lib/perl5/site_perl/5.18.2 INSTALLVENDORARCH=/usr/lib/perl5/site_perl/5.18.2/mips64el-linux INSTALLVENDORBIN=/usr/bin INSTALLVENDORSCRIPT=/usr/bin INSTALLVENDORMAN1DIR=/usr/share/man/man1 INSTALLVENDORMAN3DIR=/usr/share/man/man3 ; fi Checking if your kit is complete... Looks good Warning: Guessing NAME [perl-net-ssleay] from current directory name. *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] n Checking if your kit is complete... Looks good Writing Makefile for Net::SSLeay /bin/sed -i -e "s/^LDDLFLAGS = '\(.*\)'/LDDLFLAGS = \1/" /buildroot/output/build/perl-net-ssleay-1.65/Makefile /bin/sed -i -e "s/^CCFLAGS = '\(.*\)'/CCFLAGS = \1/" /buildroot/output/build/perl-net-ssleay-1.65/Makefile Show quoted text
>>> perl-net-ssleay 1.65 Building
cd /buildroot/output/build/perl-net-ssleay-1.65/ && if [ -f Build.PL ] ; then perl Build build; else /usr/bin/make -j1 PERL_INC=/buildroot/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/lib/perl5/5.18.2/mips64el-linux/CORE pure_all; fi make[1]: Entering directory `/buildroot/output/build/perl-net-ssleay-1.65' cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay) blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters: directory blib/lib/auto/Net/SSLeay: do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm /usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c /buildroot/output/host/usr/bin/mips-linux-gnu-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.65\" -DXS_VERSION=\"1.65\" -fPIC "-I/buildroot/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/lib/perl5/5.18.2/mips64el-linux/CORE" SSLeay.c mips-linux-gnu-gcc: error: unrecognized argument in option '-mtune=generic' mips-linux-gnu-gcc: note: valid arguments to '-mtune=' are: 10000 1004kc 1004kf 1004kf1_1 1004kf2_1 10k 12000 12k 14000 14k 16000 16k 2000 20kc 24kc 24kec 24kef 24kef1_1 24kef2_1 24kefx 24kex 24kf 24kf1_1 24kf2_1 24kfx 24kx 2k 3000 34kc 34kf 34kf1_1 34kf2_1 34kfx 34kn 34kx 3900 3k 4000 4100 4111 4120 4130 4300 4400 4600 4650 4700 4k 4kc 4kec 4kem 4kep 4km 4kp 4ksc 4ksd 5000 5400 5500 5k 5kc 5kf 6000 6k 7000 74kc 74kf 74kf1_1 74kf2_1 74kf3_2 74kfx 74kx 7k 8000 8k 9000 9k from-abi loongson2e loongson2f loongson3a m14k m14kc m14ke m14kec m4k mips1 mips2 mips3 mips32 mips32r2 mips4 mips64 mips64r2 native octeon octeon+ octeon2 orion r10000 r1004kc r1004kf r1004kf1_1 r1004kf2_1 r10k r12000 r12k r14000 r14k r16000 r16k r2000 r20kc r24kc r24kec r24kef r24kef1_1 r24kef2_1 r24kefx r24kex r24kf r24kf1_1 r24kf2_1 r24kfx r24kx r2k r3000 r34kc r34kf r34kf1_1 r34kf2_1 r34kfx r34kn r34kx r3900 r3k r4000 r4100 r4111 r4120 r4130 r4300 r4400 r4600 r4650 r4700 r4k r4kc r4kec r4kem r4kep r4km r4kp r4ksc r4ksd r5000 r5400 r5500 r5k r5kc r5kf r6000 r6k r7000 r74kc r74kf r74kf1_1 r74kf2_1 r74kf3_2 r74kfx r74kx r7k r8000 r8k r9000 r9k rm7000 rm7k rm9000 rm9k sb1 sb1a sr71000 sr71k vr4100 vr4111 vr4120 vr4130 vr4300 vr5000 vr5400 vr5500 vr5k xlp xlr mips-linux-gnu-gcc: error: unrecognized command line option '-m64' make[1]: *** [SSLeay.o] Error 1 make[1]: Leaving directory `/buildroot/output/build/perl-net-ssleay-1.65' make: *** [/buildroot/output/build/perl-net-ssleay-1.65/.stamp_built] Error 2 --------------------------------- -- Vincent
MIME-Version: 1.0
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-Source-Sender: (zulu.localnet) [58.96.35.135]:60036
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.598
X-Source-Cap: bWlrZW07bWlrZW07Z2F0b3I0MTI5Lmhvc3RnYXRvci5jb20=
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 81D8C240471 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Thu, 7 Aug 2014 16:38:37 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P--6wh+FlROE for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Thu, 7 Aug 2014 16:38:36 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3B9C42403E6 for <bug-Net-SSLeay [...] rt.cpan.org>; Thu, 7 Aug 2014 16:38:35 -0400 (EDT)
Received: (qmail 30645 invoked by alias); 7 Aug 2014 20:38:35 -0000
Received: from gateway06.websitewelcome.com (HELO gateway06.websitewelcome.com) (69.56.195.6) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 07 Aug 2014 13:38:33 -0700
Received: by gateway06.websitewelcome.com (Postfix, from userid 5007) id 6AC7C3B024D45; Thu, 7 Aug 2014 15:38:29 -0500 (CDT)
Received: from gator4129.hostgator.com (gator4129.hostgator.com [192.185.4.141]) by gateway06.websitewelcome.com (Postfix) with ESMTP id 5FF683B024D20 for <bug-Net-SSLeay [...] rt.cpan.org>; Thu, 7 Aug 2014 15:38:29 -0500 (CDT)
Received: from [58.96.35.135] (port=60036 helo=zulu.localnet) by gator4129.hostgator.com with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from <mikem [...] airspayce.com>) id 1XFUSC-00034m-U6 for bug-Net-SSLeay [...] rt.cpan.org; Thu, 07 Aug 2014 15:38:29 -0500
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 08 Aug 2014 06:38:26 +1000
X-Spam-Level:
X-Bwhitelist: no
To: bug-Net-SSLeay [...] rt.cpan.org
Content-Transfer-Encoding: 7Bit
X-Source:
X-Source-Args:
In-Reply-To: <rt-4.0.18-5082-1407423797-394.97834-4-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.598 tagged_above=-99.9 required=10 tests=[AWL=0.302, BAYES_00=-1.9, FROM_OUR_RT=-2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Source-Dir:
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E39524.5090408 [...] imgtec.com> <rt-4.0.18-5082-1407423797-394.97834-4-0 [...] rt.cpan.org>
Message-ID: <5328449.A1sZk7sdYs [...] zulu>
X-Source-Auth: mikem [...] airspayce.com
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - gator4129.hostgator.com
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - airspayce.com
Organization: AirSpayce Pty Ltd
X-Source-Ip: 58.96.35.135
User-Agent: KMail/4.11.5 (Linux/3.11.10-17-desktop; KDE/4.11.5; i686; ; )
Return-Path: <mikem [...] airspayce.com>
X-RT-Mail-Extension: net-ssleay
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-Exim-ID: 1XFUSC-00034m-U6
X-Email-Count: 1
From: Mike McCauley <mikem [...] airspayce.com>
RT-Message-ID: <rt-4.0.18-5437-1407443918-1544.97834-0-0 [...] rt.cpan.org>
Content-Length: 1218
Download (untitled) / with headers
text/plain 1.1k
Hello Vincent, Thanks for your report. Unfortunately I have no way to test on MIPS, so think you are on your own. If you find a suitable fix, pls send a patch and I will include it in the distro. Cheers. On Thursday, August 07, 2014 11:03:18 AM you wrote: Show quoted text
> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. > Transaction: Ticket created by Vincent.Riera@imgtec.com > Queue: Net-SSLeay > Subject: Net-SSLeay fails to compile for MIPS > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: Vincent.Riera@imgtec.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > > Hello, > > I was trying to build Net-SSLeay for MIPS and I found that it fails to > compile. > > OS: buildroot > Net-SSLeay version: 1.65 > Perl version: 5.18.2 > SSL version: 1.0.1h > > For some reason the OPTIMIZE variable in > "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 > -mtune=generic" which cause the compilation to fail. >
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474
MIME-Version: 1.0
X-Spam-Status: No, score=-3.568 tagged_above=-99.9 required=10 tests=[AWL=1.000, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <rt-4.0.18-5437-1407443919-675.97834-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E39524.5090408 [...] imgtec.com> <rt-4.0.18-5082-1407423797-394.97834-4-0 [...] rt.cpan.org> <5328449.A1sZk7sdYs [...] zulu> <rt-4.0.18-5437-1407443919-675.97834-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53E48D36.3060702 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.568
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2A1CB240479 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 04:41:37 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XBFyNjj3xwz0 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 04:41:35 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6259B240420 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 04:41:35 -0400 (EDT)
Received: (qmail 11049 invoked by alias); 8 Aug 2014 08:41:35 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Aug 2014 01:41:32 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 573F95DF94CC8 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 09:41:25 +0100 (IST)
Received: from KLMAIL02.kl.imgtec.org (10.40.60.222) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 09:41:26 +0100
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by klmail02.kl.imgtec.org (10.40.60.222) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 09:41:26 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 09:41:25 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Fri, 8 Aug 2014 09:41:26 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-17311-1407487297-636.97834-0-0 [...] rt.cpan.org>
Content-Length: 1405
Download (untitled) / with headers
text/plain 1.3k
Hello Mike, you don't need MIPS hardware to test it on MIPS. You can cross-compile, using Buildroot, for instance. Or I could do it if you want. Could you please send me some patches I can try? Thanks. On 08/07/2014 09:38 PM, Mike McCauley via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hello Vincent, > > Thanks for your report. > Unfortunately I have no way to test on MIPS, so think you are on your own. > If you find a suitable fix, pls send a patch and I will include it in the > distro. > > Cheers. > > On Thursday, August 07, 2014 11:03:18 AM you wrote:
>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. >> Transaction: Ticket created by Vincent.Riera@imgtec.com >> Queue: Net-SSLeay >> Subject: Net-SSLeay fails to compile for MIPS >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: Vincent.Riera@imgtec.com >> Status: new >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >> >> >> Hello, >> >> I was trying to build Net-SSLeay for MIPS and I found that it fails to >> compile. >> >> OS: buildroot >> Net-SSLeay version: 1.65 >> Perl version: 5.18.2 >> SSL version: 1.0.1h >> >> For some reason the OPTIMIZE variable in >> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 >> -mtune=generic" which cause the compilation to fail. >>
> >
-- Vincent
MIME-Version: 1.0
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-Source-Sender: (zulu.localnet) [58.96.35.135]:37335
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.608
X-Source-Cap: bWlrZW07bWlrZW07Z2F0b3I0MTI5Lmhvc3RnYXRvci5jb20=
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 03D7F240483 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 04:48:40 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Iuryxca9y-ec for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 04:48:38 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 66B14240420 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 04:48:38 -0400 (EDT)
Received: (qmail 11425 invoked by alias); 8 Aug 2014 08:48:37 -0000
Received: from gateway05.websitewelcome.com (HELO gateway05.websitewelcome.com) (69.56.195.29) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Aug 2014 01:48:36 -0700
Received: by gateway05.websitewelcome.com (Postfix, from userid 5007) id CC7CF41394DB8; Fri, 8 Aug 2014 03:48:31 -0500 (CDT)
Received: from gator4129.hostgator.com (gator4129.hostgator.com [192.185.4.141]) by gateway05.websitewelcome.com (Postfix) with ESMTP id C77DE41394D97 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 03:48:31 -0500 (CDT)
Received: from [58.96.35.135] (port=37335 helo=zulu.localnet) by gator4129.hostgator.com with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from <mikem [...] airspayce.com>) id 1XFfqh-0005my-AK for bug-Net-SSLeay [...] rt.cpan.org; Fri, 08 Aug 2014 03:48:31 -0500
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 08 Aug 2014 18:48:27 +1000
X-Spam-Level:
X-Bwhitelist: no
To: bug-Net-SSLeay [...] rt.cpan.org
Content-Transfer-Encoding: 7Bit
X-Source:
X-Source-Args:
In-Reply-To: <rt-4.0.18-17311-1407487297-1878.97834-5-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.608 tagged_above=-99.9 required=10 tests=[AWL=0.292, BAYES_00=-1.9, FROM_OUR_RT=-2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Source-Dir:
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E48D36.3060702 [...] imgtec.com> <rt-4.0.18-17311-1407487297-1878.97834-5-0 [...] rt.cpan.org>
Message-ID: <12042006.WpG16eWi25 [...] zulu>
X-Source-Auth: mikem [...] airspayce.com
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - gator4129.hostgator.com
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - airspayce.com
Organization: AirSpayce Pty Ltd
X-Source-Ip: 58.96.35.135
User-Agent: KMail/4.11.5 (Linux/3.11.10-17-desktop; KDE/4.11.5; i686; ; )
Return-Path: <mikem [...] airspayce.com>
X-RT-Mail-Extension: net-ssleay
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-Exim-ID: 1XFfqh-0005my-AK
X-Email-Count: 1
From: Mike McCauley <mikem [...] airspayce.com>
RT-Message-ID: <rt-4.0.18-17311-1407487720-208.97834-0-0 [...] rt.cpan.org>
Content-Length: 2068
Hello, I wont be able to build any MIPS tests. I think its over to you... If you find a suitable fix, pls send a patch and I will include it in the distro. Cheers. On Friday, August 08, 2014 04:41:38 AM you wrote: Show quoted text
> Queue: Net-SSLeay > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hello Mike, > > you don't need MIPS hardware to test it on MIPS. You can cross-compile, > using Buildroot, for instance. Or I could do it if you want. > > Could you please send me some patches I can try? > > Thanks. > > On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > > > Hello Vincent, > > > > Thanks for your report. > > Unfortunately I have no way to test on MIPS, so think you are on your > > own. > > If you find a suitable fix, pls send a patch and I will include it in the > > distro. > > > > Cheers. > > > > On Thursday, August 07, 2014 11:03:18 AM you wrote:
> >> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. > >> Transaction: Ticket created by Vincent.Riera@imgtec.com > >> > >> Queue: Net-SSLeay > >> > >> Subject: Net-SSLeay fails to compile for MIPS > >> > >> Broken in: (no value) > >> > >> Severity: (no value) > >> > >> Owner: Nobody > >> > >> Requestors: Vincent.Riera@imgtec.com > >> > >> Status: new > >> > >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >> > >> Hello, > >> > >> I was trying to build Net-SSLeay for MIPS and I found that it fails to > >> compile. > >> > >> OS: buildroot > >> Net-SSLeay version: 1.65 > >> Perl version: 5.18.2 > >> SSL version: 1.0.1h > >> > >> For some reason the OPTIMIZE variable in > >> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 > >> -mtune=generic" which cause the compilation to fail.
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474
MIME-Version: 1.0
X-Spam-Status: No, score=-4.068 tagged_above=-99.9 required=10 tests=[AWL=0.500, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <rt-4.0.18-17311-1407487720-186.97834-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E48D36.3060702 [...] imgtec.com> <rt-4.0.18-17311-1407487297-1878.97834-5-0 [...] rt.cpan.org> <12042006.WpG16eWi25 [...] zulu> <rt-4.0.18-17311-1407487720-186.97834-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53E4A988.10106 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.068
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C16FF240479 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 06:42:27 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KTsyAsQtwGqo for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 06:42:26 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 69D69240420 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 06:42:26 -0400 (EDT)
Received: (qmail 18500 invoked by alias); 8 Aug 2014 10:42:25 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Aug 2014 03:42:22 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 46F8ACD0111CA for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 11:42:14 +0100 (IST)
Received: from KLMAIL02.kl.imgtec.org (10.40.60.222) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 11:42:16 +0100
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by klmail02.kl.imgtec.org (10.40.60.222) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 11:42:16 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 11:42:15 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Fri, 8 Aug 2014 11:42:16 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-19505-1407494548-925.97834-0-0 [...] rt.cpan.org>
Content-Length: 3242
Download (untitled) / with headers
text/plain 3.1k
I'm not good at perl and I don't know anything about perl build systems, so if you don't help me I won't be able to fix this. Could you please tell me who is the responsible to write this in the Makefile? OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file and commented this line: OPTIMIZE => $opts->{optimize}, And the OPTIMIZE variable in the Makefile keeps being populated with the same value. However, if I change it to this: OPTIMIZE => "-O2", then, the OPTIMIZE variable in the Makefile has this value: OPTIMIZE = -O2 And however, if I change it to this: OPTIMIZE => "", then, the OPTIMIZE variable in the Makefile is populated again with: OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic So, it seems if the OPTIMIZE variable in the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or not exists at all), some default mechanism puts the OPTIMIZE variable in the Makefile with all of those values, which include "-m64 -mtune=generic" and make it fail for MIPS. On 08/08/2014 09:48 AM, Mike McCauley via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hello, > > I wont be able to build any MIPS tests. I think its over to you... > If you find a suitable fix, pls send a patch and I will include it in the > distro. > > Cheers. > > > On Friday, August 08, 2014 04:41:38 AM you wrote:
>> Queue: Net-SSLeay >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >> >> Hello Mike, >> >> you don't need MIPS hardware to test it on MIPS. You can cross-compile, >> using Buildroot, for instance. Or I could do it if you want. >> >> Could you please send me some patches I can try? >> >> Thanks. >> >> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>> >>> Hello Vincent, >>> >>> Thanks for your report. >>> Unfortunately I have no way to test on MIPS, so think you are on your >>> own. >>> If you find a suitable fix, pls send a patch and I will include it in the >>> distro. >>> >>> Cheers. >>> >>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. >>>> Transaction: Ticket created by Vincent.Riera@imgtec.com >>>> >>>> Queue: Net-SSLeay >>>> >>>> Subject: Net-SSLeay fails to compile for MIPS >>>> >>>> Broken in: (no value) >>>> >>>> Severity: (no value) >>>> >>>> Owner: Nobody >>>> >>>> Requestors: Vincent.Riera@imgtec.com >>>> >>>> Status: new >>>> >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>> >>>> Hello, >>>> >>>> I was trying to build Net-SSLeay for MIPS and I found that it fails to >>>> compile. >>>> >>>> OS: buildroot >>>> Net-SSLeay version: 1.65 >>>> Perl version: 5.18.2 >>>> SSL version: 1.0.1h >>>> >>>> For some reason the OPTIMIZE variable in >>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 >>>> -mtune=generic" which cause the compilation to fail.
>
-- Vincent
MIME-Version: 1.0
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-Source-Sender: (zulu.localnet) [58.96.35.135]:39815
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.612
X-Source-Cap: bWlrZW07bWlrZW07Z2F0b3I0MTI5Lmhvc3RnYXRvci5jb20=
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id EDC37240350 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 08:07:53 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B3R8jcwyr-kO for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 08:07:52 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 404442400AD for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 08:07:52 -0400 (EDT)
Received: (qmail 24539 invoked by alias); 8 Aug 2014 12:07:51 -0000
Received: from gateway01.websitewelcome.com (HELO gateway01.websitewelcome.com) (67.18.80.19) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Aug 2014 05:07:50 -0700
Received: by gateway01.websitewelcome.com (Postfix, from userid 5007) id 5F56E4B14EF2; Fri, 8 Aug 2014 07:07:46 -0500 (CDT)
Received: from gator4129.hostgator.com (gator4129.hostgator.com [192.185.4.141]) by gateway01.websitewelcome.com (Postfix) with ESMTP id 5ABD74B14ED1 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 07:07:46 -0500 (CDT)
Received: from [58.96.35.135] (port=39815 helo=zulu.localnet) by gator4129.hostgator.com with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from <mikem [...] airspayce.com>) id 1XFixV-0003Zj-QZ for bug-Net-SSLeay [...] rt.cpan.org; Fri, 08 Aug 2014 07:07:46 -0500
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 08 Aug 2014 22:07:43 +1000
X-Spam-Level:
X-Bwhitelist: no
To: bug-Net-SSLeay [...] rt.cpan.org
Content-Transfer-Encoding: 7Bit
X-Source:
X-Source-Args:
In-Reply-To: <rt-4.0.18-19505-1407494548-1754.97834-5-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.612 tagged_above=-99.9 required=10 tests=[AWL=0.288, BAYES_00=-1.9, FROM_OUR_RT=-2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Source-Dir:
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E4A988.10106 [...] imgtec.com> <rt-4.0.18-19505-1407494548-1754.97834-5-0 [...] rt.cpan.org>
Message-ID: <3225666.LFUAjnlAme [...] zulu>
X-Source-Auth: mikem [...] airspayce.com
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - gator4129.hostgator.com
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - airspayce.com
Organization: AirSpayce Pty Ltd
X-Source-Ip: 58.96.35.135
User-Agent: KMail/4.11.5 (Linux/3.11.10-17-desktop; KDE/4.11.5; i686; ; )
Return-Path: <mikem [...] airspayce.com>
X-RT-Mail-Extension: net-ssleay
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-Exim-ID: 1XFixV-0003Zj-QZ
X-Email-Count: 1
From: Mike McCauley <mikem [...] airspayce.com>
RT-Message-ID: <rt-4.0.18-17030-1407499674-1034.97834-0-0 [...] rt.cpan.org>
Content-Length: 4010
Download (untitled) / with headers
text/plain 3.9k
Hello, On Friday, August 08, 2014 06:42:29 AM you wrote: Show quoted text
> Queue: Net-SSLeay > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > I'm not good at perl and I don't know anything about perl build systems, > so if you don't help me I won't be able to fix this.
I dont have a MIPS cross compiler and cannot help you. try changing to OPTIMIZE => " ", with a space Cheers. Show quoted text
> > Could you please tell me who is the responsible to write this in the > Makefile? > > OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions Show quoted text
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > > Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" > file and commented this line: > > OPTIMIZE => $opts->{optimize}, > > And the OPTIMIZE variable in the Makefile keeps being populated with the > same value. > > However, if I change it to this: > > OPTIMIZE => "-O2", > > then, the OPTIMIZE variable in the Makefile has this value: > > OPTIMIZE = -O2 > > And however, if I change it to this: > > OPTIMIZE => "", > > then, the OPTIMIZE variable in the Makefile is populated again with: > > OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > > So, it seems if the OPTIMIZE variable in the > "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or > not exists at all), some default mechanism puts the OPTIMIZE variable in > the Makefile with all of those values, which include "-m64 > -mtune=generic" and make it fail for MIPS. > > On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > > > Hello, > > > > I wont be able to build any MIPS tests. I think its over to you... > > If you find a suitable fix, pls send a patch and I will include it in the > > distro. > > > > Cheers. > > > > On Friday, August 08, 2014 04:41:38 AM you wrote:
> >> Queue: Net-SSLeay > >> > >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >> > >> Hello Mike, > >> > >> you don't need MIPS hardware to test it on MIPS. You can cross-compile, > >> using Buildroot, for instance. Or I could do it if you want. > >> > >> Could you please send me some patches I can try? > >> > >> Thanks. > >> > >> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
> >>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>> > >>> Hello Vincent, > >>> > >>> Thanks for your report. > >>> Unfortunately I have no way to test on MIPS, so think you are on your > >>> own. > >>> If you find a suitable fix, pls send a patch and I will include it in > >>> the > >>> distro. > >>> > >>> Cheers. > >>> > >>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
> >>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. > >>>> Transaction: Ticket created by Vincent.Riera@imgtec.com > >>>> > >>>> Queue: Net-SSLeay > >>>> > >>>> Subject: Net-SSLeay fails to compile for MIPS > >>>> > >>>> Broken in: (no value) > >>>> > >>>> Severity: (no value) > >>>> > >>>> Owner: Nobody > >>>> > >>>> Requestors: Vincent.Riera@imgtec.com > >>>> > >>>> Status: new > >>>> > >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>> > >>>> Hello, > >>>> > >>>> I was trying to build Net-SSLeay for MIPS and I found that it fails to > >>>> compile. > >>>> > >>>> OS: buildroot > >>>> Net-SSLeay version: 1.65 > >>>> Perl version: 5.18.2 > >>>> SSL version: 1.0.1h > >>>> > >>>> For some reason the OPTIMIZE variable in > >>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 > >>>> -mtune=generic" which cause the compilation to fail.
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474
MIME-Version: 1.0
X-Spam-Status: No, score=-4.235 tagged_above=-99.9 required=10 tests=[AWL=0.333, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <rt-4.0.18-17030-1407499675-315.97834-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E4A988.10106 [...] imgtec.com> <rt-4.0.18-19505-1407494548-1754.97834-5-0 [...] rt.cpan.org> <3225666.LFUAjnlAme [...] zulu> <rt-4.0.18-17030-1407499675-315.97834-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53E4DF67.8010101 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.235
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id A80CB2404C5 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 10:32:19 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xGB5nU0v2Ts2 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 10:32:18 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id E79C52404C2 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 10:32:17 -0400 (EDT)
Received: (qmail 3328 invoked by alias); 8 Aug 2014 14:32:17 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Aug 2014 07:32:15 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 3E265BA1519E5 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 15:32:05 +0100 (IST)
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 15:32:08 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 8 Aug 2014 15:32:07 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Fri, 8 Aug 2014 15:32:07 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-6638-1407508340-1741.97834-0-0 [...] rt.cpan.org>
Content-Length: 3851
Download (untitled) / with headers
text/plain 3.7k
Hello, On 08/08/2014 01:07 PM, Mike McCauley via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > I dont have a MIPS cross compiler and cannot help you.
Well, you can use the Mentor toolchain which is free: https://sourcery.mentor.com/GNUToolchain/release2791 Show quoted text
> try changing to > OPTIMIZE => " ", > with a space
It works. But do you think that's a good solution to apply upstream? Cheers, -- Vincent Show quoted text
> Cheers. >
>> >> Could you please tell me who is the responsible to write this in the >> Makefile? >> >> OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall -Wp,-
> D_FORTIFY_SOURCE=2 -fexceptions
>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >> >> Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" >> file and commented this line: >> >> OPTIMIZE => $opts->{optimize}, >> >> And the OPTIMIZE variable in the Makefile keeps being populated with the >> same value. >> >> However, if I change it to this: >> >> OPTIMIZE => "-O2", >> >> then, the OPTIMIZE variable in the Makefile has this value: >> >> OPTIMIZE = -O2 >> >> And however, if I change it to this: >> >> OPTIMIZE => "", >> >> then, the OPTIMIZE variable in the Makefile is populated again with: >> >> OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >> >> So, it seems if the OPTIMIZE variable in the >> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or >> not exists at all), some default mechanism puts the OPTIMIZE variable in >> the Makefile with all of those values, which include "-m64 >> -mtune=generic" and make it fail for MIPS. >> >> On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>> >>> Hello, >>> >>> I wont be able to build any MIPS tests. I think its over to you... >>> If you find a suitable fix, pls send a patch and I will include it in the >>> distro. >>> >>> Cheers. >>> >>> On Friday, August 08, 2014 04:41:38 AM you wrote:
>>>> Queue: Net-SSLeay >>>> >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>> >>>> Hello Mike, >>>> >>>> you don't need MIPS hardware to test it on MIPS. You can cross-compile, >>>> using Buildroot, for instance. Or I could do it if you want. >>>> >>>> Could you please send me some patches I can try? >>>> >>>> Thanks. >>>> >>>> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>> >>>>> Hello Vincent, >>>>> >>>>> Thanks for your report. >>>>> Unfortunately I have no way to test on MIPS, so think you are on your >>>>> own. >>>>> If you find a suitable fix, pls send a patch and I will include it in >>>>> the >>>>> distro. >>>>> >>>>> Cheers. >>>>> >>>>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
>>>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. >>>>>> Transaction: Ticket created by Vincent.Riera@imgtec.com >>>>>> >>>>>> Queue: Net-SSLeay >>>>>> >>>>>> Subject: Net-SSLeay fails to compile for MIPS >>>>>> >>>>>> Broken in: (no value) >>>>>> >>>>>> Severity: (no value) >>>>>> >>>>>> Owner: Nobody >>>>>> >>>>>> Requestors: Vincent.Riera@imgtec.com >>>>>> >>>>>> Status: new >>>>>> >>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>> >>>>>> Hello, >>>>>> >>>>>> I was trying to build Net-SSLeay for MIPS and I found that it fails to >>>>>> compile. >>>>>> >>>>>> OS: buildroot >>>>>> Net-SSLeay version: 1.65 >>>>>> Perl version: 5.18.2 >>>>>> SSL version: 1.0.1h >>>>>> >>>>>> For some reason the OPTIMIZE variable in >>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 >>>>>> -mtune=generic" which cause the compilation to fail.
>
-- Vincent
MIME-Version: 1.0
X-Spam-Flag: NO
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-Source-Sender: (zulu.localnet) [58.96.35.135]:45644
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.617
X-Source-Cap: bWlrZW07bWlrZW07Z2F0b3I0MTI5Lmhvc3RnYXRvci5jb20=
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id A6D78240420 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 17:42:15 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kFeRw6XDBxSP for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 8 Aug 2014 17:42:13 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 94116240350 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 17:42:13 -0400 (EDT)
Received: (qmail 1537 invoked by alias); 8 Aug 2014 21:42:11 -0000
Received: from gateway06.websitewelcome.com (HELO gateway06.websitewelcome.com) (67.18.103.12) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 Aug 2014 14:42:09 -0700
Received: by gateway06.websitewelcome.com (Postfix, from userid 5007) id 2CD523D9FB459; Fri, 8 Aug 2014 16:42:05 -0500 (CDT)
Received: from gator4129.hostgator.com (gator4129.hostgator.com [192.185.4.141]) by gateway06.websitewelcome.com (Postfix) with ESMTP id 220213D9FB419 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 8 Aug 2014 16:42:05 -0500 (CDT)
Received: from [58.96.35.135] (port=45644 helo=zulu.localnet) by gator4129.hostgator.com with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from <mikem [...] airspayce.com>) id 1XFrvI-0001xZ-KU for bug-Net-SSLeay [...] rt.cpan.org; Fri, 08 Aug 2014 16:42:04 -0500
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
X-Spam-Check-BY: la.mx.develooper.com
Date: Sat, 09 Aug 2014 07:42:02 +1000
X-Spam-Level:
X-Bwhitelist: no
To: bug-Net-SSLeay [...] rt.cpan.org
Content-Transfer-Encoding: 7Bit
X-Source:
X-Source-Args:
In-Reply-To: <rt-4.0.18-6638-1407508340-1803.97834-5-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.617 tagged_above=-99.9 required=10 tests=[AWL=0.283, BAYES_00=-1.9, FROM_OUR_RT=-2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Source-Dir:
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E4DF67.8010101 [...] imgtec.com> <rt-4.0.18-6638-1407508340-1803.97834-5-0 [...] rt.cpan.org>
Message-ID: <19561282.TnnHSPVyJt [...] zulu>
X-Source-Auth: mikem [...] airspayce.com
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - gator4129.hostgator.com
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - airspayce.com
Organization: AirSpayce Pty Ltd
X-Source-Ip: 58.96.35.135
User-Agent: KMail/4.11.5 (Linux/3.11.10-17-desktop; KDE/4.11.5; i686; ; )
Return-Path: <mikem [...] airspayce.com>
X-RT-Mail-Extension: net-ssleay
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-Exim-ID: 1XFrvI-0001xZ-KU
X-Email-Count: 2
From: Mike McCauley <mikem [...] airspayce.com>
RT-Message-ID: <rt-4.0.18-14725-1407534136-1887.97834-0-0 [...] rt.cpan.org>
Content-Length: 5045
Download (untitled) / with headers
text/plain 4.9k
Hello, what you will need to do is add some code to inc/Module/Install/PRIVATE/Net/SSLeay.pm at about line 136. This is where build-and-platform specific compiler flags are set up. You will need to uniquely detect the case where you are compiling for MIPS, or maybe using the MIPS compiler, and set $opts->{optimize} to ' ' (ie a space) or whatever flaghs make sense for your case. After you have tested it, send me a context diff and I will included it in the base code. Cheers. On Friday, August 08, 2014 10:32:21 AM you wrote: Show quoted text
> Queue: Net-SSLeay > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hello, > > On 08/08/2014 01:07 PM, Mike McCauley via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > I dont have a MIPS cross compiler and cannot help you.
> > Well, you can use the Mentor toolchain which is free: > > https://sourcery.mentor.com/GNUToolchain/release2791 >
> > try changing to > > OPTIMIZE => " ", > > with a space
> > It works. But do you think that's a good solution to apply upstream? > > Cheers, > -- > Vincent >
> > Cheers. > >
> >> Could you please tell me who is the responsible to write this in the > >> Makefile? > >> > >> OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall > >> -Wp,-
> > > > D_FORTIFY_SOURCE=2 -fexceptions > >
> >> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > >> > >> Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" > >> file and commented this line: > >> > >> OPTIMIZE => $opts->{optimize}, > >> > >> And the OPTIMIZE variable in the Makefile keeps being populated with the > >> same value. > >> > >> However, if I change it to this: > >> > >> OPTIMIZE => "-O2", > >> > >> then, the OPTIMIZE variable in the Makefile has this value: > >> > >> OPTIMIZE = -O2 > >> > >> And however, if I change it to this: > >> > >> OPTIMIZE => "", > >> > >> then, the OPTIMIZE variable in the Makefile is populated again with: > >> > >> OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > >> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > >> > >> So, it seems if the OPTIMIZE variable in the > >> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or > >> not exists at all), some default mechanism puts the OPTIMIZE variable in > >> the Makefile with all of those values, which include "-m64 > >> -mtune=generic" and make it fail for MIPS. > >> > >> On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
> >>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>> > >>> Hello, > >>> > >>> I wont be able to build any MIPS tests. I think its over to you... > >>> If you find a suitable fix, pls send a patch and I will include it in > >>> the > >>> distro. > >>> > >>> Cheers. > >>> > >>> On Friday, August 08, 2014 04:41:38 AM you wrote:
> >>>> Queue: Net-SSLeay > >>>> > >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>> > >>>> Hello Mike, > >>>> > >>>> you don't need MIPS hardware to test it on MIPS. You can cross-compile, > >>>> using Buildroot, for instance. Or I could do it if you want. > >>>> > >>>> Could you please send me some patches I can try? > >>>> > >>>> Thanks. > >>>> > >>>> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
> >>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>>> > >>>>> Hello Vincent, > >>>>> > >>>>> Thanks for your report. > >>>>> Unfortunately I have no way to test on MIPS, so think you are on your > >>>>> own. > >>>>> If you find a suitable fix, pls send a patch and I will include it in > >>>>> the > >>>>> distro. > >>>>> > >>>>> Cheers. > >>>>> > >>>>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
> >>>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. > >>>>>> Transaction: Ticket created by Vincent.Riera@imgtec.com > >>>>>> > >>>>>> Queue: Net-SSLeay > >>>>>> > >>>>>> Subject: Net-SSLeay fails to compile for MIPS > >>>>>> > >>>>>> Broken in: (no value) > >>>>>> > >>>>>> Severity: (no value) > >>>>>> > >>>>>> Owner: Nobody > >>>>>> > >>>>>> Requestors: Vincent.Riera@imgtec.com > >>>>>> > >>>>>> Status: new > >>>>>> > >>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>>>> > >>>>>> Hello, > >>>>>> > >>>>>> I was trying to build Net-SSLeay for MIPS and I found that it fails > >>>>>> to > >>>>>> compile. > >>>>>> > >>>>>> OS: buildroot > >>>>>> Net-SSLeay version: 1.65 > >>>>>> Perl version: 5.18.2 > >>>>>> SSL version: 1.0.1h > >>>>>> > >>>>>> For some reason the OPTIMIZE variable in > >>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 > >>>>>> -mtune=generic" which cause the compilation to fail.
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474
MIME-Version: 1.0
X-Spam-Status: No, score=-4.318 tagged_above=-99.9 required=10 tests=[AWL=0.250, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <rt-4.0.18-14725-1407534137-587.97834-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E4DF67.8010101 [...] imgtec.com> <rt-4.0.18-6638-1407508340-1803.97834-5-0 [...] rt.cpan.org> <19561282.TnnHSPVyJt [...] zulu> <rt-4.0.18-14725-1407534137-587.97834-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53E8DA88.6090209 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.318
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 3E1242404FB for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 11 Aug 2014 11:00:42 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QovZKt353CKB for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 11 Aug 2014 11:00:37 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3769F2404FA for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 11 Aug 2014 11:00:37 -0400 (EDT)
Received: (qmail 3254 invoked by alias); 11 Aug 2014 15:00:35 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 11 Aug 2014 08:00:31 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 5DFE753308BC2 for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 11 Aug 2014 16:00:22 +0100 (IST)
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 11 Aug 2014 16:00:25 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 11 Aug 2014 16:00:24 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Mon, 11 Aug 2014 16:00:24 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-5990-1407769243-768.97834-0-0 [...] rt.cpan.org>
Content-Length: 6496
Download (untitled) / with headers
text/plain 6.3k
Hello Mike, first I apologize because I have found this is not a failure in the Net-SSLeay package itself. I think I have found what the problem is. Let me explain it to you. In the Buildroot tool we are cross-compiling a full Linux root filesystem for another architecture. In this case, I run the Buildroot tool in my x86_64 machine to build a MIPS (or any other architecture) root filesystem. The Net-SSLeay build system uses the Config module (use Config;), and that modules has a read only variable (%Config) which has all the information that the Configure program had during the Perl build time. Given that Perl is needed to build Net-SSLeay, and given that my machine is an x86_64 (cannot run MIPS code on it), it's obvious that my x86_64 Perl is used during the Net-SSLeay build. Then, the %Config variable has all the information that the Configure program had during the build time of my x86_64 Perl. That's why we see those flags (-m64 -mtune=generic) in the OPTIMIZE variable, because they are taken from the %Config variable. So, I have a question for you. Is there a way to use the Config module of the Perl we build for the target? This wouldn't be a fix to go upstream. It would be just a fix for the Buildroot distribution. Before building the Net-SSLeay package, we build Perl, and the Config module is located in "/BR/output/staging/usr/lib/perl5/5.18.2/mipsel-linux/Config.pm". How could we patch the Makefile.PL to make it use that Config module instead of the one in my host's Perl? Thanks in advance. On 08/08/2014 10:42 PM, Mike McCauley via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hello, > > what you will need to do is add some code to > inc/Module/Install/PRIVATE/Net/SSLeay.pm > at about line 136. > This is where build-and-platform specific compiler flags are set up. > > > You will need to uniquely > detect the case where you are compiling for MIPS, or maybe using the MIPS > compiler, and set $opts->{optimize} to ' ' (ie a space) or whatever flaghs make > sense for your case. > > After you have tested it, send me a context diff and I will included it in the > base code. > > Cheers. > > > > On Friday, August 08, 2014 10:32:21 AM you wrote:
>> Queue: Net-SSLeay >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >> >> Hello, >> >> On 08/08/2014 01:07 PM, Mike McCauley via RT wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>> I dont have a MIPS cross compiler and cannot help you.
>> >> Well, you can use the Mentor toolchain which is free: >> >> https://sourcery.mentor.com/GNUToolchain/release2791 >>
>>> try changing to >>> OPTIMIZE => " ", >>> with a space
>> >> It works. But do you think that's a good solution to apply upstream? >> >> Cheers, >> -- >> Vincent >>
>>> Cheers. >>>
>>>> Could you please tell me who is the responsible to write this in the >>>> Makefile? >>>> >>>> OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall >>>> -Wp,-
>>> >>> D_FORTIFY_SOURCE=2 -fexceptions >>>
>>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >>>> >>>> Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" >>>> file and commented this line: >>>> >>>> OPTIMIZE => $opts->{optimize}, >>>> >>>> And the OPTIMIZE variable in the Makefile keeps being populated with the >>>> same value. >>>> >>>> However, if I change it to this: >>>> >>>> OPTIMIZE => "-O2", >>>> >>>> then, the OPTIMIZE variable in the Makefile has this value: >>>> >>>> OPTIMIZE = -O2 >>>> >>>> And however, if I change it to this: >>>> >>>> OPTIMIZE => "", >>>> >>>> then, the OPTIMIZE variable in the Makefile is populated again with: >>>> >>>> OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >>>> >>>> So, it seems if the OPTIMIZE variable in the >>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or >>>> not exists at all), some default mechanism puts the OPTIMIZE variable in >>>> the Makefile with all of those values, which include "-m64 >>>> -mtune=generic" and make it fail for MIPS. >>>> >>>> On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>> >>>>> Hello, >>>>> >>>>> I wont be able to build any MIPS tests. I think its over to you... >>>>> If you find a suitable fix, pls send a patch and I will include it in >>>>> the >>>>> distro. >>>>> >>>>> Cheers. >>>>> >>>>> On Friday, August 08, 2014 04:41:38 AM you wrote:
>>>>>> Queue: Net-SSLeay >>>>>> >>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>> >>>>>> Hello Mike, >>>>>> >>>>>> you don't need MIPS hardware to test it on MIPS. You can cross-compile, >>>>>> using Buildroot, for instance. Or I could do it if you want. >>>>>> >>>>>> Could you please send me some patches I can try? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
>>>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>> >>>>>>> Hello Vincent, >>>>>>> >>>>>>> Thanks for your report. >>>>>>> Unfortunately I have no way to test on MIPS, so think you are on your >>>>>>> own. >>>>>>> If you find a suitable fix, pls send a patch and I will include it in >>>>>>> the >>>>>>> distro. >>>>>>> >>>>>>> Cheers. >>>>>>> >>>>>>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
>>>>>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. >>>>>>>> Transaction: Ticket created by Vincent.Riera@imgtec.com >>>>>>>> >>>>>>>> Queue: Net-SSLeay >>>>>>>> >>>>>>>> Subject: Net-SSLeay fails to compile for MIPS >>>>>>>> >>>>>>>> Broken in: (no value) >>>>>>>> >>>>>>>> Severity: (no value) >>>>>>>> >>>>>>>> Owner: Nobody >>>>>>>> >>>>>>>> Requestors: Vincent.Riera@imgtec.com >>>>>>>> >>>>>>>> Status: new >>>>>>>> >>>>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> I was trying to build Net-SSLeay for MIPS and I found that it fails >>>>>>>> to >>>>>>>> compile. >>>>>>>> >>>>>>>> OS: buildroot >>>>>>>> Net-SSLeay version: 1.65 >>>>>>>> Perl version: 5.18.2 >>>>>>>> SSL version: 1.0.1h >>>>>>>> >>>>>>>> For some reason the OPTIMIZE variable in >>>>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 >>>>>>>> -mtune=generic" which cause the compilation to fail.
>
-- Vincent
MIME-Version: 1.0
X-Spam-Status: No, score=-4.368 tagged_above=-99.9 required=10 tests=[AWL=0.200, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <53E8DA88.6090209 [...] imgtec.com>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E4DF67.8010101 [...] imgtec.com> <rt-4.0.18-6638-1407508340-1803.97834-5-0 [...] rt.cpan.org> <19561282.TnnHSPVyJt [...] zulu> <rt-4.0.18-14725-1407534137-587.97834-6-0 [...] rt.cpan.org> <53E8DA88.6090209 [...] imgtec.com>
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53E8EF3A.8000704 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.368
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 568002404D2 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 11 Aug 2014 12:28:56 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4TggHr0w1ZGu for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 11 Aug 2014 12:28:54 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id F14B3240448 for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 11 Aug 2014 12:28:53 -0400 (EDT)
Received: (qmail 13158 invoked by alias); 11 Aug 2014 16:28:52 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 11 Aug 2014 09:28:50 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 7332C66708946 for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 11 Aug 2014 17:28:40 +0100 (IST)
Received: from KLMAIL02.kl.imgtec.org (10.40.60.222) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 11 Aug 2014 17:28:43 +0100
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by klmail02.kl.imgtec.org (10.40.60.222) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 11 Aug 2014 17:28:43 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 11 Aug 2014 17:28:42 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Mon, 11 Aug 2014 17:28:42 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-21701-1407774537-656.97834-0-0 [...] rt.cpan.org>
Content-Length: 8713
Download (untitled) / with headers
text/plain 8.5k
I have tried with this patch: ############################################ --- Net-SSLeay-1.65/Makefile.PL.orig 2014-08-11 17:23:36.203061223 +0100 +++ Net-SSLeay-1.65/Makefile.PL 2014-08-11 17:24:24.018902453 +0100 @@ -1,10 +1,11 @@ #!/usr/bin/perl +use lib '/BR/output/staging/usr/lib/perl5/5.18.2/mipsel-linux'; +use Config; use strict; use warnings; use lib 'ext'; use inc::Module::Install; -use Config; use File::Spec; name('Net-SSLeay'); ############################################ but that gives me some problems: Compilation failed in require at inc/Module/Install/Makefile.pm line 6. BEGIN failed--compilation aborted at inc/Module/Install/Makefile.pm line 6. Compilation failed in require at inc/Module/Install.pm line 307. Backslash found where operator expected at Makefile.PL line 41, near "$regen_script \" (Missing operator before \?) Bareword found where operator expected at Makefile.PL line 41, near "$(ABSPERLRUN" (Missing operator before ABSPERLRUN?) Scalar found where operator expected at Makefile.PL line 41, near ") $regen_script" (Missing operator before $regen_script?) Unquoted string "constants" may clash with future reserved word at Makefile.PL line 41. Backslash found where operator expected at Makefile.PL line 44, near "$regen_script \" (Missing operator before \?) Bareword found where operator expected at Makefile.PL line 44, near "$(ABSPERLRUN" (Missing operator before ABSPERLRUN?) Scalar found where operator expected at Makefile.PL line 44, near ") $regen_script" (Missing operator before $regen_script?) Semicolon seems to be missing at Makefile.PL line 45. Semicolon seems to be missing at Makefile.PL line 49. syntax error at Makefile.PL line 40, near "c :" Bareword "postamble" not allowed while "strict subs" in use at Makefile.PL line 39. Execution of Makefile.PL aborted due to compilation errors. On 08/11/2014 04:00 PM, Vicente Olivert Riera wrote: Show quoted text
> Hello Mike, > > first I apologize because I have found this is not a failure in the > Net-SSLeay package itself. > > I think I have found what the problem is. Let me explain it to you. > > In the Buildroot tool we are cross-compiling a full Linux root > filesystem for another architecture. In this case, I run the Buildroot > tool in my x86_64 machine to build a MIPS (or any other architecture) > root filesystem. > > The Net-SSLeay build system uses the Config module (use Config;), and > that modules has a read only variable (%Config) which has all the > information that the Configure program had during the Perl build time. > > Given that Perl is needed to build Net-SSLeay, and given that my machine > is an x86_64 (cannot run MIPS code on it), it's obvious that my x86_64 > Perl is used during the Net-SSLeay build. Then, the %Config variable has > all the information that the Configure program had during the build time > of my x86_64 Perl. That's why we see those flags (-m64 -mtune=generic) > in the OPTIMIZE variable, because they are taken from the %Config variable. > > So, I have a question for you. Is there a way to use the Config module > of the Perl we build for the target? This wouldn't be a fix to go > upstream. It would be just a fix for the Buildroot distribution. > > Before building the Net-SSLeay package, we build Perl, and the Config > module is located in > "/BR/output/staging/usr/lib/perl5/5.18.2/mipsel-linux/Config.pm". > > How could we patch the Makefile.PL to make it use that Config module > instead of the one in my host's Perl? > > Thanks in advance. > > On 08/08/2014 10:42 PM, Mike McCauley via RT wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >> >> Hello, >> >> what you will need to do is add some code to >> inc/Module/Install/PRIVATE/Net/SSLeay.pm >> at about line 136. >> This is where build-and-platform specific compiler flags are set up. >> >> >> You will need to uniquely >> detect the case where you are compiling for MIPS, or maybe using the MIPS >> compiler, and set $opts->{optimize} to ' ' (ie a space) or whatever >> flaghs make >> sense for your case. >> >> After you have tested it, send me a context diff and I will included >> it in the >> base code. >> >> Cheers. >> >> >> >> On Friday, August 08, 2014 10:32:21 AM you wrote:
>>> Queue: Net-SSLeay >>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>> >>> Hello, >>> >>> On 08/08/2014 01:07 PM, Mike McCauley via RT wrote:
>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>> I dont have a MIPS cross compiler and cannot help you.
>>> >>> Well, you can use the Mentor toolchain which is free: >>> >>> https://sourcery.mentor.com/GNUToolchain/release2791 >>>
>>>> try changing to >>>> OPTIMIZE => " ", >>>> with a space
>>> >>> It works. But do you think that's a good solution to apply upstream? >>> >>> Cheers, >>> -- >>> Vincent >>>
>>>> Cheers. >>>>
>>>>> Could you please tell me who is the responsible to write this in the >>>>> Makefile? >>>>> >>>>> OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall >>>>> -Wp,-
>>>> >>>> D_FORTIFY_SOURCE=2 -fexceptions >>>>
>>>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >>>>> >>>>> Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" >>>>> file and commented this line: >>>>> >>>>> OPTIMIZE => $opts->{optimize}, >>>>> >>>>> And the OPTIMIZE variable in the Makefile keeps being populated >>>>> with the >>>>> same value. >>>>> >>>>> However, if I change it to this: >>>>> >>>>> OPTIMIZE => "-O2", >>>>> >>>>> then, the OPTIMIZE variable in the Makefile has this value: >>>>> >>>>> OPTIMIZE = -O2 >>>>> >>>>> And however, if I change it to this: >>>>> >>>>> OPTIMIZE => "", >>>>> >>>>> then, the OPTIMIZE variable in the Makefile is populated again with: >>>>> >>>>> OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >>>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >>>>> >>>>> So, it seems if the OPTIMIZE variable in the >>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or >>>>> not exists at all), some default mechanism puts the OPTIMIZE >>>>> variable in >>>>> the Makefile with all of those values, which include "-m64 >>>>> -mtune=generic" and make it fail for MIPS. >>>>> >>>>> On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
>>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>> >>>>>> Hello, >>>>>> >>>>>> I wont be able to build any MIPS tests. I think its over to you... >>>>>> If you find a suitable fix, pls send a patch and I will include it in >>>>>> the >>>>>> distro. >>>>>> >>>>>> Cheers. >>>>>> >>>>>> On Friday, August 08, 2014 04:41:38 AM you wrote:
>>>>>>> Queue: Net-SSLeay >>>>>>> >>>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>> >>>>>>> Hello Mike, >>>>>>> >>>>>>> you don't need MIPS hardware to test it on MIPS. You can >>>>>>> cross-compile, >>>>>>> using Buildroot, for instance. Or I could do it if you want. >>>>>>> >>>>>>> Could you please send me some patches I can try? >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
>>>>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>>> >>>>>>>> Hello Vincent, >>>>>>>> >>>>>>>> Thanks for your report. >>>>>>>> Unfortunately I have no way to test on MIPS, so think you are >>>>>>>> on your >>>>>>>> own. >>>>>>>> If you find a suitable fix, pls send a patch and I will include >>>>>>>> it in >>>>>>>> the >>>>>>>> distro. >>>>>>>> >>>>>>>> Cheers. >>>>>>>> >>>>>>>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
>>>>>>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. >>>>>>>>> Transaction: Ticket created by Vincent.Riera@imgtec.com >>>>>>>>> >>>>>>>>> Queue: Net-SSLeay >>>>>>>>> >>>>>>>>> Subject: Net-SSLeay fails to compile for MIPS >>>>>>>>> >>>>>>>>> Broken in: (no value) >>>>>>>>> >>>>>>>>> Severity: (no value) >>>>>>>>> >>>>>>>>> Owner: Nobody >>>>>>>>> >>>>>>>>> Requestors: Vincent.Riera@imgtec.com >>>>>>>>> >>>>>>>>> Status: new >>>>>>>>> >>>>>>>>> Ticket <URL: >>>>>>>>> https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> I was trying to build Net-SSLeay for MIPS and I found that it >>>>>>>>> fails >>>>>>>>> to >>>>>>>>> compile. >>>>>>>>> >>>>>>>>> OS: buildroot >>>>>>>>> Net-SSLeay version: 1.65 >>>>>>>>> Perl version: 5.18.2 >>>>>>>>> SSL version: 1.0.1h >>>>>>>>> >>>>>>>>> For some reason the OPTIMIZE variable in >>>>>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 >>>>>>>>> -mtune=generic" which cause the compilation to fail.
>>
> >
-- Vincent
MIME-Version: 1.0
X-Spam-Flag: NO
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
content-type: text/plain; charset="utf-8"
X-Source-Sender: (zulu.localnet) [58.96.35.135]:49953
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.625
X-Source-Cap: bWlrZW07bWlrZW07Z2F0b3I0MTI5Lmhvc3RnYXRvci5jb20=
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8E0EB24052B for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 11 Aug 2014 16:57:48 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EEFx7r4lUedp for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Mon, 11 Aug 2014 16:57:46 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 4C55C24051A for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 11 Aug 2014 16:57:46 -0400 (EDT)
Received: (qmail 16425 invoked by alias); 11 Aug 2014 20:57:44 -0000
Received: from gateway13.websitewelcome.com (HELO gateway13.websitewelcome.com) (69.93.143.2) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 11 Aug 2014 13:57:41 -0700
Received: by gateway13.websitewelcome.com (Postfix, from userid 5007) id 4D146931F1371; Mon, 11 Aug 2014 15:57:39 -0500 (CDT)
Received: from gator4129.hostgator.com (gator4129.hostgator.com [192.185.4.141]) by gateway13.websitewelcome.com (Postfix) with ESMTP id 462C8931F134A for <bug-Net-SSLeay [...] rt.cpan.org>; Mon, 11 Aug 2014 15:57:39 -0500 (CDT)
Received: from [58.96.35.135] (port=49953 helo=zulu.localnet) by gator4129.hostgator.com with esmtpsa (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from <mikem [...] airspayce.com>) id 1XGwew-0002bB-Pa for bug-Net-SSLeay [...] rt.cpan.org; Mon, 11 Aug 2014 15:57:39 -0500
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
X-Spam-Check-BY: la.mx.develooper.com
Date: Tue, 12 Aug 2014 06:57:36 +1000
X-Spam-Level:
X-Bwhitelist: no
To: bug-Net-SSLeay [...] rt.cpan.org
Content-Transfer-Encoding: 7Bit
X-Source:
X-Source-Args:
In-Reply-To: <rt-4.0.18-5990-1407769243-619.97834-5-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-3.625 tagged_above=-99.9 required=10 tests=[AWL=0.275, BAYES_00=-1.9, FROM_OUR_RT=-2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Source-Dir:
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E8DA88.6090209 [...] imgtec.com> <rt-4.0.18-5990-1407769243-619.97834-5-0 [...] rt.cpan.org>
Message-ID: <14091226.9J6eKb9FN4 [...] zulu>
X-Source-Auth: mikem [...] airspayce.com
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - gator4129.hostgator.com
X-Antiabuse: Original Domain - rt.cpan.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - airspayce.com
Organization: AirSpayce Pty Ltd
X-Source-Ip: 58.96.35.135
User-Agent: KMail/4.11.5 (Linux/3.11.10-17-desktop; KDE/4.11.5; i686; ; )
Return-Path: <mikem [...] airspayce.com>
X-RT-Mail-Extension: net-ssleay
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-Exim-ID: 1XGwew-0002bB-Pa
X-Email-Count: 2
From: Mike McCauley <mikem [...] airspayce.com>
RT-Message-ID: <rt-4.0.18-15134-1407790669-317.97834-0-0 [...] rt.cpan.org>
Content-Length: 7673
Download (untitled) / with headers
text/plain 7.4k
Hi, I dont know how to handle your cross-compile issues. I would have thought that your 'use lib' approach would be the best one. Perhaps you also need some other paths in 'use lib'? Or maybe the -I command line arg? Maybe you also need a 'no lib' to remove your hosts Config file directory? Cheers. On Monday, August 11, 2014 11:00:44 AM you wrote: Show quoted text
> Queue: Net-SSLeay > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hello Mike, > > first I apologize because I have found this is not a failure in the > Net-SSLeay package itself. > > I think I have found what the problem is. Let me explain it to you. > > In the Buildroot tool we are cross-compiling a full Linux root > filesystem for another architecture. In this case, I run the Buildroot > tool in my x86_64 machine to build a MIPS (or any other architecture) > root filesystem. > > The Net-SSLeay build system uses the Config module (use Config;), and > that modules has a read only variable (%Config) which has all the > information that the Configure program had during the Perl build time. > > Given that Perl is needed to build Net-SSLeay, and given that my machine > is an x86_64 (cannot run MIPS code on it), it's obvious that my x86_64 > Perl is used during the Net-SSLeay build. Then, the %Config variable has > all the information that the Configure program had during the build time > of my x86_64 Perl. That's why we see those flags (-m64 -mtune=generic) > in the OPTIMIZE variable, because they are taken from the %Config variable. > > So, I have a question for you. Is there a way to use the Config module > of the Perl we build for the target? This wouldn't be a fix to go > upstream. It would be just a fix for the Buildroot distribution. > > Before building the Net-SSLeay package, we build Perl, and the Config > module is located in > "/BR/output/staging/usr/lib/perl5/5.18.2/mipsel-linux/Config.pm". > > How could we patch the Makefile.PL to make it use that Config module > instead of the one in my host's Perl? > > Thanks in advance. > > On 08/08/2014 10:42 PM, Mike McCauley via RT wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > > > Hello, > > > > what you will need to do is add some code to > > inc/Module/Install/PRIVATE/Net/SSLeay.pm > > at about line 136. > > This is where build-and-platform specific compiler flags are set up. > > > > > > You will need to uniquely > > detect the case where you are compiling for MIPS, or maybe using the MIPS > > compiler, and set $opts->{optimize} to ' ' (ie a space) or whatever flaghs > > make sense for your case. > > > > After you have tested it, send me a context diff and I will included it in > > the base code. > > > > Cheers. > > > > On Friday, August 08, 2014 10:32:21 AM you wrote:
> >> Queue: Net-SSLeay > >> > >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >> > >> Hello, > >> > >> On 08/08/2014 01:07 PM, Mike McCauley via RT wrote:
> >>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>> I dont have a MIPS cross compiler and cannot help you.
> >> > >> Well, you can use the Mentor toolchain which is free: > >> https://sourcery.mentor.com/GNUToolchain/release2791
> >>> > >>> try changing to > >>> OPTIMIZE => " ", > >>> with a space
> >> > >> It works. But do you think that's a good solution to apply upstream? > >> > >> Cheers, > >> -- > >> Vincent > >>
> >>> Cheers. > >>>
> >>>> Could you please tell me who is the responsible to write this in the > >>>> Makefile? > >>>> > >>>> OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall > >>>> -Wp,-
> >>> > >>> D_FORTIFY_SOURCE=2 -fexceptions > >>>
> >>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > >>>> > >>>> Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" > >>>> file and commented this line: > >>>> > >>>> OPTIMIZE => $opts->{optimize}, > >>>> > >>>> And the OPTIMIZE variable in the Makefile keeps being populated with > >>>> the > >>>> same value. > >>>> > >>>> However, if I change it to this: > >>>> > >>>> OPTIMIZE => "-O2", > >>>> > >>>> then, the OPTIMIZE variable in the Makefile has this value: > >>>> > >>>> OPTIMIZE = -O2 > >>>> > >>>> And however, if I change it to this: > >>>> > >>>> OPTIMIZE => "", > >>>> > >>>> then, the OPTIMIZE variable in the Makefile is populated again with: > >>>> > >>>> OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > >>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > >>>> > >>>> So, it seems if the OPTIMIZE variable in the > >>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or > >>>> not exists at all), some default mechanism puts the OPTIMIZE variable > >>>> in > >>>> the Makefile with all of those values, which include "-m64 > >>>> -mtune=generic" and make it fail for MIPS. > >>>> > >>>> On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
> >>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>>> > >>>>> Hello, > >>>>> > >>>>> I wont be able to build any MIPS tests. I think its over to you... > >>>>> If you find a suitable fix, pls send a patch and I will include it in > >>>>> the > >>>>> distro. > >>>>> > >>>>> Cheers. > >>>>> > >>>>> On Friday, August 08, 2014 04:41:38 AM you wrote:
> >>>>>> Queue: Net-SSLeay > >>>>>> > >>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>>>> > >>>>>> Hello Mike, > >>>>>> > >>>>>> you don't need MIPS hardware to test it on MIPS. You can > >>>>>> cross-compile, > >>>>>> using Buildroot, for instance. Or I could do it if you want. > >>>>>> > >>>>>> Could you please send me some patches I can try? > >>>>>> > >>>>>> Thanks. > >>>>>> > >>>>>> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
> >>>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > >>>>>>> > >>>>>>> Hello Vincent, > >>>>>>> > >>>>>>> Thanks for your report. > >>>>>>> Unfortunately I have no way to test on MIPS, so think you are on > >>>>>>> your > >>>>>>> own. > >>>>>>> If you find a suitable fix, pls send a patch and I will include it > >>>>>>> in > >>>>>>> the > >>>>>>> distro. > >>>>>>> > >>>>>>> Cheers. > >>>>>>> > >>>>>>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
> >>>>>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. > >>>>>>>> Transaction: Ticket created by Vincent.Riera@imgtec.com > >>>>>>>> > >>>>>>>> Queue: Net-SSLeay > >>>>>>>> > >>>>>>>> Subject: Net-SSLeay fails to compile for MIPS > >>>>>>>> > >>>>>>>> Broken in: (no value) > >>>>>>>> > >>>>>>>> Severity: (no value) > >>>>>>>> > >>>>>>>> Owner: Nobody > >>>>>>>> > >>>>>>>> Requestors: Vincent.Riera@imgtec.com > >>>>>>>> > >>>>>>>> Status: new > >>>>>>>> > >>>>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834
> >>>>>>>> >
> >>>>>>>> > >>>>>>>> Hello, > >>>>>>>> > >>>>>>>> I was trying to build Net-SSLeay for MIPS and I found that it fails > >>>>>>>> to > >>>>>>>> compile. > >>>>>>>> > >>>>>>>> OS: buildroot > >>>>>>>> Net-SSLeay version: 1.65 > >>>>>>>> Perl version: 5.18.2 > >>>>>>>> SSL version: 1.0.1h > >>>>>>>> > >>>>>>>> For some reason the OPTIMIZE variable in > >>>>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 > >>>>>>>> -mtune=generic" which cause the compilation to fail.
-- Mike McCauley VK4AMM mikem@airspayce.com Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com Phone +61 7 5598-7474
MIME-Version: 1.0
X-Spam-Status: No, score=-4.401 tagged_above=-99.9 required=10 tests=[AWL=0.167, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <rt-4.0.18-15134-1407790670-717.97834-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E8DA88.6090209 [...] imgtec.com> <rt-4.0.18-5990-1407769243-619.97834-5-0 [...] rt.cpan.org> <14091226.9J6eKb9FN4 [...] zulu> <rt-4.0.18-15134-1407790670-717.97834-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53EA0F8A.9020502 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.401
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E1F562403B6 for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Tue, 12 Aug 2014 08:59:03 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08cfj1WISriy for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Tue, 12 Aug 2014 08:59:02 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 0284024015E for <bug-Net-SSLeay [...] rt.cpan.org>; Tue, 12 Aug 2014 08:59:01 -0400 (EDT)
Received: (qmail 10339 invoked by alias); 12 Aug 2014 12:59:00 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 12 Aug 2014 05:58:57 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id B7B5483B9507C for <bug-Net-SSLeay [...] rt.cpan.org>; Tue, 12 Aug 2014 13:58:48 +0100 (IST)
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 12 Aug 2014 13:58:50 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 12 Aug 2014 13:58:50 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Tue, 12 Aug 2014 13:58:50 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-11922-1407848344-840.97834-0-0 [...] rt.cpan.org>
Content-Length: 7843
Download (untitled) / with headers
text/plain 7.6k
On 08/11/2014 09:57 PM, Mike McCauley via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > > > Hi, > > I dont know how to handle your cross-compile issues. > I would have thought that your 'use lib' approach would be the best one. > Perhaps you also need some other paths in 'use lib'? > Or maybe the -I command line arg?
I have also tried that with no luck. Show quoted text
> Maybe you also need a 'no lib' to remove your hosts Config file directory?
That's impossible in this case because you can't know the configuration of every Perl installation for all Linux distributions. I think the best solution for us will be to disable the optimization by passing OPTIMIZE=" " to the Perl command. Show quoted text
> Cheers. > > On Monday, August 11, 2014 11:00:44 AM you wrote:
>> Queue: Net-SSLeay >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >> >> Hello Mike, >> >> first I apologize because I have found this is not a failure in the >> Net-SSLeay package itself. >> >> I think I have found what the problem is. Let me explain it to you. >> >> In the Buildroot tool we are cross-compiling a full Linux root >> filesystem for another architecture. In this case, I run the Buildroot >> tool in my x86_64 machine to build a MIPS (or any other architecture) >> root filesystem. >> >> The Net-SSLeay build system uses the Config module (use Config;), and >> that modules has a read only variable (%Config) which has all the >> information that the Configure program had during the Perl build time. >> >> Given that Perl is needed to build Net-SSLeay, and given that my machine >> is an x86_64 (cannot run MIPS code on it), it's obvious that my x86_64 >> Perl is used during the Net-SSLeay build. Then, the %Config variable has >> all the information that the Configure program had during the build time >> of my x86_64 Perl. That's why we see those flags (-m64 -mtune=generic) >> in the OPTIMIZE variable, because they are taken from the %Config variable. >> >> So, I have a question for you. Is there a way to use the Config module >> of the Perl we build for the target? This wouldn't be a fix to go >> upstream. It would be just a fix for the Buildroot distribution. >> >> Before building the Net-SSLeay package, we build Perl, and the Config >> module is located in >> "/BR/output/staging/usr/lib/perl5/5.18.2/mipsel-linux/Config.pm". >> >> How could we patch the Makefile.PL to make it use that Config module >> instead of the one in my host's Perl? >> >> Thanks in advance. >> >> On 08/08/2014 10:42 PM, Mike McCauley via RT wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>> >>> Hello, >>> >>> what you will need to do is add some code to >>> inc/Module/Install/PRIVATE/Net/SSLeay.pm >>> at about line 136. >>> This is where build-and-platform specific compiler flags are set up. >>> >>> >>> You will need to uniquely >>> detect the case where you are compiling for MIPS, or maybe using the MIPS >>> compiler, and set $opts->{optimize} to ' ' (ie a space) or whatever flaghs >>> make sense for your case. >>> >>> After you have tested it, send me a context diff and I will included it in >>> the base code. >>> >>> Cheers. >>> >>> On Friday, August 08, 2014 10:32:21 AM you wrote:
>>>> Queue: Net-SSLeay >>>> >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>> >>>> Hello, >>>> >>>> On 08/08/2014 01:07 PM, Mike McCauley via RT wrote:
>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>> I dont have a MIPS cross compiler and cannot help you.
>>>> >>>> Well, you can use the Mentor toolchain which is free: >>>> https://sourcery.mentor.com/GNUToolchain/release2791
>>>>> >>>>> try changing to >>>>> OPTIMIZE => " ", >>>>> with a space
>>>> >>>> It works. But do you think that's a good solution to apply upstream? >>>> >>>> Cheers, >>>> -- >>>> Vincent >>>>
>>>>> Cheers. >>>>>
>>>>>> Could you please tell me who is the responsible to write this in the >>>>>> Makefile? >>>>>> >>>>>> OPTIMIZE = -O2 -g -pipeinc/Module/Install/PRIVATE/Net/SSLeay.pm -Wall >>>>>> -Wp,-
>>>>> >>>>> D_FORTIFY_SOURCE=2 -fexceptions >>>>>
>>>>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >>>>>> >>>>>> Because I have edited the "inc/Module/Install/PRIVATE/Net/SSLeay.pm" >>>>>> file and commented this line: >>>>>> >>>>>> OPTIMIZE => $opts->{optimize}, >>>>>> >>>>>> And the OPTIMIZE variable in the Makefile keeps being populated with >>>>>> the >>>>>> same value. >>>>>> >>>>>> However, if I change it to this: >>>>>> >>>>>> OPTIMIZE => "-O2", >>>>>> >>>>>> then, the OPTIMIZE variable in the Makefile has this value: >>>>>> >>>>>> OPTIMIZE = -O2 >>>>>> >>>>>> And however, if I change it to this: >>>>>> >>>>>> OPTIMIZE => "", >>>>>> >>>>>> then, the OPTIMIZE variable in the Makefile is populated again with: >>>>>> >>>>>> OPTIMIZE = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions >>>>>> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic >>>>>> >>>>>> So, it seems if the OPTIMIZE variable in the >>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" file has an empty value (or >>>>>> not exists at all), some default mechanism puts the OPTIMIZE variable >>>>>> in >>>>>> the Makefile with all of those values, which include "-m64 >>>>>> -mtune=generic" and make it fail for MIPS. >>>>>> >>>>>> On 08/08/2014 09:48 AM, Mike McCauley via RT wrote:
>>>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> I wont be able to build any MIPS tests. I think its over to you... >>>>>>> If you find a suitable fix, pls send a patch and I will include it in >>>>>>> the >>>>>>> distro. >>>>>>> >>>>>>> Cheers. >>>>>>> >>>>>>> On Friday, August 08, 2014 04:41:38 AM you wrote:
>>>>>>>> Queue: Net-SSLeay >>>>>>>> >>>>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>>> >>>>>>>> Hello Mike, >>>>>>>> >>>>>>>> you don't need MIPS hardware to test it on MIPS. You can >>>>>>>> cross-compile, >>>>>>>> using Buildroot, for instance. Or I could do it if you want. >>>>>>>> >>>>>>>> Could you please send me some patches I can try? >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> On 08/07/2014 09:38 PM, Mike McCauley via RT wrote:
>>>>>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=97834 > >>>>>>>>> >>>>>>>>> Hello Vincent, >>>>>>>>> >>>>>>>>> Thanks for your report. >>>>>>>>> Unfortunately I have no way to test on MIPS, so think you are on >>>>>>>>> your >>>>>>>>> own. >>>>>>>>> If you find a suitable fix, pls send a patch and I will include it >>>>>>>>> in >>>>>>>>> the >>>>>>>>> distro. >>>>>>>>> >>>>>>>>> Cheers. >>>>>>>>> >>>>>>>>> On Thursday, August 07, 2014 11:03:18 AM you wrote:
>>>>>>>>>> Thu Aug 07 11:03:17 2014: Request 97834 was acted upon. >>>>>>>>>> Transaction: Ticket created by Vincent.Riera@imgtec.com >>>>>>>>>> >>>>>>>>>> Queue: Net-SSLeay >>>>>>>>>> >>>>>>>>>> Subject: Net-SSLeay fails to compile for MIPS >>>>>>>>>> >>>>>>>>>> Broken in: (no value) >>>>>>>>>> >>>>>>>>>> Severity: (no value) >>>>>>>>>> >>>>>>>>>> Owner: Nobody >>>>>>>>>> >>>>>>>>>> Requestors: Vincent.Riera@imgtec.com >>>>>>>>>> >>>>>>>>>> Status: new >>>>>>>>>> >>>>>>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=97834
>>>>>>>>>> >
>>>>>>>>>> >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> I was trying to build Net-SSLeay for MIPS and I found that it fails >>>>>>>>>> to >>>>>>>>>> compile. >>>>>>>>>> >>>>>>>>>> OS: buildroot >>>>>>>>>> Net-SSLeay version: 1.65 >>>>>>>>>> Perl version: 5.18.2 >>>>>>>>>> SSL version: 1.0.1h >>>>>>>>>> >>>>>>>>>> For some reason the OPTIMIZE variable in >>>>>>>>>> "inc/Module/Install/PRIVATE/Net/SSLeay.pm" is receiving "-m64 >>>>>>>>>> -mtune=generic" which cause the compilation to fail.
>
-- Vincent
MIME-Version: 1.0
X-Spam-Status: No, score=-4.425 tagged_above=-99.9 required=10 tests=[AWL=0.143, BAYES_00=-1.9, FROM_OUR_RT=-2, RP_MATCHES_RCVD=-0.668] autolearn=ham
In-Reply-To: <53EA0F8A.9020502 [...] imgtec.com>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-97834 [...] rt.cpan.org> <53E8DA88.6090209 [...] imgtec.com> <rt-4.0.18-5990-1407769243-619.97834-5-0 [...] rt.cpan.org> <14091226.9J6eKb9FN4 [...] zulu> <rt-4.0.18-15134-1407790670-717.97834-6-0 [...] rt.cpan.org> <53EA0F8A.9020502 [...] imgtec.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <53EDEDC1.9060506 [...] imgtec.com>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.425
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id CAAEF24041B for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 15 Aug 2014 07:23:56 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FZN+CSk4cYMz for <cpan-bug+Net-SSLeay [...] hipster.bestpractical.com>; Fri, 15 Aug 2014 07:23:55 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 0C031240245 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 15 Aug 2014 07:23:54 -0400 (EDT)
Received: (qmail 9740 invoked by alias); 15 Aug 2014 11:23:53 -0000
Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 15 Aug 2014 04:23:51 -0700
Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id BEFF5F9E7B731 for <bug-Net-SSLeay [...] rt.cpan.org>; Fri, 15 Aug 2014 12:23:43 +0100 (IST)
Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 15 Aug 2014 12:23:46 +0100
Received: from [192.168.154.104] (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 15 Aug 2014 12:23:45 +0100
Delivered-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
Subject: Re: [rt.cpan.org #97834] Net-SSLeay fails to compile for MIPS
Return-Path: <Vincent.Riera [...] imgtec.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+Net-SSLeay [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-ssleay
Date: Fri, 15 Aug 2014 12:23:45 +0100
X-Spam-Level:
X-Originating-Ip: [192.168.154.104]
To: <bug-Net-SSLeay [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: Vicente Olivert Riera <Vincent.Riera [...] imgtec.com>
RT-Message-ID: <rt-4.0.18-23574-1408101838-629.97834-0-0 [...] rt.cpan.org>
Content-Length: 151
Download (untitled) / with headers
text/plain 151b
Fixed: http://git.buildroot.net/buildroot/commit/?id=6057878756f6f58d613a40be9636581ae5950aa0 Could you please close this bug? Thanks. -- Vincent


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.