Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22425 - Perl IO-1.20 does not compile properly on gentoo
Summary: Perl IO-1.20 does not compile properly on gentoo
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-07 22:12 UTC by Lina Pezzella (RETIRED)
Modified: 2004-02-27 06:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for IO-1.20 (IO-1.20.txt,142 bytes, patch)
2003-06-08 12:56 UTC, Lina Pezzella (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lina Pezzella (RETIRED) gentoo-dev 2003-06-07 22:12:51 UTC
Guessing on which component to file this under.  I apologize in advance if it's
the wrong one.

I tried to install the Net::Whois::Raw module via g-cpan.pl (after fixing that,
cause that didn't work either).  It compiles successfully, but gives this error
message during compilation.

IO.xs:208: `sv_undef' undeclared (first use in this function)
IO.xs:208: (Each undeclared identifier is reported only once
IO.xs:208: for each function it appears in.)
IO.xs: In function `XS_IO__Seekable_setpos':
IO.xs:219: warning: passing arg 2 of `PerlIO_setpos' from incompatible pointer type
IO.xs: In function `XS_IO__File_new_tmpfile':
IO.xs:252: `sv_undef' undeclared (first use in this function)
make: *** [IO.o] Error 1

!!! ERROR: dev-perl/IO-1.20 failed.
!!! Function perl-module_src_compile, Line 36, Exitcode 2
!!! compilation failed

When using the Net::Whois::Raw module, it connects to whois.arin.net just fine.
 However after 3-6 queries, it returns the error 'no route to host'.  The script
and the module have been tested on other distributions and work just fine there.
Comment 1 Lina Pezzella (RETIRED) gentoo-dev 2003-06-08 12:56:45 UTC
Created attachment 12950 [details, diff]
Patch for IO-1.20

Patch for IO.xs:

Add at line 45:
---------------------
#if (PATCHLEVEL >=6)
#	define sv_undef PL_sv_undef
#endif
---------------------
Comment 2 Lina Pezzella (RETIRED) gentoo-dev 2003-06-08 12:59:17 UTC
That patch solves one of the errors.  IO-1.20 compiles properly now, but I am getting a runtime error on execution of a script that uses the Net::Whois::Raw module to do multiple whois queries.  After six queries, it returns:

IO::Socket::INET:       ...propagated at /usr/lib/perl5/site_perl/5.8.0/Net/Whois/Raw.pm line 132, <> line 6.

Also, having patched that file means that I have to compile all my perl modules by hand unless you guys can integrate that patch.  (I don't even know if that's possible.)

Thanks in advance
Comment 3 Gentoo Perl team gentoo-dev 2003-06-10 03:40:40 UTC
Lina,

g-cpan is unfortunately tied to portage releases - the corrected g-cpan is slated for the next (perhaps current?) release of portage.

The ebuild you are having problems with is an ebuild that is generated by g-cpan, not something native to the local tree. RAC - what's the general practice for g-cpan generated ebuilds that don't work right? Thanks,

Mike
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2004-02-27 06:30:23 UTC
Marking can't fix since this bug has seen no activity in 8 months.