Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258244 - net-print/cnijfilter-3.00 - Canon pixma/pixus drivers
Summary: net-print/cnijfilter-3.00 - Canon pixma/pixus drivers
Status: RESOLVED DUPLICATE of bug 446530
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard: sunrise suggested
Keywords: EBUILD
: 279182 279183 (view as bug list)
Depends on:
Blocks: printer-drivers
  Show dependency tree
 
Reported: 2009-02-08 22:54 UTC by rogge
Modified: 2017-09-26 17:43 UTC (History)
13 users (show)

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


Attachments
/net-print/cnijfilter/cnijfilter-3.00.ebuild (cnijfilter-3.00.ebuild,7.61 KB, text/plain)
2009-02-08 22:55 UTC, rogge
Details
updated ebuild for canon pixma mx330 (cnijfilter-3.10.ebuild,7.02 KB, text/plain)
2009-10-05 02:28 UTC, Carlos Velez Baez
Details
some trival changes (cleaner code) and symlink-fix for amd64 (cnijfilter-3.00.1.ebuild,7.70 KB, text/plain)
2010-01-01 23:35 UTC, rogge
Details
Typo-fix -> Comment #12 (cnijfilter-3.00.2.ebuild,7.70 KB, text/plain)
2010-03-15 01:07 UTC, rogge
Details
Fully updated ebuild. (cnijfilter-3.00-r3.ebuild,8.59 KB, text/plain)
2011-04-13 00:25 UTC, rogge
Details
Fixes cnijfilter build errors with updated libpng (0001-replaced-direct-access-to-jmpbuf-with-png_jmpbuf.patch,878 bytes, patch)
2012-02-22 09:51 UTC, Dmitri Bachtin
Details | Diff
Ebuild for libpng15 patch (cnijfilter-3.00-r3.ebuild,8.69 KB, text/plain)
2012-02-22 09:56 UTC, Dmitri Bachtin
Details
cnijfilter-3.00-r4.ebuild (cnijfilter-3.00-r4.ebuild,8.62 KB, text/plain)
2012-05-22 22:48 UTC, Fitzcarraldo
Details
fixed ebuild for libpng15 and cups-1.5 (cnijfilter-3.00-r5.ebuild,8.73 KB, text/plain)
2012-05-24 14:52 UTC, Machredsch
Details
Fully updated ebuild (cnijfilter-3.00-r5.ebuild,7.94 KB, text/plain)
2012-08-26 18:20 UTC, rogge
Details
Patch for include of cups/ppd.h (include_cups_ppd_h.patch,702 bytes, patch)
2012-08-26 18:23 UTC, rogge
Details | Diff
libpng15.patch (libpng15.patch,896 bytes, patch)
2012-08-26 18:23 UTC, rogge
Details | Diff
Fully updated ebuild (cnijfilter-3.00-r5.ebuild,7.94 KB, text/plain)
2012-08-26 18:32 UTC, rogge
Details
Fix for amd64 (cnijfilter-3.00-r6.ebuild,10.33 KB, text/plain)
2012-09-21 12:03 UTC, furuki328
Details
backend_multilib.patch (backend_multilib.patch,377 bytes, patch)
2012-09-21 12:04 UTC, furuki328
Details | Diff
Replace ebuild (cnijfilter-3.00-r6.ebuild,10.89 KB, text/plain)
2012-09-22 10:38 UTC, furuki328
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rogge 2009-02-08 22:54:19 UTC
The new version support the following printers:

IP1900
IP2200
IP3600
IP4200
IP4600
IP6600d
IP7500
MP190
MP240
MP500
MP540
MP630

The compileprocess producing some warnings, but it works fine.
The AMD64-Support is untested.

For further informations have a look on previous cnijfilter-releases.
Comment 1 rogge 2009-02-08 22:55:23 UTC
Created attachment 181398 [details]
/net-print/cnijfilter/cnijfilter-3.00.ebuild
Comment 2 Thierry de Kok 2009-03-21 14:19:26 UTC
Tested this ebuild on amd64. It depends on >=app-emulation/emul-linux-x86-bjdeps-0.1, which is only in zugaina overlay. This depends on SRC_URI="ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/popt-1.7.tar.gz", which cannot be downloaded at the moment.

