develooper Front page | perl.perl5.porters | Postings from March 2016

Perl5.12.1 - networking issues after migrating cross-compile to gcc5

From:
Piotr Oniszczuk
Date:
March 9, 2016 18:20
Subject:
Perl5.12.1 - networking issues after migrating cross-compile to gcc5
Message ID:
F8C72EDC-9458-4265-B560-8BD69341578F@gmail.com
Hi,

I’m scratching my head regarding networking issue I started have after migrating my cross-compile environment from gcc4.7 to gcc5.3.

My environment is embedded-like and I want to stay with 5.12 as 5.22.1 has problems with cross-compiling some perl modules.

Problem:
After switching environment from glibc2.12/gcc4.7.3 to glibc2.17/gcc5.3 I can’t get working subset of perl modules using protocol communication.

Good examples are: accessing POP3 (NET:POP3) or downloading from HTTP server (LWP:Simple).
Both are requiring multiple send/receive exchange:
NET:POP3 returns noting when asked for DEBUG.
LWP:Simple tells something like „error503 operation in progress” 

Interesting is that other my perl scripts sending data over raw UDP are working well (using IO:Socket). 
I not tested raw TCP sockets for raw comm.

May somebody point me:

-what might be cause that exactly the same perl source was working on gcc4.7 but network related things selectively stopped on gcc5.3

-where I can look on perl5.12 source or what perl source code changes should be back ported to 5.12.1 tree to get working modules like NET:POP3 or LWP:Simple/LWP:UserAgent  

I found this thread:
http://www.gossamer-threads.com/lists/perl/porters/317234

I tried to apply patch (attached) to the 5.12.1 which is based on this:
https://rt.perl.org/Public/Bug/Display.html?id=123784

but without success….




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About