Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: ldibanyez [...] gmail.com
Cc:
AdminCc:

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



Subject: Problem installing on Debian Lenny
Date: Wed, 12 Nov 2008 17:46:47 +1930
To: bug-Net-CUPS [...] rt.cpan.org
From: "Luis Daniel Ibáñez González" <ldibanyez [...] gmail.com>
Hi, I was trying to install the module version 0.59 on a Debian Lenny system (2.6.26-1-686) with perl 5.10.0, and i went through the following errors: 1) Show quoted text
> perl Makefile.PL
Net::CUPS Configuration Running cups-config ... failed. Net::CUPS requires the Common Unix Printing System. Check your system configuration and then attempt the configure process again. I realized that in my distro i need to install libcups2-dev in order to have the cups-config command, so, the bug here is that you need to point out that dependency (for Debian at least) 2) After solving 1: Show quoted text
> perl Makefile.PL
Net::CUPS Configuration Running cups-config ... 1.3.8 Checking if your kit is complete... Looks good Unrecognized argument in LIBS ignored: '-g' Unrecognized argument in LIBS ignored: '-O2' Unrecognized argument in LIBS ignored: '-g' Unrecognized argument in LIBS ignored: '-Wall' Unrecognized argument in LIBS ignored: '-O2' Unrecognized argument in LIBS ignored: '-I/usr/include/dbus-1.0' Unrecognized argument in LIBS ignored: '-I/usr/lib/dbus-1.0/include' Unrecognized argument in LIBS ignored: '-DDBUS_API_SUBJECT_TO_CHANGE' Writing Makefile for Net::CUPS Seems that, despite the unrecognized arguments, generated a makefile, but then... Show quoted text
> make
cp lib/Net/CUPS.pm blib/lib/Net/CUPS.pm AutoSplitting blib/lib/Net/CUPS.pm (blib/lib/auto/Net/CUPS) cp lib/Net/CUPS/Destination.pm blib/lib/Net/CUPS/Destination.pm AutoSplitting blib/lib/Net/CUPS/Destination.pm (blib/lib/auto/Net/CUPS/Destination) cp lib/Net/CUPS/IPP.pm blib/lib/Net/CUPS/IPP.pm AutoSplitting blib/lib/Net/CUPS/IPP.pm (blib/lib/auto/Net/CUPS/IPP) cp lib/Net/CUPS/PPD.pm blib/lib/Net/CUPS/PPD.pm AutoSplitting blib/lib/Net/CUPS/PPD.pm (blib/lib/auto/Net/CUPS/PPD) /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap CUPS.xs > CUPS.xsc && mv CUPS.xsc CUPS.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.59\" -DXS_VERSION=\"0.59\" -fPIC "-I/usr/lib/perl/5.10/CORE" CUPS.c CUPS.xs:10:24: error: cups/image.h: No existe el fichero o el directorio In file included from CUPS.xs:19: const-c.inc: In function 'constant_14': const-c.inc:730: error: 'CUPS_IMAGE_RGB' undeclared (first use in this function) const-c.inc:730: error: (Each undeclared identifier is reported only once const-c.inc:730: error: for each function it appears in.) const-c.inc:889: error: 'CUPS_IMAGE_CMY' undeclared (first use in this function) const-c.inc: In function 'constant_15': const-c.inc:1029: error: 'CUPS_IMAGE_CMYK' undeclared (first use in this function) const-c.inc: In function 'constant_16': const-c.inc:1176: error: 'CUPS_IMAGE_BLACK' undeclared (first use in this function) const-c.inc:1233: error: 'CUPS_IMAGE_WHITE' undeclared (first use in this function) const-c.inc: In function 'constant_19': const-c.inc:1880: error: 'CUPS_IMAGE_RGB_CMYK' undeclared (first use in this function) CUPS.xs: In function 'XS_Net__CUPS_NETCUPS_getDestination': CUPS.xs:118: warning: assignment discards qualifiers from pointer target type make: *** [CUPS.o] Error 1 And couldn't get any further, any ideas? thanks in advance for your support, -- Ing. Luis D. Ibáñez G. Oficina de Desarrollo y Soporte de Sistemas Gerencia de Ingeniería de Software Centro Nacional de Tecnologías de la Información
Comments are inline: On Tue Nov 11 17:17:25 2008, ldibanyez@gmail.com wrote: Show quoted text
> > I realized that in my distro i need to install libcups2-dev in order
to have Show quoted text
> the cups-config command, so, the bug here is that you need to point
out that Show quoted text
> dependency (for Debian at least)
It is actually in the README that CUPS is required to be installed. Unfortunately, I can't track how distros and/or variation of operating systems (Linux, BSD, Solaris) package the cups software to put specific instructions for each variation. It would take up all my free time! Show quoted text
> 2) After solving 1: >
> > perl Makefile.PL
> > Net::CUPS Configuration > Running cups-config ... 1.3.8 > Checking if your kit is complete... > Looks good > Unrecognized argument in LIBS ignored: '-g' > Unrecognized argument in LIBS ignored: '-O2' > Unrecognized argument in LIBS ignored: '-g' > Unrecognized argument in LIBS ignored: '-Wall' > Unrecognized argument in LIBS ignored: '-O2' > Unrecognized argument in LIBS ignored: '-I/usr/include/dbus-1.0' > Unrecognized argument in LIBS ignored: '-I/usr/lib/dbus-1.0/include' > Unrecognized argument in LIBS ignored: '-DDBUS_API_SUBJECT_TO_CHANGE' > Writing Makefile for Net::CUPS
Interesting. I take the output from the cups-config command to compile the Net::CUPS module correctly. It seems for some reason that the output from your Debian installed version of CUPS isn't what it would expect. Show quoted text
> CUPS.xs:10:24: error: cups/image.h: No existe el fichero o el directorio > In file included from CUPS.xs:19: > const-c.inc: In function 'constant_14': > const-c.inc:730: error: 'CUPS_IMAGE_RGB' undeclared (first use in this > function) > const-c.inc:730: error: (Each undeclared identifier is reported only once > const-c.inc:730: error: for each function it appears in.) > const-c.inc:889: error: 'CUPS_IMAGE_CMY' undeclared (first use in this > function) > const-c.inc: In function 'constant_15': > const-c.inc:1029: error: 'CUPS_IMAGE_CMYK' undeclared (first use in this
These final errors indicate that the packager for CUPS did not include the image.h file in the .deb. This is unfortunately a problem with the distro and not the Net::CUPS. You can resolve this by downloading the source to cups and finding the image.h file in the source, putting it in the right place on your system and recompiling. You might also want to put in a bug report to the CUPS packager.