Comment 3 Dennis Schridde 2009-04-21 09:29:51 UTC
Duplicate of bug #130645 ?
Comment 4 rogge 2009-04-22 13:52:34 UTC
It isn't a duplicate!
These drivers aren't backwardcompatible. Means each driverversion supperts only a small list of printers and nothing beyond.
Maybe you wich to create one big ebuild for all ;)
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-29 15:37:16 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.
Heuristics show that no Gentoo developer has commented on your ebuild.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 6 Machredsch 2009-10-02 09:57:47 UTC
I have an x86_64 Gentoo and I installed the ebuild in addition with bjdeps-0.1-r2.
After that I could select the driver within cups but nothing happened when I printed a test site.
I looked at /usr/lib and the ebuild created a symbolic link bjlib, which is pointed to /usr/lib/cnijlib.
But that dir doesn't exist on my x86_64, because the cnijlib is at /usr/lib32.
So I went to /usr/lib32 and made a new link in that dir "ln -s /usr/lib32/cnijlib bjlib". Then I made chmod 777 with the link and had success in printing now.
Didn't know if that helps others. I have emerged the ebuild with "mp630" Flag.
Comment 7 Carlos Velez Baez 2009-10-05 02:28:43 UTC
Created attachment 206048 [details]
updated ebuild for canon pixma mx330

