Skip Menu |

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

Report information
The Basics
Id: 24052
Status: resolved
Priority: 0/
Queue: Net-CUPS

People
Owner: Nobody in particular
Requestors: cweyl [...] alumni.drew.edu
Cc:
AdminCc:

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



Subject: Net::CUPS fails to build under fedora core 6
Date: Fri, 22 Dec 2006 13:24:30 -0800
To: bugs-Net-CUPS [...] rt.cpan.org
From: "Chris Weyl" <cweyl [...] alumni.drew.edu>
FC6, x86_64, stock perl/etc, all updates applied. [cweyl@zeus Net-CUPS-0.41]$ rpmquery cups cups-1.2.7-1.3.fc6 [cweyl@zeus Net-CUPS-0.41]$ rpmquery cups-devel cups-devel-1.2.7-1.3.fc6 perl Makefile.PL; make fails with: gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.41\" -DXS_VERSION=\"0.41\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Protocol.c In file included from Protocol.xs:5: ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined In file included from Protocol.xs:2: /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:163:1: warning: this is the location of the previous definition In file included from Protocol.xs:10: Protocol_constant_c.inc: In function 'constant_15': Protocol_constant_c.inc:1102: error: 'CUPS_ADD_DEVICE' undeclared (first use in this function) Protocol_constant_c.inc:1102: error: (Each undeclared identifier is reported only once Protocol_constant_c.inc:1102: error: for each function it appears in.) Protocol_constant_c.inc: In function 'constant_18': Protocol_constant_c.inc:1712: error: 'CUPS_DELETE_DEVICE' undeclared (first use in this function) In file included from Protocol.xs:11: ../common/common.c: In function 'XS_unpack_cups_option_tPtr': ../common/common.c:58: warning: unused variable 'option' ../common/common.c: In function 'XS_unpack_ipp_tPtr': ../common/common.c:443: warning: unused variable 'option' ../common/common.c: In function 'XS_pack_ipp_request_tPtr': ../common/common.c:475: warning: unused variable 'loop' ../common/common.c: In function 'XS_unpack_ipp_request_tPtr': ../common/common.c:511: warning: unused variable 'option' ../common/common.c: In function 'XS_pack_ipp_attribute_tPtr': ../common/common.c:585: warning: unused variable 'av' ../common/common.c:583: warning: unused variable 'version' ../common/common.c:581: warning: unused variable 'loop' ../common/common.c: In function 'XS_unpack_ipp_attribute_tPtr': ../common/common.c:617: warning: unused variable 'asv' ../common/common.c:615: warning: unused variable 'option' ../common/common.c:614: warning: unused variable 'av' ../common/common.c: In function 'XS_pack_ipp_value_tPtr': ../common/common.c:671: warning: unused variable 'av' ../common/common.c:669: warning: unused variable 'version' ../common/common.c:667: warning: unused variable 'loop' ../common/common.c: In function 'XS_unpack_ipp_value_tPtr': ../common/common.c:700: warning: unused variable 'asv' ../common/common.c:699: warning: unused variable 'ssv' ../common/common.c:698: warning: unused variable 'option' ../common/common.c:697: warning: unused variable 'av' Protocol.xs: In function 'XS_Net__CUPS__Protocol_ippTimeToDate': Protocol.xs:53: warning: assignment discards qualifiers from pointer target type make[1]: *** [Protocol.o] Error 1 make[1]: Leaving directory `/home/cweyl/rpms/perl-Net-CUPS/Net-CUPS-0.41/Protocol' make: *** [subdirs] Error 2 -- Chris Weyl Ex astris, scientia
I have uploaded a new version of Net::CUPS. The API has changed to be more OO and all of the code has been re-worked. Try it out and see if it still fails. I am concerned how it fairs on a X86_64 platform. On Fri Dec 22 16:24:57 2006, cweyl@alumni.drew.edu wrote: Show quoted text
> FC6, x86_64, stock perl/etc, all updates applied. > > [cweyl@zeus Net-CUPS-0.41]$ rpmquery cups > cups-1.2.7-1.3.fc6 > [cweyl@zeus Net-CUPS-0.41]$ rpmquery cups-devel > cups-devel-1.2.7-1.3.fc6 > > perl Makefile.PL; make fails with: > > gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.41\" > -DXS_VERSION=\"0.41\" -fPIC > "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Protocol.c > In file included from Protocol.xs:5: > ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined > In file included from Protocol.xs:2: > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:163:1: > warning: this is the location of the previous definition > In file included from Protocol.xs:10: > Protocol_constant_c.inc: In function 'constant_15': > Protocol_constant_c.inc:1102: error: 'CUPS_ADD_DEVICE' undeclared > (first use in this function) > Protocol_constant_c.inc:1102: error: (Each undeclared identifier is > reported only once > Protocol_constant_c.inc:1102: error: for each function it appears in.) > Protocol_constant_c.inc: In function 'constant_18': > Protocol_constant_c.inc:1712: error: 'CUPS_DELETE_DEVICE' undeclared > (first use in this function) > In file included from Protocol.xs:11: > ../common/common.c: In function 'XS_unpack_cups_option_tPtr': > ../common/common.c:58: warning: unused variable 'option' > ../common/common.c: In function 'XS_unpack_ipp_tPtr': > ../common/common.c:443: warning: unused variable 'option' > ../common/common.c: In function 'XS_pack_ipp_request_tPtr': > ../common/common.c:475: warning: unused variable 'loop' > ../common/common.c: In function 'XS_unpack_ipp_request_tPtr': > ../common/common.c:511: warning: unused variable 'option' > ../common/common.c: In function 'XS_pack_ipp_attribute_tPtr': > ../common/common.c:585: warning: unused variable 'av' > ../common/common.c:583: warning: unused variable 'version' > ../common/common.c:581: warning: unused variable 'loop' > ../common/common.c: In function 'XS_unpack_ipp_attribute_tPtr': > ../common/common.c:617: warning: unused variable 'asv' > ../common/common.c:615: warning: unused variable 'option' > ../common/common.c:614: warning: unused variable 'av' > ../common/common.c: In function 'XS_pack_ipp_value_tPtr': > ../common/common.c:671: warning: unused variable 'av' > ../common/common.c:669: warning: unused variable 'version' > ../common/common.c:667: warning: unused variable 'loop' > ../common/common.c: In function 'XS_unpack_ipp_value_tPtr': > ../common/common.c:700: warning: unused variable 'asv' > ../common/common.c:699: warning: unused variable 'ssv' > ../common/common.c:698: warning: unused variable 'option' > ../common/common.c:697: warning: unused variable 'av' > Protocol.xs: In function 'XS_Net__CUPS__Protocol_ippTimeToDate': > Protocol.xs:53: warning: assignment discards qualifiers from pointer > target type > make[1]: *** [Protocol.o] Error 1 > make[1]: Leaving directory > `/home/cweyl/rpms/perl-Net-CUPS/Net-CUPS-0.41/Protocol' > make: *** [subdirs] Error 2 > > >
Subject: Re: [rt.cpan.org #24052] Net::CUPS fails to build under fedora core 6
Date: Fri, 16 Feb 2007 16:23:13 -0800
To: bug-Net-CUPS [...] rt.cpan.org
From: "Chris Weyl" <cweyl [...] alumni.drew.edu>
I've built & installed it on my main box (x86_64), and from some _very_ basic testing (e.g. connect to localhost, ask it what my userid is), things seem ok. However, if I do something like: my $cups = Net::CUPS->new(); my $server_name = $cups->getServer(); print "--$server_name\n"; my $username = $cups->getUsername(); print "$username\n"; my @printers = $cups->getDestinations(); for my $printer (@printers) { my $name = $printer->getName(); print "printer name: $name\n"; } I get: Can't locate object method "getName" via package "Net::CUPS::Destination" at ./test.me line 35. If I explicitly use Net::CUPS::Destination, then I get the printer names printed correctly, but on script termination: printer name: Cups-PDF printer name: uberhome *** glibc detected *** perl: double free or corruption (out): 0x00000000009f6f00 *** ======= Backtrace: ========= /lib64/libc.so.6[0x38e806ea30] /lib64/libc.so.6(cfree+0x8c)[0x38e807214c] /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/Net/CUPS/CUPS.so(XS_Net__CUPS__Destination_NETCUPS_freeDestination+0x162)[0x2aaaadff4f42] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_pp_entersub+0x3f6)[0x38ef890916] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_runops_standard+0xe)[0x38ef88a1de] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_call_sv+0x650)[0x38ef8376a0] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_sv_clear+0x76)[0x38ef895066] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_sv_free+0x80)[0x38ef895810] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_sv_clear+0x387)[0x38ef895377] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_sv_free+0x80)[0x38ef895810] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(Perl_free_tmps+0x4c)[0x38ef8b7e6c] /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so(perl_run+0x328)[0x38ef838058] perl(main+0xfc)[0x40179c] /lib64/libc.so.6(__libc_start_main+0xf4)[0x38e801da44] perl[0x401609] Pretty, eh? :) Again, this is Fedora Core 6, up to date, "This is perl, v5.8.8 built for x86_64-linux-thread-multi". On 2/16/07, via RT <bug-Net-CUPS@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24052 > > > > I have uploaded a new version of Net::CUPS. The API has changed to be > more OO and all of the code has been re-worked. Try it out and see if > it still fails. I am concerned how it fairs on a X86_64 platform. > > > On Fri Dec 22 16:24:57 2006, cweyl@alumni.drew.edu wrote:
> > FC6, x86_64, stock perl/etc, all updates applied. > > > > [cweyl@zeus Net-CUPS-0.41]$ rpmquery cups > > cups-1.2.7-1.3.fc6 > > [cweyl@zeus Net-CUPS-0.41]$ rpmquery cups-devel > > cups-devel-1.2.7-1.3.fc6 > > > > perl Makefile.PL; make fails with: > > > > gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe > > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall > > -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > > --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.41\" > > -DXS_VERSION=\"0.41\" -fPIC > > "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Protocol.c > > In file included from Protocol.xs:5: > > ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined > > In file included from Protocol.xs:2: > > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:163:1: > > warning: this is the location of the previous definition > > In file included from Protocol.xs:10: > > Protocol_constant_c.inc: In function 'constant_15': > > Protocol_constant_c.inc:1102: error: 'CUPS_ADD_DEVICE' undeclared > > (first use in this function) > > Protocol_constant_c.inc:1102: error: (Each undeclared identifier is > > reported only once > > Protocol_constant_c.inc:1102: error: for each function it appears in.) > > Protocol_constant_c.inc: In function 'constant_18': > > Protocol_constant_c.inc:1712: error: 'CUPS_DELETE_DEVICE' undeclared > > (first use in this function) > > In file included from Protocol.xs:11: > > ../common/common.c: In function 'XS_unpack_cups_option_tPtr': > > ../common/common.c:58: warning: unused variable 'option' > > ../common/common.c: In function 'XS_unpack_ipp_tPtr': > > ../common/common.c:443: warning: unused variable 'option' > > ../common/common.c: In function 'XS_pack_ipp_request_tPtr': > > ../common/common.c:475: warning: unused variable 'loop' > > ../common/common.c: In function 'XS_unpack_ipp_request_tPtr': > > ../common/common.c:511: warning: unused variable 'option' > > ../common/common.c: In function 'XS_pack_ipp_attribute_tPtr': > > ../common/common.c:585: warning: unused variable 'av' > > ../common/common.c:583: warning: unused variable 'version' > > ../common/common.c:581: warning: unused variable 'loop' > > ../common/common.c: In function 'XS_unpack_ipp_attribute_tPtr': > > ../common/common.c:617: warning: unused variable 'asv' > > ../common/common.c:615: warning: unused variable 'option' > > ../common/common.c:614: warning: unused variable 'av' > > ../common/common.c: In function 'XS_pack_ipp_value_tPtr': > > ../common/common.c:671: warning: unused variable 'av' > > ../common/common.c:669: warning: unused variable 'version' > > ../common/common.c:667: warning: unused variable 'loop' > > ../common/common.c: In function 'XS_unpack_ipp_value_tPtr': > > ../common/common.c:700: warning: unused variable 'asv' > > ../common/common.c:699: warning: unused variable 'ssv' > > ../common/common.c:698: warning: unused variable 'option' > > ../common/common.c:697: warning: unused variable 'av' > > Protocol.xs: In function 'XS_Net__CUPS__Protocol_ippTimeToDate': > > Protocol.xs:53: warning: assignment discards qualifiers from pointer > > target type > > make[1]: *** [Protocol.o] Error 1 > > make[1]: Leaving directory > > `/home/cweyl/rpms/perl-Net-CUPS/Net-CUPS-0.41/Protocol' > > make: *** [subdirs] Error 2 > > > > > >
> > > >
-- Chris Weyl Ex astris, scientia
Subject: Re: [rt.cpan.org #24052] Net::CUPS fails to build under fedora core 6
Date: Fri, 16 Mar 2007 18:47:42 -0700
To: bug-Net-CUPS [...] rt.cpan.org
From: "Chris Weyl" <cweyl [...] alumni.drew.edu>
On 2/16/07, via RT <bug-Net-CUPS@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=24052 > > > > I have uploaded a new version of Net::CUPS. The API has changed to be > more OO and all of the code has been re-worked. Try it out and see if > it still fails. I am concerned how it fairs on a X86_64 platform.
0.51 appears to fix this problem. Thanks! -- Chris Weyl Ex astris, scientia