the explain to "can libwww-perl run on intel xscale platform"

the explain to "can libwww-perl run on intel xscale platform"

am 30.01.2007 06:05:53 von liu.wu

------_=_NextPart_001_01C7442C.50F5D4DD
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi ,all=20

I report a bug in 19,jan "can libwww-perl run on intel xscale platform
" . from that , I get some useful information from WebPages and some
friends suggestion.

Now , the segmentation fault has been fix .

The "-O2" optimize in compile cause these bug. Omit these optimize can
fix the bug , the segmentation haven't been occurs.

But now the other problems is that ,I still can't communication with
Web servers when we use libwww-perl modules on our target device (intel
xscale platform ,big edian)

The program will block in can_write function in IO/Select.pm=20

sub can_write

{

my $vec =3D shift;

my $timeout =3D shift;

my $w =3D $vec->[VEC_BITS];

defined($w) && (select(undef,$w,undef,$timeout) > 0)

? handles($vec, $w)

: ();

}

The select(undef,$w,undef,$timeout) function will be block all the time
until timeout and return 0. That is also to say these select function
can't been successful .so this is the reason why our target device can't
communication=20

With Web Severs. But why ? because the big endian and little endian
can't been converted ? so I don't know how can fix this bug?

=20

Our program is also the same with last time:

#!/usr/local/bin/perl

use LWP::UserAgent;

my $browser=3DLWP::UserAgent->new;

my $url=3D$ARGV[0];

my $response=3D$browser->get($url);

die "can't get $url --",$response->status_line

unless $response->is_success;

die "hi i want html not ",$response->content_type

unless $response->content_type eq 'text/html';

(open(OUTFILE ,">html"))|| die ("could't open the file\n");

print OUTFILE ($response->content);

=20

and thest program will been block at select() function in IO/Select.pm=20

=20

I am looking forward to your replying=20

Thank you=20

=20

=20

=20

Wu Liu

cubical:PD3-2II-B11

email:liu.wu@intel.com

phone:86-21-387-37917

=20


------_=_NextPart_001_01C7442C.50F5D4DD--