I recently got a new printer "Canon Pixma MX330" and I have made couple of changes to this ebuild to make it work with my printer.
Comment 8 白川間瀬流 2009-12-01 15:44:58 UTC
Does it work with Cups 1.4 too? CNIJFILTER 3.00 does not work with Cups 1.4 for me
Comment 9 rogge 2010-01-01 20:51:37 UTC
(In reply to comment #7)
> Created an attachment (id=206048) [details]
> updated ebuild for canon pixma mx330
> 
> I recently got a new printer "Canon Pixma MX330" and I have made couple of
> changes to this ebuild to make it work with my printer.
> 

Sorry for the belated reaction, but I'm very busy. Like most people here.

That what you do, wasn't an addition. You've create a new ebuild. have a look at comment #4.
No one of the printers I've added are supported with your new ebuild. So it isn't an update. Sorry.
Maybe you should open a new (bug-)report.
Comment 10 rogge 2010-01-01 20:56:14 UTC
(In reply to comment #8)
> Does it work with Cups 1.4 too? CNIJFILTER 3.00 does not work with Cups 1.4 for
> me
> 

Currently I'm using version 1.3.11-r1. There is no reason for an upgrade for me.
Do you need to use cups 1.4?
Comment 11 rogge 2010-01-01 23:35:00 UTC
Created attachment 214891 [details]
some trival changes (cleaner code) and symlink-fix for amd64

@Heimfrost: May can you test the last update?!
Comment 12 Evert 2010-03-04 12:20:38 UTC
There's a typo in cnijfilter-3.00.1.ebuild which affects the mp630:

$pr_7 should be $_pr7
Comment 13 rogge 2010-03-15 01:07:19 UTC
Created attachment 223575 [details]
Typo-fix -> Comment #12

Thanks @ Evert. Fixed
Comment 14 Evert 2010-03-20 10:57:54 UTC
The DEPEND virtual/ghostscript, used in both cnijfilter-3.00.2.ebuild and cnijfilter-3.10.ebuild, has disappeared from portage so this should be replaced by app-text/ghostscript-gpl like in all other ebuilds in portage.

Furthermore, I took a quick look at these ebuilds and found "chown 777" statements in the ebuilds.  This makes all files in /usr/lib/cnijlib/ (or /usr/lib32/cnijlib/) belong to the user with user-id 777.  This cannot be what we want since we don't know which (if one exists) user has user-id 777.  Even if the chown statements were meant to be chmod, we would not want to make files in /usr/lib/cnijlib/ (or /usr/lib32/cnijlib/) world writable, would we?
So, I suggest removing the chown statements.

Also since >=dev-libs/libxml-1.8 is masked for removal in 30 days but seems to be needed by the cnijtools useflag, there should be thought of some solution for this. The package installes fine without the >=dev-libs/libxml-1.8 dependency, but I'm not sure what impact it has on the cnijtools since it's not clear to me how to use the cngpij, cngpijmon, lgmon, and printui tools...
Comment 15 salvo 2010-04-15 22:47:35 UTC
I just downloaded the ebuild and try it out for the ip3600.
This is what I get ..

>>> Unpacking cnijfilter-common-3.00-1.tar.gz to /var/tmp/portage/net-print/cnijfilter-3.00.2/work
mv: cannot stat `cnijfilter-common-3.00-1.tar.gz': No such file or directory
 * ERROR: net-print/cnijfilter-3.00.2 failed:
 *   (no error message)
Comment 16 salvo 2010-04-16 08:48:38 UTC
I fixed the problem.

Basically the downloaded package ends with 3.00-1 while the unpacked directory
is 3.00, I hard-coded the 3.00 in the ebuild to fix it temporarily on my side.
Comment 17 ruddy32 2010-11-29 14:22:44 UTC
I build this package under amd64 platform. cnijfilter-3.00.2 package has dependency with emul-linux-x86-bjdeps-0.2 which does not exist. The last version is emul-linux-x86-bjdeps-0.1-r2. Do we have to use this one?
Comment 18 Wonko 2010-12-29 16:32:19 UTC
I tried the 3.00.2 ebuild, renamed it to 3.00 so it would find its files (see comments #14 and #15), and removed the libxml-1.8 dependency. Compiling fails with this error:

cnij_usb.c:290:1611: Warnung: Typkonvertierung von Zeiger auf Ganzzahl anderer Breite
cnij_usb.c:290:1648: Warnung: Typkonvertierung von Zeiger auf Ganzzahl anderer Breite
mv -f .deps/cnij_usb.Tpo .deps/cnij_usb.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2 -Wall  -Wl,-O1 -Wl,--as-needed -o cnijusb cnij_backend_common.o cnij_usb.o -lcups -lcups 
libtool: link: gcc -O2 -Wall -Wl,-O1 -Wl,--as-needed -o cnijusb cnij_backend_common.o cnij_usb.o  -lcups
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `cnij_backend_common.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `cnij_usb.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.4.4/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
distcc[21240] ERROR: compile (null) on localhost failed
make[2]: *** [cnijusb] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend'
make: *** [all] Fehler 2
 * ERROR: net-print/cnijfilter-3.00 failed:
 *   Couldn't make backend

This is on a 32bit system:

Portage 2.2.0_alpha10 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-tuxonice-r3 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-tuxonice-r3-i686-AMD_Sempron-tm-_Processor_3000+-with-gentoo-1.12.14
Timestamp of tree: Sat, 25 Dec 2010 18:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.3.6-r1::<unknown repository>, 4.1.2, 4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34 (sys-kernel/linux-headers)
Repositories: gentoo kde kde-sunset local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/xkb /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=athlon-tbird -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://portage:portage-ftp@weird/ http://mirror.gentoo.no/ ftp://mirror.muntinternet.net/pub/gentoo/ http://mirror.jamit.de/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/layman/kde /var/portage/layman/kde-sunset /var/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa apm audiofile bash-completion berkdb bluetooth branding bzip2 cairo cddb cdr cli consolekit cracklib crypt cups cxx dbus dga dio dri dts dvd dvdr dvdread emboss encode exif fam fbcon ffmpeg firefox flac foomaticdb ftp gd gdbm gdu ggi gif gimp gphoto2 gpm gtk hal handbook iconv imagemagick imlib ipv6 jabber java javascript jpeg jpeg2k kde lame lcms ldap libnotify lm_sensors mad mikmod mime mmx mng modules motif mozbranding mp3 mp4 mpeg mplayer msn mudflap musicbrainz ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime readline recode samba scanner sdl semantic-desktop session sid sndfile sox speex spell sse ssl startup-notification svg svga sysfs tcpd tiff truetype unicode usb v4l videos visualization vorbis win32codecs wma wmf x264 x86 xcb xine xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="es1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 rogge 2011-04-13 00:25:24 UTC
Created attachment 269741 [details]
Fully updated ebuild.

Hej,

sorry for long period of stillness. But I'm very busy and the old version was working for me. But now the orphaned ebuild is up-to-date. I've tryed to fix all bugs and attend all comments. Except the last of Wonko, but hopefully it fixed with this release, too.

Greats, rogge

PS: I'm a 32-Bit-User, so let me know if 64-Bit makes trouble.
Comment 20 rogge 2011-04-13 09:26:22 UTC
Last Changelog: 2011-04-13 Current Version: 3.00-r2
    * add eclass versionator to fix unpack-bug (non-hardcoding) # see comment 15
    * fix dependency-bug for 2nd emul-linux-x86-bjdeps (noneffective downgrade)
        # see comment 17
    * replaced dependency of non-existing virtual/ghostscript with
      app-text/ghostscript-gpl # see comment 14
    * remove dependency of non-existing dev-libs/libxml-1.8; dependency
      >=dev-libs/libxml2-2.6.0 is to continue # ibidem
    * change chmod of /usr/lib/cnijlib rspv. /usr/lib32/cnijlib to 755 # ibidem

Greats, rogge
Comment 21 rogge 2011-04-14 12:32:56 UTC
Sorry, once I've forgot:

    * rename cnijtools to servicetools

Greats, rogge
Comment 22 Wonko 2011-04-16 00:14:04 UTC
Thanks, the error I had reported is gone, it compiles under x86 now.

It doesn't build under~xmd64 though:
checking for GTK+ - version >= 2.0.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.3, but GTK+ (2.22.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Cannot find GTK: Is gtk-config in path?

No idea where the 2.22.1 comes from, gtk+ 2.24.4 is installed. And indeed I do not have a gtk-config on my system. Should I?

Personally, I don't care about this, because I do not have this printer. But if you want to dig into this and need more information, tell me.
Comment 23 Pacho Ramos gentoo-dev 2011-08-28 12:47:27 UTC
*** Bug 279183 has been marked as a duplicate of this bug. ***
Comment 24 Pacho Ramos gentoo-dev 2011-08-28 12:49:28 UTC
*** Bug 279182 has been marked as a duplicate of this bug. ***
Comment 25 Pacho Ramos gentoo-dev 2011-08-28 14:35:03 UTC
Is 3.00 the latest version supporting your printers? If not, better try to bump
ebuild to latest one.

More suggestions:
- Isn't your printed supported by opensource alternatives like
gutenprint/sane-backends?

- Try to bump ebuild to EAPI=4. Looks at:
http://devmanual.gentoo.org/ebuild-writing/eapi/index.html

for that.

- License should be "GPL-2" and we would need to commit a "Canon" license to
the tree per I can read in:
http://support-asia.canon-asia.com/contents/ASIA/EN/0100084101.html


- Try to use a SLOT for it -> 3.00 , that way we try to allow parallel
installation with other driver versions. Other option would be to have a
different package for each version, probably this needs more discussion (how
would be better to handle this, slotting or separate packages?)
- IUSE contents look to be wrong: most listed flags are not used in ebuild and,
then, should be dropped from IUSE

- DEPEND mixes runtime deps with buildtime ones, split them please listing
buildtime only deps only under DEPEND and remaning ones under RDEPEND.

- pkg_setup:
* Are you setting /usr/local as prefix? It's wrong, it should use /usr or /opt
if it's a binary only application:
http://devmanual.gentoo.org/general-concepts/filesystem/index.html
* Drop "einfo" statements about USE flags, descriptions must go in metadata.xml
files.

- src_compile:
* Split commands to complaint src_configure and src_compile phases. Also think
about src_prepare phase for other tasks.
* Change all "make" invocations to use "emake" instead

- src_install:
* Use "emake" instead of "make"

- pkg_postinst:
* Use "elog" instead of "einfo":
http://devmanual.gentoo.org/ebuild-writing/messages/index.html
Comment 26 Machredsch 2011-10-20 11:47:48 UTC
New Compile Error here with USE="(amd64) mp630 -ip1900 -ip3600 -ip4600 -mp190 -mp240 -mp540 -servicetools" 
It seems to me, it's due to update to libpng 1.5.5.

---------- related error messages ---------------

bjfimage.c: In function 'png_image_init':
bjfimage.c:1578:20: error: dereferencing pointer to incomplete type
bjfimage.c:1590:16: warning: passing argument 3 of 'png_get_IHDR' from incompatible pointer type
/usr/include/png.h:2154:22: note: expected 'png_uint_32 *' but argument is of type 'long int *'
bjfimage.c:1590:16: warning: passing argument 4 of 'png_get_IHDR' from incompatible pointer type
/usr/include/png.h:2154:22: note: expected 'png_uint_32 *' but argument is of type 'long int *'
bjfimage.c: In function 'ppm_write_tmpfile':
bjfimage.c:1839:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'bmp_image_flush':
bjfimage.c:875:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'ppm_image_flush':
bjfimage.c:1159:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'bmp_image_read_raster':
bjfimage.c:804:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c:809:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c:815:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'ppm_image_read_raster':
bjfimage.c:1106:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c:1109:9: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c:1114:10: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'bmp_image_open':
bjfimage.c:610:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'ppm_image_open':
bjfimage.c:924:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
bjfimage.c: In function 'png_image_open':
bjfimage.c:1498:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result
make[2]: *** [bjfimage.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00-r3/work/cnijfilter-3.00/mp630/cnijfilter/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00-r3/work/cnijfilter-3.00/mp630/cnijfilter'
make: *** [all] Error 2


---------- emerge --info =net-print/cnijfilter-3.00-r3 ----------------

Portage 2.2.0_alpha69 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 2.6.38.5-zen x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.38.5-zen-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-gentoo-2.1
Timestamp of tree: Thu, 20 Oct 2011 10:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo amielke-overlay steev mozilla nikai machredsch
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --autounmask=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/gentoo"
PORTDIR_OVERLAY="/usr/portage/layman/amielke-overlay /usr/portage/layman/steev /usr/portage/layman/mozilla /usr/portage/layman/nikai /usr/portage/machredsch"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apm bash-completion bcmath bzip2 cairo cdda cddb cdr cleartype cli consolekit cracklib crypt ctype cups curl cxx dbus dga djvu dri dts dvd dvdr encode exif fat fbcon firefox flac fontconfig fortran ftp fuse gallium gdbm gdu geoip gif glut gnutls gpm gtk iconv idn imagemagick imap imlib innodb jpeg lame lcms libkms libnotify llvm lm_sensors mad matroska mbox mime mmap mmx mng modules mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly ntfs ogg opengl openmp openvg pam pcre pdf png policykit posix ppds readline rss sasl sdl session smp sockets spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb v4l2 vcd vhosts vorbis wavpack x264 xattr xcb xcomposite xml xmp xorg xpm xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="radeon v4l fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 27 reisio 2012-01-28 11:28:26 UTC
(In reply to comment #26)
see bug 130645
Comment 28 Dmitri Bachtin 2012-02-22 09:51:18 UTC
Created attachment 302797 [details, diff]
Fixes cnijfilter build errors with updated libpng

With current libpng cnijfilter doesn't build anymore as the contents of the png_struct aren't accessible via the updated API. I'm attaching a patch which should fix the problem.
Comment 29 Dmitri Bachtin 2012-02-22 09:56:20 UTC
Created attachment 302803 [details]
Ebuild for libpng15 patch

The attached ebuild applies the previously attached patch for libpng compatibility.
Comment 30 Kristian Niemi 2012-03-05 19:43:47 UTC
Tried the ebuild, and it starts to build OK but fails with the following:


gcc  -O2 -L../../338/libs_bin -Wl,-O1 -Wl,--as-needed -o cif bjferror.o bjfilter.o bjfimage.o bjfoption.o bjfpos.o bjfrcaccess.o getipc.o bjflist.o -lcnbpcmcm338 -lcnbpess338 -lm -ldl -ltiff -lp
ng -lcnbpcnclapi338 -lcnbpcnclbjcmd338 -lcnbpcnclui338 -lpopt 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../../338/libs_bin/libcnbpcmcm338.so when searching for -lcnbpcmcm338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpcmcm338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../../338/libs_bin/libcnbpess338.so when searching for -lcnbpess338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpess338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../../338/libs_bin/libcnbpcnclapi338.so when searching for -lcnbpcnclapi338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpcnclapi338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../../338/libs_bin/libcnbpcnclbjcmd338.so when searching for -lcnbpcnclbjcmd338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpcnclbjcmd338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../../338/libs_bin/libcnbpcnclui338.so when searching for -lcnbpcnclui338
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcnbpcnclui338
collect2: ld returned 1 exit status
make[2]: *** [cif] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00-r2/work/cnijfilter-3.00/mp540/cnijfilter/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00-r2/work/cnijfilter-3.00/mp540/cnijfilter'
make: *** [all] Error 2
 * ERROR: net-print/cnijfilter-3.00-r2 failed (compile phase):
 *   Couldn't make mp540/cnijfilter
Comment 31 Kristian Niemi 2012-03-17 17:03:18 UTC
(In reply to comment #30)

Any ideas what I could try?
Comment 32 Dmitri Bachtin 2012-03-19 18:56:11 UTC
Unfortunately I haven't got access to my gentoo workstation for this week. Try to build with -servicetools USE flag. The drivers should work without those GUI components.
Comment 33 Kristian Niemi 2012-03-20 11:41:33 UTC
(In reply to comment #32)
> Unfortunately I haven't got access to my gentoo workstation for this week.
> Try to build with -servicetools USE flag. The drivers should work without
> those GUI components.

Thanks for the suggestion, but unfortunately it fails at the exact same place, with the same error (see #30), with USE="-servicetools".
Comment 34 Kristian Niemi 2012-05-22 18:56:22 UTC
There's been recent progress on bug 130645, and I can incorporate some of the methods used, to get somewhat further in the build process, but I'm too much out of my depth to be able to fully make it work. Could someone take a look at the solutions there, and do something similar for 3.00?
Comment 35 Fitzcarraldo 2012-05-22 22:48:04 UTC
Created attachment 312763 [details]
cnijfilter-3.00-r4.ebuild

Kristian, I applied the fix specified by user liucougar in post Gentoo Forums post http://forums.gentoo.org/viewtopic-p-7030836.html#7030836 to the cnijfilter-3.00-r3.ebuild and named the revised ebuild cnijfilter-3.00-r4.ebuild, attached herewith. Try installing that. But, as you are using ~amd64, you must first install the package emul-linux-x86-bjdeps-0.1-r4 using the ebuild in Gentoo Bugilla Bug Report:

https://bugs.gentoo.org/show_bug.cgi?id=129352
Comment 36 Kristian Niemi 2012-05-23 19:34:26 UTC
(In reply to comment #35)
> Created attachment 312763 [details]
> cnijfilter-3.00-r4.ebuild
> 
> Kristian, I applied the fix specified by user liucougar in post Gentoo
> Forums post http://forums.gentoo.org/viewtopic-p-7030836.html#7030836 to the
> cnijfilter-3.00-r3.ebuild and named the revised ebuild
> cnijfilter-3.00-r4.ebuild, attached herewith. Try installing that. But, as
> you are using ~amd64, you must first install the package
> emul-linux-x86-bjdeps-0.1-r4 using the ebuild in Gentoo Bugilla Bug Report:
> 
> https://bugs.gentoo.org/show_bug.cgi?id=129352

Thank you so much for helping out!

I did as suggested. bjdeps-0.1-r4 installed without a glitch, but still having trouble with cnijfilter-3.00-r4. It fails with the following:

---------------------------------------------
config.status: executing depfiles commands                                                                                                                                               [35/1484]
config.status: executing libtool commands
Now type `make' to compile
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00-r4/work/cnijfilter-3.00/backend'
Making all in src
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00-r4/work/cnijfilter-3.00/backend/src'
x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I..     -O2 -Wall -MT cnij_backend_common.o -MD -MP -MF .deps/cnij_backend_common.Tpo -c -o cnij_backend_common.o cnij_backend_common.c
cnij_backend_common.c: In function 'get_model_name':
cnij_backend_common.c:192:2: error: 'ppd_file_t' undeclared (first use in this function)
cnij_backend_common.c:192:2: note: each undeclared identifier is reported only once for each function it appears in
cnij_backend_common.c:192:14: error: 'p_file' undeclared (first use in this function)
cnij_backend_common.c:196:2: warning: implicit declaration of function 'ppdOpenFile'
cnij_backend_common.c:218:3: warning: implicit declaration of function 'ppdClose'
cnij_backend_common.c: In function 'check_options':
cnij_backend_common.c:435:10: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make[2]: *** [cnij_backend_common.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00-r4/work/cnijfilter-3.00/backend/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00-r4/work/cnijfilter-3.00/backend'
make: *** [all] Error 2
 * ERROR: net-print/cnijfilter-3.00-r4 failed (compile phase):
 *   Couldn't make backend
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2428:  Called die
 * The specific snippet of code:
 *       make || die "Couldn't make backend";
---------------------------------------------

Suggestions?
Comment 37 Machredsch 2012-05-24 14:52:04 UTC
Created attachment 312955 [details]
fixed ebuild for libpng15 and cups-1.5

I added fixed ebuild for libpng15 problem and cups-1.5 problem.
I don't use some additional patch files here. I included only sed commands as in 3.40-r7 ebuild.
I changed the bjdeps dependency to 0.1-r4.
If it doesn't work for minor cups versions, try to remove the cups patch or correct dependencies, I couldn't test that.
For me it compiles fine under amd64 with USE="mp630 -servicetools".
Comment 38 Machredsch 2012-05-26 14:23:15 UTC
Driver compiles, but doesn't print anything for me, neither with cups-1.4.8 nor 1.5.2.
Comment 39 Kristian Niemi 2012-07-23 11:17:17 UTC
(In reply to comment #38)
> Driver compiles, but doesn't print anything for me, neither with cups-1.4.8
> nor 1.5.2.

Using Heimfrosts ebuild it does indeed build (at least without servicetools; haven't tried with) but won't print.

In cups' error log I see the following:

D [23/Jul/2012:14:13:29 +0300] [Job 16] /usr/local/bin/cifmp540: error while loading shared librarie
s: libcnbpcnclapi338.so: cannot open shared object file: No such file or directory
Comment 40 Kristian Niemi 2012-07-23 11:36:58 UTC
Also: 

D [23/Jul/2012:14:34:30 +0300] [Job 24] /usr/local/bin/cifmp540: error while loading shared libraries: libcnbpcnclui338.so: cannot open shared object file: No such file or directory
Comment 41 Kristian Niemi 2012-07-23 11:50:18 UTC
And:

D [23/Jul/2012:14:37:24 +0300] [Job 25] /usr/local/bin/cifmp540: error while loading shared libraries: libcnbpcnclbjcmd338.so: cannot open shared object file: No such file or directory

D [23/Jul/2012:14:39:05 +0300] [Job 26] /usr/local/bin/cifmp540: error while loading shared libraries: libcnbpcmcm338.so: cannot open shared object file: No such file or directory

D [23/Jul/2012:14:43:39 +0300] [Job 31] /usr/local/bin/cifmp540: error while loading shared libraries: libcnbpess338.so: cannot open shared object file: No such file or directory


------------------


All of the above (and those from earlier comments) appeared one after the other, after I'd fixed them, in that order. And in all cases, the command still exited with no errors, so CUPS didn't know anything was wrong, so to speak.

Each of the libraries claimed missing were there in "versioned form" (/usr/lib32/libcnbpcmcm338.so.7.03.1 for example). And linking them, respectively, to "library.so", which cifmp540 was looking for, fixed the complaints.

Alas, printing still fails.

Once the libraries were linked into place, something is at least sent to the printer. "Preparing," it says. But nothing gets printed. "Preparations" having been finished, it just stops.
Comment 42 Kristian Niemi 2012-07-23 12:35:58 UTC
Hum. I installed the latest cnijfilter-3.20 ebuild from bug #130645 with USE pixma550 --- even though the printer I have, is pixma540. 
...
And it worked!
Comment 43 rogge 2012-08-26 18:20:19 UTC
Created attachment 322302 [details]
Fully updated ebuild
Comment 44 rogge 2012-08-26 18:23:11 UTC
Created attachment 322304 [details, diff]
Patch for include of cups/ppd.h
Comment 45 rogge 2012-08-26 18:23:49 UTC
Created attachment 322306 [details, diff]
libpng15.patch
Comment 46 rogge 2012-08-26 18:29:47 UTC
Hej,

back again. I do a full update of the ebuild. I'm geared to #25 an https://bugs.gentoo.org/show_bug.cgi?id=130645 (add patches).

For me, it works fine. AMD64 not testet.

Regards, rogge
Comment 47 rogge 2012-08-26 18:32:00 UTC
Created attachment 322314 [details]
Fully updated ebuild

It looks like, I've been delete the file, so I uploaded again.
Comment 48 furuki328 2012-09-21 12:03:26 UTC
Created attachment 324494 [details]
Fix for amd64
Comment 49 furuki328 2012-09-21 12:04:17 UTC
Created attachment 324496 [details, diff]
backend_multilib.patch
Comment 50 furuki328 2012-09-21 12:05:37 UTC
Fix for amd64

I made additional change for USE="amd64" and it works good for me.

I found a hard coding "/usr/lib/cups/backend" in backend/src/Makefile.am from original soruce and patched it. Please find it in backend_multilib.patch. 

And I modified "lib" directory name in ebuild for work with both amd64 and x86.
Then named it cnijfilter-3.00-r6.ebuild.

I don't have x86 environment, I can't try without USE="amd64".
Comment 51 furuki328 2012-09-22 10:38:40 UTC
Created attachment 324608 [details]
Replace ebuild

Yesterday's ebuild was wrong file (That was for iP4600 only).
I replace correct one.

This is my first patch for OSS and I'm not goot at English. Please inform me if there are any problems or bad manners.
Comment 52 Sergey Popov gentoo-dev 2012-12-09 08:26:25 UTC

*** This bug has been marked as a duplicate of bug 205536 ***
Comment 53 rogge 2012-12-09 10:26:12 UTC
It is not duplicate! This version support other printers:

IP1900
IP2200
IP3600
IP4200
IP4600
IP6600d
IP7500
MP190
MP240
MP500
MP540
MP630
Comment 54 Tomáš Chvátal (RETIRED) gentoo-dev 2012-12-21 11:02:02 UTC

*** This bug has been marked as a duplicate of bug 446530 ***
Comment 55 lebkoungcity 2013-09-01 14:57:14 UTC
(In reply to Wonko from comment #22)
> Thanks, the error I had reported is gone, it compiles under x86 now.
> 
> It doesn't build under~xmd64 though:
> checking for GTK+ - version >= 2.0.0...
> *** 'pkg-config --modversion gtk+-2.0' returned 2.24.3, but GTK+ (2.22.1)
> *** was found! If pkg-config was correct, then it is best
> *** to remove the old version of GTK+. You may also be able to fix the error
> *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
> *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
> *** required on your system.
> *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
> *** to point to the correct configuration files
> no
> configure: error: Cannot find GTK: Is gtk-config in path?
> 
> No idea where the 2.22.1 comes from, gtk+ 2.24.4 is installed. And indeed I
> do not have a gtk-config on my system. Should I?
> 
> Personally, I don't care about this, because I do not have this printer. But
> if you want to dig into this and need more information, tell me.


Thanks a lot for all the work you all put into this ebuild! With this I have a real chance to get my 'new' IP4600 to work :)

But unfortunately I get an error similar to this here in #22. Mine is:

 --- snip ---

checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.6.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: Cannot find GTK: Is gtk-config in path?
 * ERROR: net-print/cnijfilter-3.00-r6 failed (compile phase):
 *   Error: printui/autoconf.sh failed
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2746:  Called src_compile_pr
 *   environment, line 2765:  Called die
 * The specific snippet of code:
 *           ./autogen.sh --datadir=${_datadir} --program-suffix=${_pr} || die "Error: printui/autoconf.sh failed";

 --- snap ---

Do you need more info?
Comment 56 mfld.fr 2017-09-26 17:43:18 UTC
If you are still interested in the 3.00 version, please request again the package for your printer series as explained in https://wiki.gentoo.org/wiki/Canon_Pixma_Printer. This way to sort between "no more needed" / "still needed" ones, and to avoid wasting time on obsolete / unused series.