Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176857 - net-print/kink-0.2.1-r1 fails with net-print/libinklevel-0.7.1
Summary: net-print/kink-0.2.1-r1 fails with net-print/libinklevel-0.7.1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-02 22:47 UTC by Erik Zeek
Modified: 2007-06-22 06:10 UTC (History)
3 users (show)

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


Attachments
New ebuild for kink with libinkevel 0.7.1 (kink-0.2.1-r2.ebuild,635 bytes, text/plain)
2007-06-22 00:02 UTC, Joerg Plate
Details
Patch for kink.cpp to use the new API (kink-0.2.1-r2.api-update.patch,821 bytes, patch)
2007-06-22 00:03 UTC, Joerg Plate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2007-05-02 22:47:55 UTC
Kink currently fails to build with libinklevel-0.7.1.

make[2]: Entering directory `/tmp/portage/net-print/kink-0.2.1-r1/work/kink-0.2.1/kink'
kink.cpp: In member function ‘void KInk::auto_detect()’:
kink.cpp:79: error: invalid conversion from ‘int’ to ‘const char*’
kink.cpp:79: error: invalid conversion from ‘ink_level*’ to ‘int’
/usr/include/inklevel.h:102: error: too few arguments to function ‘int get_ink_level(int, const char*, int, ink_level*)’
kink.cpp:79: error: at this point in file
kink.cpp:94: error: invalid conversion from ‘int’ to ‘const char*’
kink.cpp:94: error: invalid conversion from ‘ink_level*’ to ‘int’
/usr/include/inklevel.h:102: error: too few arguments to function ‘int get_ink_level(int, const char*, int, ink_level*)’
kink.cpp:94: error: at this point in file
kink.cpp: In member function ‘void KInk::update_view()’:
kink.cpp:205: error: invalid conversion from ‘int’ to ‘const char*’
kink.cpp:205: error: invalid conversion from ‘ink_level*’ to ‘int’
/usr/include/inklevel.h:102: error: too few arguments to function ‘int get_ink_level(int, const char*, int, ink_level*)’
kink.cpp:205: error: at this point in file
make[2]: *** [kink.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Comment 1 Erik Zeek 2007-05-02 22:48:36 UTC
emerge --info
Portage 2.1.2.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 02 May 2007 21:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=prescott -march=prescott -pipe"
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 /usr/spool/PBS"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=prescott -march=prescott -pipe"
DISTDIR="/home/gentoo/portage/distfiles"
FEATURES="candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.espri.arizona.edu/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.llarian.net/ http://mirror.datapipe.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en en_US"
MAKEOPTS="-j2 -s -w"
PKGDIR="/home/gentoo/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=20 --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/local/portage /home/gentoo/local/layman/science /home/gentoo/local/layman/vmware /home/gentoo/local/layman/xeffects /home/gentoo/local/layman/sunrise"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib acct acl acpi activefilter ada aiglx aim aio akode alsa amarok amazon amd amr animgif ansi aoss aotuv apache apache2 apm arts artswrappersuid artworkextra asf asm asterisk async atm auctex audiofile auth authdaemond authfile automount background bash-completion bcmath bcp bdf berkdb bigpatch binary-drivers binfilter bitmap-fonts bittorrent bjam bl blas blender-game bonobo boost branding bzip2 c++ cairo calendar cap caps catalogs cblas ccache cdda cddb cdf cdinstall cdparanoia cdr cdrom cgi checkpath chm chroot cli colordiff config_wizard contrib corba cppunit cracklib crosscompile crypt cscope css ctype cups curl curlwrappers cvs cvsgraph cxx d daap dbm dbus dbx dell deprecated device-mapper dga dhcp dio directfb discard-path discouraged disk-partition divx djvu dmi dnd dnotify dri dts dv dvd dvdr dvdread dvi dynagraph ecc editor effects emboss emerald emf emoticon emovix enca encode enscript epson erandom esd evo examples excel exif expat extrafilters extraicons extramodules f90 fam fame fastbuild fastcgi fat fax fbcon fbdev fbsplash festival ffmpeg fftw filter finger firefox fits flac flash flatfile fltk fmod font-server fontconfig foomaticdb force-cgi-redirect fortran fortran95 fpx freetts ftp fuse gb gcc-libffi gcj gd gdal gdbm geoip geos ggi gif gimp gimpprint ginac gkrellm glade glep glgd glib glibc-omitfp glitz glut gmail gmath gmedia gml gmp gmtfull gmthigh gmtsuppl gmttria gnome gnome-print gnomedb gnuplot gnutls gocr gpg2-experimental gpgme gphoto2 gpm gps grammar graphviz gs gsl gssapi gstreamer gtk gtk2 gtkhtml guile gzip hal haskell hddtemp hdf hdf5 hfs high-ints hlapi hou hpn html httpd i8x0 ical iconv icq icu id3 ide idea idn image imagemagick imap imlib inifile inkjar insecure-drivers insecure-savers isdnlog itcl jack jai java javacomm javascript jbig jce jikes jimi jit john jpeg jpeg2k junit jython kcal kde kdecards kdeenablefinal kdehiddenvisibility kdepim kdexdeltas kqemu lame lapack largefile largeterminal lash latex lcms ldap libcaca libclamav libdsk libg++ libgda libnotify libsamplerate live lm_sensors logitech-mouse logrotate logwatch lzo lzw mad mail maildir mailwrapper maps math matroska mbrola mcal md5sum mhash midi mikmod mime ming minuit mixer mjpeg mmap mmx mmxext mng mod mod_python modplug module mono mopac7 motif mozbranding mozcalendar mozdevelop mozdom moznocompose moznoirc moznomail mozsha1 mozsvg mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mpm-prefork mpqc mtp multiprocess musepack music musicbrainz mysql na_dd na_icons nas ncurses net netcdf nethack netmeeting network network-cron new-clx new-login newspr nfs nls nntp no-old-linux no-seamonkey nocd nodoc nodrm nosource nosrc nowin nptl nptlonly nsplugin ntfs ntlm ntp numarray numeric oav objc objc++ ocaml ocr ocrad octave odk ofa offensive ofx ogdi ogg on-the-fly-crypt openal openbabel openexr opengl openssl opensslcrypt openstreetmap osc oss pager pam pam_chroot pam_console pam_timestamp pango paranoidmsg parport parse-clocks pascal patch patented pbs pch pcntl pcre pdf perl pertty php physfs pic player plib plotutils plugin pmount png pnm pop portaudio posix postfix povray ppds pppd print proj ps pyste python qhull qt3 qt3support qt4 quicktime quotas quotes radio rar rc5 rdesktop readline real realmedia reflection remix rle rogue rpc rrdtool rtc rtsp ruby samba sasl scanner screen script scripting sdk sdl sdl-image sdl-sound search sender serial session sftp sftplogging shared sharedext sharedmem shorten shout skins slp smime smp smtp sndfile soap sockets socks5 sou sound sounds sox spamassassin speech speedo speex spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification stl stlport stream subject-rewrite subtitles subversion suid svg svga svgz svn-mirror swat symlink sysfs syslog sysvipc szip t1lib tagwriting tcl tcltk tcpd tesseract test tetex text texteffect textures tga themes theora thesaurus threads tidy tiff timidity tk tntc tokenizer tomsfastmath toolbar tools transcode transparency truetype truetype-fonts type1 type1-fonts ucs2 ucs4 unicode unzip upnp urandom usb userlocales utempter uudeview v4l v4l2 vcd vdr videos vidix vim vim-pager vim-with-x virus-scan visualization vlm vnc vncviewer voice vorbis vorbis-psy wavpack webdav win32codecs wma wmf wmp wordperfect wxwindows x264 x86 xanim xcomposite xerces-c xface xforms xft xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xscreensaver xsl xslt xtended xterm xv xvid xvmc xvnc yaepg yv12 zip zlib zoran zvbi" ALSA_CARDS="intel8x0 intel8x0m pxa2xx-ac97 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="all" ELIBC="glibc" INPUT_DEVICES="keyboard mouse jamstudio" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="i810 i830"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-02 23:06:09 UTC
care to write a patch for it? :) Or is there already some in the wild wide web?
Comment 3 Erik Zeek 2007-05-02 23:14:09 UTC
(In reply to comment #2)
> care to write a patch for it? :) Or is there already some in the wild wide web?
> 

I don't have time at the moment to write a patch, but I did find:
http://sourceforge.net/tracker/index.php?func=detail&aid=1686700&group_id=94447&atid=607962

I haven't tried it yet.  I may have time this weekend.
Comment 4 Erik Zeek 2007-05-02 23:15:31 UTC
> I don't have time at the moment to write a patch, but I did find:
> http://sourceforge.net/tracker/index.php?func=detail&aid=1686700&group_id=94447&atid=607962

Ignore that.  There's no patch attached to the report.
Comment 5 Wulf Krueger (RETIRED) gentoo-dev 2007-05-07 18:26:46 UTC
net-print/kink is as dead as it gets - no changes in its CVS for more than 3 
years. I suggest performing the last rites.
Comment 6 Wulf Krueger (RETIRED) gentoo-dev 2007-06-16 23:35:08 UTC
Last call for users of net-print/kink: I'm going to p.mask and last rite this on June, 21st which means that it will be gone for good 30 days later.
Comment 7 Wulf Krueger (RETIRED) gentoo-dev 2007-06-21 18:41:55 UTC
package.mask'ed & last rites sent.
Comment 8 Joerg Plate 2007-06-22 00:02:00 UTC
Created attachment 122761 [details]
New ebuild for kink with libinkevel 0.7.1
Comment 9 Joerg Plate 2007-06-22 00:03:08 UTC
Created attachment 122762 [details, diff]
Patch for kink.cpp to use the new API

I chose "" as the argument is only used for a CUSTOM_USB port. kink doesn't use it.
Comment 10 Joerg Plate 2007-06-22 00:03:52 UTC
It compiles for me with the patch/ebuild, but I cannot test it for lack of a printer.
Comment 11 Heiko Baums 2007-06-22 00:30:59 UTC
For me it compiles, too. But it doesn't detect my printer (HP DeskJet 960C) if the printer's switched on. If it's switched off kink detects the printer but doesn't detect the ink level and put's out ink levels of 0%. After switching the printer on and clicking on the button "Update" it shows the correct ink levels. But I can't remember kink's previous behaviour.
Comment 12 Wulf Krueger (RETIRED) gentoo-dev 2007-06-22 06:08:29 UTC
Thanks for the patch, Joerg! As I can't test it (apart from compiling) either, I've checked it in (no bump) for testing.

Please test this and let us know if it's usable in its current state. I've unmasked kink again and withdrawn the last rites.