Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100874 - g-cpan: error with IO-1.20 (but it shouldn't try to install this!) while installing Catalyst
Summary: g-cpan: error with IO-1.20 (but it shouldn't try to install this!) while inst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-31 03:09 UTC by Michele Beltrame
Modified: 2005-12-13 05:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Beltrame 2005-07-31 03:09:30 UTC
I found this problem installing Catalyst (via g-cpan -i Catalyst) on my systems
(one being x86 and the other amd64). Within the ton of modules, it tries to install:

IO-1.20

and it fails with this error:

-----
/usr/bin/perl5.8.6 /usr/lib/perl5/5.8.6/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.6/ExtUtils/typemap  IO.xs > IO.xsc && mv IO.xsc IO.c
x86_64-pc-linux-gnu-gcc -c   -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -march=athlon64 -O2 -pipe   -DVERSION=\"1.20\"
-DXS_VERSION=\"1.20\" -fPIC "-I/usr/lib/perl5/5.8.6/x86_64-linux/CORE"  -DI_POLL
 IO.c
In file included from /usr/lib/perl5/5.8.6/x86_64-linux/CORE/perl.h:37,
                 from IO.xs:9:
/usr/lib/perl5/5.8.6/x86_64-linux/CORE/config.h:3017:1: warning: "I_POLL" redefined
<command line>:5:1: warning: this is the location of the previous definition
IO.xs: In function `XS_IO__Seekable_getpos':
IO.xs:201: warning: passing arg 2 of `PerlIO_getpos' from incompatible pointer type
IO.xs:208: error: `sv_undef' undeclared (first use in this function)
IO.xs:208: error: (Each undeclared identifier is reported only once
IO.xs:208: error: 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: error: `sv_undef' undeclared (first use in this function)
make: *** [IO.o] Error 1
-----

It seems to me pretty obvious that it fails, since IO 1.20 is a modules dated
1998, as it now seems to be core with in perl (in a more recent version, also).

After this fails, if I run "g-cpan -i Catalyst" it works, as it doesn't try to
install IO anymore (!!!). However, the problem comes back again when I upgrade
modules using "g-cpan -u", forcing me not to use it at all (I'm using g-cpan -i
to manually upgrade modules at this time).

I think probably there's a problem in checking that IO is already installed,
which is.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-07-31 08:20:35 UTC
Agree completely, next version should avoid the core installed modules all together.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-21 15:59:11 UTC
Re-assign, mcummings is retired...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-11-09 09:04:49 UTC
Re-assign.
Comment 4 Helge Haugland 2005-12-12 13:46:01 UTC
I'm installing Catalyst with "g-cpan -i Task::Catalyst". It is pulling in
perl-gcpan/IO-1.22 and this package installs without problems.
Comment 5 Michele Beltrame 2005-12-13 05:59:29 UTC
With the new IO it works for me as well, so I guss this bug can be closed...