View previous topic :: View next topic |
Author |
Message |
r4ph431 n00b
Joined: 20 Nov 2007 Posts: 5
|
Posted: Fri Mar 18, 2011 7:12 pm Post subject: |
|
|
Note that according this Gutenprint mailing-list thread,
the 5.2.7 release isn't that far and contains a lot of new Canon drivers.
Below is a patch to make a Gentoo ebuild for the impatient people.
(my MP550 works well with it)
Code: | --- gutenprint-5.2.6.ebuild 2010-11-25 14:22:35.000000000 +0100
+++ gutenprint-5.2.7.ebuild 2011-03-18 20:06:22.000000000 +0100
@@ -11,8 +11,9 @@
DESCRIPTION="Ghostscript and cups printer drivers"
HOMEPAGE="http://gutenprint.sourceforge.net"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-SRC_URI="mirror://sourceforge/gimp-print/${P}.tar.bz2"
+SRC_URI="mirror://sourceforge/gimp-print/gutenprint20110308.tar.bz2"
RESTRICT="test"
+S="${WORKDIR}/gutenprint20110308"
RDEPEND="cups? ( >=net-print/cups-1.1.14 )
app-text/ghostscript-gpl |
|
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Fri Mar 18, 2011 8:06 pm Post subject: |
|
|
Thanks r4ph431.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2038 Location: United Kingdom
|
Posted: Sat Mar 19, 2011 7:52 pm Post subject: What to do if CUPS does not recognise MP560 as a printer |
|
|
I installed the printer driver cnijfilter-3.20-r3 for the MP560 on one machine running ~x86 arch, but CUPS did not recognise a Canon MP560 connected via USB cable.
dmesg showed the following:
Code: | [ 4409.989087] usb 1-6: new high speed USB device using ehci_hcd and address 8
[ 4410.109737] scsi13 : usb-storage 1-6:1.2
[ 4411.113810] scsi 13:0:0:0: Direct-Access Canon MP560 series 0104 PQ: 0 ANSI: 2
[ 4411.116803] sd 13:0:0:0: Attached scsi generic sg4 type 0
[ 4411.122393] sd 13:0:0:0: [sdd] Attached SCSI removable disk |
lsusb showed the following:
Code: | Bus 001 Device 008: ID 04a9:173e Canon, Inc.
Bus 001 Device 006: ID 0bc2:3300 Seagate RSS LLC
Bus 001 Device 005: ID 0bc2:3300 Seagate RSS LLC
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0603:00f2 Novatek Microelectronics Corp.
Bus 002 Device 002: ID 045e:00d1 Microsoft Corp. Optical Mouse with Tilt Wheel
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub |
tail -f /var/log/messages showed the following when I plugged in the USB cable:
Code: | Mar 19 19:08:47 asrockion330ht kernel: [ 6155.789088] usb 1-4: new high speed USB device using ehci_hcd and address 10
Mar 19 19:08:47 asrockion330ht kernel: [ 6155.909407] scsi15 : usb-storage 1-4:1.2
Mar 19 19:08:47 asrockion330ht udev-configure-printer: add /devices/pci0000:00/0000:00:04.1/usb1/1-4/1-4:1.1
Mar 19 19:08:47 asrockion330ht udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:04.1/usb1/1-4
Mar 19 19:08:47 asrockion330ht udev-configure-printer: Device vendor/product is 04A9:173E
Mar 19 19:08:47 asrockion330ht udev-configure-printer: MFG:Canon MDL:MP560 series SERN:- serial:1653C4
Mar 19 19:08:48 asrockion330ht kernel: [ 6156.912113] scsi 15:0:0:0: Direct-Access Canon MP560 series 0104 PQ: 0 ANSI: 2
Mar 19 19:08:48 asrockion330ht kernel: [ 6156.914440] sd 15:0:0:0: Attached scsi generic sg4 type 0
Mar 19 19:08:48 asrockion330ht kernel: [ 6156.921613] sd 15:0:0:0: [sdd] Attached SCSI removable disk
Mar 19 19:08:48 asrockion330ht udev-configure-printer: no corresponding CUPS device found |
The contents of /etc/udev/rules.d/ was:
Code: | # ls
41-libsane.rules 66-kpartx.rules 70-xorg-vboxmouse.rules 77-mm-platform-serial-whitelist.rules 77-mm-zte-port-types.rules 90-hal.rules lirc.rules~
52-usx2yaudio.rules 70-infrared.rules 77-mm-ericsson-mbm.rules 77-mm-simtech-port-types.rules 77-nm-olpc-mesh.rules 99-fuse.rules
65-mtp.rules 70-persistent-cd.rules 77-mm-longcheer-port-types.rules 77-mm-usb-device-blacklist.rules 80-libnjb.rules 99-ntfs3g.rules
65-multipath.rules 70-persistent-net.rules 77-mm-pcmcia-device-blacklist.rules 77-mm-x22x-port-types.rules 80-mm-candidate.rules lirc.rules |
From the output of lsusb I could see what the USB bus and device were (001 and 010, respectively), so I checked the device:
Code: | # ls -la /dev/bus/usb/001/010
crw-rw-r-- 1 root scanner 189, 9 Mar 19 19:08 /dev/bus/usb/001/010 |
So the MFP was being seen as only a scanner.
Therefore I created a new rule for udev, using the Vendor ID (04a9) and Product ID (173e) displayed by lsusb:
Code: | # nano /etc/udev/rules.d/10-usbprinter.rules
# cat /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="04a9", ATTR{idProduct}=="173e", MODE:="0660", GROUP:="lp"
# |
Then I rebooted, launched the CUPS browser manager http://localhost:631/ and my printer was detected. From there I could go ahead and install it using Add Printer as usual. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
dashko n00b
Joined: 13 Jul 2010 Posts: 22 Location: Slovakia
|
Posted: Thu Mar 31, 2011 10:13 am Post subject: Little problem |
|
|
I tried to install from zugaina net-print/cnijfilter-3.00.2 a got following error:
>>> Unpacking source...
>>> 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.2': No such file or directory
* ERROR: net-print/cnijfilter-3.00.2 failed (unpack phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 56: Called src_unpack
* environment, line 2728: Called die
* The specific snippet of code:
* mv "${PN}-common-${PV}" "${P}" || die
Just do following:
vim /var/lib/layman/zugaina/net-print/cnijfilter/cnijfilter-3.00.2.ebuild
and replace line
mv "${PN}-common-${PV}" "${P}" || die # Correcting directory-structure
with line
mv "${PN}-common-3.00" "${P}" || die
than subscribe
ebuild cnijfilter-3.00.2.ebuild digest
and emerge. Works now. |
|
Back to top |
|
|
JohnBlbec Guru
Joined: 08 Feb 2003 Posts: 306
|
Posted: Thu Mar 31, 2011 1:50 pm Post subject: canon pixma mg5250 |
|
|
hi everybody,
i have bought canon pixma mg5250 and because i did not find an appropriate package in the portage out i have written following ebuilds to work (print and scan) correctly in gentoo over wifi. ebuilds use original canon's drivers.
i am sorry i tested neither other canon printers nor usb connection but i hope they should work ok - in the other words it is tested to use my printer on gentoo amd64 profile. that is all.
(just note: i do not plan to be a maintainer of these two ebuilds...)
Supported would be: mp250, mp280, mp495, mg5100, ip4800, mg5200, mg6100 and mg8100.
--JB
cnijfilter-3.40.ebuild
Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Changelog since last bugzilla upload
#
# initial version
# updated to use cnijfilter-common-2.80 2008-01-12 by Victor Mataré
#
# 2010-03-19 GuS Version 3.20-r1
# Replaced dependency of non-existing dev-libs/libxml with
# dependency of >=dev-libs/libxml2-2.7.3-r2.
#
# 2010-03-20 GuS Version 3.20-r2
# Replaced dependency of non-existing virtual/ghostscript with
# dependency of app-text/ghostscript-gpl.
inherit eutils flag-o-matic multilib
DESCRIPTION="Canon InkJet Printer Driver for Linux (Pixus/Pixma-Series)."
HOMEPAGE="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
RESTRICT="nomirror confcache"
SRC_URI="http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-3.40-1.tar.gz"
LICENSE="UNKNOWN" # GPL-2 source and proprietary binaries
SLOT="2"
KEYWORDS="~x86 ~amd64"
IUSE="amd64
servicetools
nocupsdetection
mp250
mp280
mp495
mg5100
ip4800
mg5200
mg6100
mg8100"
DEPEND=">=app-text/ghostscript-gpl-8.71-r6
>=net-print/cups-1.3.11-r3
!amd64? ( sys-libs/glibc
>=dev-libs/popt-1.6
>=media-libs/tiff-3.9.4
>=media-libs/libpng-1.4.3 )
servicetools? ( !amd64? ( >=gnome-base/libglade-2.6.4
>=dev-libs/libxml2-2.7.7
>=x11-libs/gtk+-2.20.1-r1 ) )"
# Arrays of supported Printers, there IDs and compatible models
_pruse=("mp250" "mp280" "mp495" "mg5100" "ip4800" "mg5200" "mg6100" "mg8100")
_prname=(${_pruse[@]})
_prid=("356" "370" "369" "373" "375" "374" "376" "377")
_prcomp=("mp250series" "mp280series" "mp495series" "mg5100series" "ip4800series" "mg5200series" "mg6100series" "mg8100series")
_max=$((${#_pruse[@]}-1)) # used for iterating through these arrays
###
# Standard Ebuild-functions
###
pkg_setup() {
if [ -z "$LINGUAS" ]; then # -z tests to see if the argument is empty
ewarn "You didn't specify 'LINGUAS' in your make.conf. Assuming"
ewarn "English localisation, i.e. 'LINGUAS=\"en\"'."
LINGUAS="en"
fi
_prefix="/usr/local"
_bindir="${_prefix}/bin"
_libdir="/usr/$(get_libdir)" # either lib or lib32
_cupsdir1="/usr/lib/cups"
_cupsdir2="/usr/libexec/cups"
_ppddir="/usr/share/cups/model"
einfo ""
einfo " USE-flags\t(description / probably compatible printers)"
einfo ""
einfo " amd64\t(basic support for this architecture)"
einfo " servicetools\t(additional monitoring and maintenance software)"
einfo " nocupsdetection\t(this is only useful to create binary packages)"
_autochoose="true"
for i in $(seq 0 ${_max}); do
einfo " ${_pruse[$i]}\t${_prcomp[$i]}"
if (use ${_pruse[$i]}); then
_autochoose="false"
fi
done
einfo ""
if (${_autochoose}); then
ewarn "You didn't specify any driver model (set it's USE-flag)."
einfo ""
einfo "As example:\tbasic MP140 support without maintenance tools"
einfo "\t\t -> USE=\"mp140\""
einfo ""
einfo "Press Ctrl+C to abort"
echo
ebeep
n=15
while [[ $n -gt 0 ]]; do
echo -en " Waiting $n seconds...\r"
sleep 1
(( n-- ))
done
fi
}
src_unpack() {
unpack ${A}
mv ${PN}-source-${PV}-1 ${P} || die # Correcting directory-structure
cd "${S}"
epatch "${FILESDIR}"/cnijfilter-3.40-bjcupsmon_ui.c.patch
}
src_compile() {
cd libs || die
./autogen.sh --prefix=${_prefix} || die "Error: libs/autoconf.sh failed"
make || die "Couldn't make libs"
cd ../backend || die
./autogen.sh --prefix=/usr || die "Error: backend/autoconf.sh failed"
make || die "Couldn't make backend"
cd ../backendnet || die
if use x86; then
./autogen.sh --prefix=${_prefix} --enable-progpath=${_bindir} LDFLAGS="-L../../com/libs_bin32" || die "Error: backendnet/autoconf.sh failed"
else # amd64
./autogen.sh --prefix=${_prefix} --enable-progpath=${_bindir} LDFLAGS="-L../../com/libs_bin64" || die "Error: backendnet/autoconf.sh failed"
fi
make || die "Couldn't make backendnet"
cd ../pstocanonij || die
./autogen.sh --prefix=/usr --enable-progpath=${_bindir} || die "Error: pstocanonij/autoconf.sh failed"
make || die "Couldn't make pstocanonij"
if use servicetools; then
cd ../cngpij || die
./autogen.sh --prefix=${_prefix} --enable-progpath=${_bindir} || die "Error: cngpij/autoconf.sh failed"
make || die "Couldn't make cngpij"
fi
cd ..
for i in $(seq 0 ${_max}); do
if use ${_pruse[$i]} || ${_autochoose}; then
_pr=${_prname[$i]} _prid=${_prid[$i]}
src_compile_pr;
fi
done
}
src_install() {
mkdir -p ${D}${_bindir} || die
mkdir -p ${D}${_libdir}/cups/filter || die
mkdir -p ${D}${_ppddir} || die
mkdir -p ${D}${_libdir}/bjlib || die
cd libs || die
make DESTDIR=${D} install || die "Couldn't make install libs"
cd ../backend || die
make DESTDIR=${D} install || die "Couldn't make install backend"
cd ../backendnet || die
make DESTDIR=${D} install || die "Couldn't make install backendnet"
cd ../pstocanonij || die
make DESTDIR=${D} install || die "Couldn't make install pstocanoncnij"
if use servicetools; then
cd ../cngpij || die
make DESTDIR=${D} install || die "Couldn't make install cngpij"
fi
cd ..
for i in $(seq 0 ${_max}); do
if use ${_pruse[$i]} || ${_autochoose}; then
_pr=${_prname[$i]} _prid=${_prid[$i]}
src_install_pr;
fi
done
# fix directory structure
if use nocupsdetection; then
mkdir -p ${D}${_cupsdir2}/filter || die
dosym ${_cupsdir1}/filter/pstocanonij ${_cupsdir2}/filter/pstocanonij
elif has_version ">=net-print/cups-1.2.0"; then
mkdir -p ${D}${_cupsdir2} || die
mv ${D}${_cupsdir1}/* ${D}${_cupsdir2} || die
fi
}
pkg_postinst() {
einfo ""
einfo "For installing a printer:"
einfo " * Restart CUPS: /etc/init.d/cupsd restart"
einfo " * Go to http://127.0.0.1:631/"
einfo " -> Printers -> Add Printer"
einfo ""
einfo "If you experience any problems, please visit:"
einfo " http://forums.gentoo.org/viewtopic-p-3217721.html"
einfo ""
}
###
# Custom Helper Functions
###
src_compile_pr()
{
mkdir ${_pr}
cp -a ${_prid} ${_pr} || die
cp -a cnijfilter ${_pr} || die
cp -a printui ${_pr} || die
cp -a lgmon ${_pr} || die
cp -a cngpijmon ${_pr} || die
sleep 10
cd ${_pr}/cnijfilter || die
./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-libpath=${_libdir}/bjlib --enable-binpath=${_bindir} || die
make || die "Couldn't make ${_pr}/cnijfilter"
if use servicetools; then
cd ../printui || die
./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --datadir=${_prefix}/share --enable-libpath=${_libdir}/bjlib || die
make || die "Couldn't make ${_pr}/printui"
cd ../lgmon || die
./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-progpath=${_bindir} || die
make || die "Couldn't make ${_pr}/lgmon"
cd ../cngpijmon || die
./autogen.sh --prefix=${_prefix} --program-suffix=${_pr} --enable-progpath=${_bindir} --datadir=${_prefix}/share || die "Error: cngpijmon/autoconf.sh failed"
make || die "Couldn't make ${_pr}/cngpijmon"
cd cnijnpr || die
./autogen.sh --prefix=${_prefix} || die "Error: i${_pr}/cngpijmon/cnijnpr failed"
make || die "Couldn't make ${_pr}/cngpijmon/cnijnpr"
cd ..
fi
cd ../..
}
src_install_pr()
{
cd ${_pr}/cnijfilter || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/cnijfilter"
if use servicetools; then
cd ../printui || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/printui"
cd ../lgmon || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/lgmon"
cd ../cngpijmon || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/cngpijmon"
cd cnijnpr || die
make DESTDIR=${D} install || die "Couldn't make install ${_pr}/cngpijmon/cnijnpr"
cd ..
fi
cd ../..
if use x86; then
cp -a ${_prid}/libs_bin32/* ${D}${_libdir} || die
cp -a com/libs_bin32/* ${D}${_libdir} || die
else # amd54
cp -a ${_prid}/libs_bin64/* ${D}${_libdir} || die
cp -a com/libs_bin64/* ${D}${_libdir} || die
fi
cp -a ${_prid}/database/* ${D}${_libdir}/bjlib || die
cp -a ppd/canon${_pr}.ppd ${D}${_ppddir} || die
cp com/ini/cnnet.ini ${D}${_libdir}/bjlib || die
chown lp:lp ${D}${_libdir}/bjlib/cnnet.ini || die
chmod 644 ${D}${_libdir}/bjlib/* || die
}
|
scangearmp-1.60.ebuild
Code: |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Changelog since last bugzilla upload
#
# initial version
# updated to use cnijfilter-common-2.80 2008-01-12 by Victor Mataré
#
# 2010-03-19 GuS Version 3.20-r1
# Replaced dependency of non-existing dev-libs/libxml with
# dependency of >=dev-libs/libxml2-2.7.3-r2.
#
# 2010-03-20 GuS Version 3.20-r2
# Replaced dependency of non-existing virtual/ghostscript with
# dependency of app-text/ghostscript-gpl.
inherit eutils flag-o-matic multilib
DESCRIPTION="Canon InkJet Scanner Driver and ScanGear MP for Linux (Pixus/Pixma-Series)."
HOMEPAGE="http://support-au.canon.com.au/contents/AU/EN/0100303302.html"
RESTRICT="nomirror confcache"
SRC_URI="http://gdlp01.c-wss.com/gds/3/0100003033/01/scangearmp-source-1.60-1.tar.gz"
LICENSE="UNKNOWN" # GPL-2 source and proprietary binaries
SLOT="2"
KEYWORDS="~x86 ~amd64"
IUSE="amd64
usb
mp250
mp280
mp495
mg5100
mg5200
mg6100
mg8100"
DEPEND=">=dev-libs/libusb-0.1.12-r5
>=media-libs/libpng-1.2.44
>=media-gfx/gimp-2.6.8
>=x11-libs/gtk+-2.20.1-r1
>=media-gfx/sane-backends-1.0.19-r2"
# Arrays of supported Printers, there IDs and compatible models
_pruse=("mp250" "mp280" "mp495" "mg5100" "mg5200" "mg6100" "mg8100")
_prname=(${_pruse[@]})
_prid=("356" "370" "369" "373" "374" "376" "377")
_prcomp=("mp250series" "mp280series" "mp495series" "mg5100series" "mg5200series" "mg6100series" "mg8100series")
_max=$((${#_pruse[@]}-1)) # used for iterating through these arrays
###
# Standard Ebuild-functions
###
pkg_setup() {
if [ -z "$LINGUAS" ]; then # -z tests to see if the argument is empty
ewarn "You didn't specify 'LINGUAS' in your make.conf. Assuming"
ewarn "English localisation, i.e. 'LINGUAS=\"en\"'."
LINGUAS="en"
fi
_prefix="/usr/local"
_bindir="${_prefix}/bin"
_libdir="/usr/$(get_libdir)" # either lib or lib32
_gimpdir="${_libdir}/gimp/2.0/plug-ins"
_udevdir="/etc/udev/rules.d"
einfo ""
einfo " USE-flags\t(description / probably compatible printers)"
einfo ""
einfo " amd64\t(basic support for this architecture)"
einfo " usb\t(connected using usb)"
_autochoose="true"
for i in `seq 0 ${_max}`; do
einfo " ${_pruse[$i]}\t${_prcomp[$i]}"
if (use ${_pruse[$i]}); then
_autochoose="false"
fi
done
einfo ""
if (${_autochoose}); then
ewarn "You didn't specify any driver model (set it's USE-flag)."
einfo ""
einfo "As example:\tbasic MP140 support without maintenance tools"
einfo "\t\t -> USE=\"mp140\""
einfo ""
einfo "Press Ctrl+C to abort"
echo
ebeep
n=15
while [[ $n -gt 0 ]]; do
echo -en " Waiting $n seconds...\r"
sleep 1
(( n-- ))
done
fi
# TODO fix libtool :-(
export echo=echo
}
src_unpack() {
unpack ${A}
mv ${PN}-source-${PV}-1 ${P} || die # Correcting directory-structure
}
src_compile() {
cd scangearmp || die
if use x86; then
./autogen.sh --prefix=${_prefix} --enable-libpath=${_libdir} LDFLAGS="-L$(pwd)/../com/libs_bin32" || die "Error: scangearmp/autoconf.sh failed"
else #amd64
./autogen.sh --prefix=${_prefix} --enable-libpath=${_libdir} LDFLAGS="-L$(pwd)/../com/libs_bin64" || die "Error: scangearmp/autoconf.sh failed"
fi
make || die "Couldn't make scangearmp"
cd ..
}
src_install() {
mkdir -p ${D}${_bindir} || die
mkdir -p ${D}${_libdir}/bjlib || die
if use usb; then
mkdir -p ${D}${_udevdir} || die
fi
cd scangearmp || die
make DESTDIR=${D} install || die "Couldn't make install scangearmp"
cd ..
for i in $(seq 0 ${_max}); do
if use ${_pruse[$i]} || ${_autochoose}; then
_pr=${_prname[$i]} _prid=${_prid[$i]}
fi
done
# rm .1a and .a
rm -f {$D}${_libdir}/*.1a {$D}${_libdir}/*.a || die
# make symbolic link for gimp-plug-in
if [ -d "${_gimpdir}" ]; then
mkdir -p ${D}${_gimpdir} || die
dosym ${_bindir}/scangearmp ${_gimpdir}/scangearmp || die
fi
if use x86; then
cp -a ${_prid}/libs_bin32/* ${D}${_libdir} || die
cp -a com/libs_bin32/* ${D}${_libdir} || die
else # amd54
cp -a ${_prid}/libs_bin64/* ${D}${_libdir} || die
cp -a com/libs_bin64/* ${D}${_libdir} || die
fi
cp -a ${_prid}/*.DAT ${D}${_libdir}/bjlib || die
cp -a ${_prid}/*.tbl ${D}${_libdir}/bjlib || die
cp com/ini/canon_mfp_net.ini ${D}${_libdir}/bjlib || die
chmod 644 ${D}${_libdir}/bjlib/* || die
chmod 666 ${D}${_libdir}/bjlib/canon_mfp_net.ini || die
# usb
if use usb; then
cp -a scangearmp/etc/80-canon_mfp.rules ${D}${_udevdir} || die
chmod 644 ${D}${_udevdir}/80-canon_mfp.rules || die
fi
}
pkg_postinst() {
if use usb; then
if [ -x /sbin/udevadm ]; then
einfo ""
einfo "Reloading usb rules..."
/sbin/udevadm control --reload-rules 2> /dev/null
/sbin/udevadm trigger --action=add --subsystem-match=usb 2>/dev/null
else
einfo ""
einfo "Please, reload usb rules manually."
fi
fi
einfo ""
einfo "If you experience any problems, please visit:"
einfo " http://forums.gentoo.org/viewtopic-p-3217721.html"
einfo ""
}
|
|
|
Back to top |
|
|
nomis05 n00b
Joined: 10 Oct 2010 Posts: 5
|
Posted: Sun May 08, 2011 8:42 pm Post subject: |
|
|
Hi,
i have a pixma ip 3600 which used to work fine with cnijfilter-3.00.
After a system upgrade (where i also upgraded to python2.7 too, therefore i had to run python-updater and revdep-rebuild) it stopped working.
When printing the testpage in cups e.g. it added the job but was disappeared very quick and the cups log said job successful done.
So i tried re-emerging cups and cnijfilter but it failed at cnijfilter and i'm not sure why. Here's the build log:
I hope somebody can see why its not compiling.
Thanks!
Code: | [32;01m * [39;49;00mPackage: net-print/cnijfilter-3.00
[32;01m * [39;49;00mRepository: calculate
[32;01m * [39;49;00mUSE: amd64 elibc_glibc ip3600 kernel_linux multilib userland_GNU
[32;01m * [39;49;00mFEATURES: sandbox
[32;01m*[0m
[32;01m*[0m USE-FLag cnijtools contains the following (useful!) programs:
[32;01m*[0m
[32;01m*[0m * 'cngpij' is the CUPS front-end GUI program
[32;01m*[0m * 'cngpijmon' is the status monitoring program
[32;01m*[0m * 'lgmon' is a Language monitoring program
[32;01m*[0m * 'printui' is a GUI program for an easily selecting of several parameters for printing
[32;01m*[0m
>>> Unpacking source...
>>> Unpacking cnijfilter-common-3.00-1.tar.gz to /var/tmp/portage/net-print/cnijfilter-3.00/work
>>> Source unpacked in /var/tmp/portage/net-print/cnijfilter-3.00/work
>>> Compiling source in /var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00 ...
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.
processing .
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal ...
Running autoheader...
Running automake --gnu ...
configure.in:11: installing `./config.guess'
configure.in:11: installing `./config.sub'
configure.in:2: installing `./install-sh'
configure.in:2: installing `./missing'
buftool/Makefile.am: installing `./depcomp'
Makefile.am: installing `./COPYING' using GNU General Public License v3 file
Makefile.am: Consider adding the COPYING file to the version control system
Makefile.am: for your code, to avoid questions about which license your project uses.
Running autoconf ...
Running ./configure ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for dup2... yes
checking for memset... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating buftool/Makefile
config.status: creating paramlist/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Now type `make' to compile buftool
make all-recursive
make[1]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs'
Making all in paramlist
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs/paramlist'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -O2 -MT paramlist.lo -MD -MP -MF .deps/paramlist.Tpo -c -o paramlist.lo paramlist.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -O2 -MT paramlist.lo -MD -MP -MF .deps/paramlist.Tpo -c paramlist.c -fPIC -DPIC -o .libs/paramlist.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -O2 -MT paramlist.lo -MD -MP -MF .deps/paramlist.Tpo -c paramlist.c -o paramlist.o >/dev/null 2>&1
mv -f .deps/paramlist.Tpo .deps/paramlist.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -O2 -Wl,-O1 -Wl,--as-needed -o libparamlist.la paramlist.lo
libtool: link: ar cru .libs/libparamlist.a .libs/paramlist.o
libtool: link: ranlib .libs/libparamlist.a
libtool: link: ( cd ".libs" && rm -f "libparamlist.la" && ln -s "../libparamlist.la" "libparamlist.la" )
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs/paramlist'
Making all in buftool
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs/buftool'
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -MT buftool.o -MD -MP -MF .deps/buftool.Tpo -c -o buftool.o buftool.c
mv -f .deps/buftool.Tpo .deps/buftool.Po
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -MT buflist.o -MD -MP -MF .deps/buflist.Tpo -c -o buflist.o buflist.c
mv -f .deps/buflist.Tpo .deps/buflist.Po
rm -f libbuftool.a
ar cru libbuftool.a buftool.o buflist.o
ranlib libbuftool.a
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs/buftool'
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs'
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs'
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs'
processing .
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal ...
Running autoheader...
autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.65: WARNING: is deprecated and discouraged.
autoheader-2.65:
autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.65: WARNING: `acconfig.h':
autoheader-2.65:
autoheader-2.65: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.65: [Define if a function `main' is needed.])
autoheader-2.65:
autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.65: WARNING: documentation.
Running automake --gnu ...
configure.in:19: installing `./config.guess'
configure.in:19: installing `./config.sub'
configure.in:2: installing `./install-sh'
configure.in:2: installing `./missing'
src/Makefile.am: installing `./depcomp'
src/Makefile.am:10: `CFLAGS' is a user variable, you should not override it;
src/Makefile.am:10: use `AM_CFLAGS' instead.
Running autoconf ...
Running ./configure --prefix=/usr --enable-progpath=/usr/local/bin ...
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for main in -lcups... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for socket... yes
checking for strdup... yes
checking for strrchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
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/work/cnijfilter-3.00/backend'
Making all in src
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend/src'
gcc -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 Funktion »check_options«:
cnij_backend_common.c:435: Warnung: Der Rückgabewert von »fwrite«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
mv -f .deps/cnij_backend_common.Tpo .deps/cnij_backend_common.Po
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -MT cnij_usb.o -MD -MP -MF .deps/cnij_usb.Tpo -c -o cnij_usb.o cnij_usb.c
cnij_usb.c: In Funktion »main«:
cnij_usb.c:97: Warnung: Variable »port« wird nicht verwendet
cnij_usb.c:94: Warnung: Variable »username« wird nicht verwendet
cnij_usb.c:93: Warnung: Variable »hostname« wird nicht verwendet
cnij_usb.c:92: Warnung: Variable »method« wird nicht verwendet
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
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend/src'
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend'
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend'
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/backend'
processing .
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
Running aclocal ...
Running autoheader...
autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.65: WARNING: is deprecated and discouraged.
autoheader-2.65:
autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.65: WARNING: `acconfig.h':
autoheader-2.65:
autoheader-2.65: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.65: [Define if a function `main' is needed.])
autoheader-2.65:
autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.65: WARNING: documentation.
Running automake --gnu ...
configure.in:22: installing `./config.guess'
configure.in:22: installing `./config.sub'
configure.in:2: installing `./install-sh'
configure.in:2: installing `./missing'
filter/Makefile.am: installing `./depcomp'
Running autoconf ...
Running ./configure --prefix=/usr --enable-progpath=/usr/local/bin ...
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_i386) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for main in -lcups... yes
checking for main in -lparamlist... no
checking for main in -lpopt... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for dup2... yes
checking for memset... yes
checking for socket... yes
checking for strdup... yes
checking for strrchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating filter/Makefile
config.status: creating config.h
config.status: executing depfiles commands
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/work/cnijfilter-3.00/pstocanonij'
Making all in filter
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/pstocanonij/filter'
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -I../../libs/buftool -O2 -MT pstocanonij.o -MD -MP -MF .deps/pstocanonij.Tpo -c -o pstocanonij.o pstocanonij.c
pstocanonij.c: In Funktion »get_ps_params«:
pstocanonij.c:249: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »buflist_new« unterscheiden sich im Vorzeichenbesitz
../../libs/buftool/buflist.h:38: Anmerkung: expected »unsigned char *« but argument is of type »char *«
pstocanonij.c:299: Warnung: berechneter Wert ist unbenutzt
pstocanonij.c:385: Warnung: Zeigerziele bei Übergabe des Arguments 1 von »buflist_new« unterscheiden sich im Vorzeichenbesitz
../../libs/buftool/buflist.h:38: Anmerkung: expected »unsigned char *« but argument is of type »char *«
pstocanonij.c: In Funktion »make_cmd_param«:
pstocanonij.c:905: Warnung: format »%2s« erwartet Typ »char *«, aber Argument 4 hat Typ »char (*)[256]«
pstocanonij.c:906: Warnung: format »%2s« erwartet Typ »char *«, aber Argument 4 hat Typ »char (*)[256]«
pstocanonij.c:935: Warnung: format »%3s« erwartet Typ »char *«, aber Argument 4 hat Typ »char (*)[256]«
pstocanonij.c:936: Warnung: format »%3s« erwartet Typ »char *«, aber Argument 4 hat Typ »char (*)[256]«
mv -f .deps/pstocanonij.Tpo .deps/pstocanonij.Po
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -I../../libs/buftool -O2 -MT canonopt.o -MD -MP -MF .deps/canonopt.Tpo -c -o canonopt.o canonopt.c
mv -f .deps/canonopt.Tpo .deps/canonopt.Po
gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -I../../libs/buftool -O2 -MT paramlist.o -MD -MP -MF .deps/paramlist.Tpo -c -o paramlist.o paramlist.c
mv -f .deps/paramlist.Tpo .deps/paramlist.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -Wall -I../../libs/buftool -O2 -L../../libs/buftool -Wl,-O1 -Wl,--as-needed -o pstocanonij pstocanonij.o canonopt.o paramlist.o -lcups ../../libs/buftool/libbuftool.a -lpopt -lcups
libtool: link: gcc -O2 -Wall -I../../libs/buftool -O2 -Wl,-O1 -Wl,--as-needed -o pstocanonij pstocanonij.o canonopt.o paramlist.o -L/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/libs/buftool ../../libs/buftool/libbuftool.a /usr/lib32/libpopt.so -lcups
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/pstocanonij/filter'
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/pstocanonij'
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/pstocanonij'
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/pstocanonij'
processing .
Running aclocal ...
Running autoheader...
autoheader-2.65: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.65: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.65: WARNING: is deprecated and discouraged.
autoheader-2.65:
autoheader-2.65: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.65: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader-2.65: WARNING: `acconfig.h':
autoheader-2.65:
autoheader-2.65: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.65: [Define if a function `main' is needed.])
autoheader-2.65:
autoheader-2.65: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.65: WARNING: documentation.
Running automake --gnu ...
configure.in:27: installing `./install-sh'
configure.in:27: installing `./missing'
src/Makefile.am: installing `./depcomp'
Running autoconf ...
Running ./configure --prefix=/usr/local --program-suffix=ip3600 --enable-libpath=/usr/lib32/bjlib ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for socket... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/cncl/Makefile
config.status: creating include/misc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
Now type `make' to compile the package.
make all-recursive
make[1]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/ip3600/cnijfilter'
Making all in src
make[2]: Entering directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/ip3600/cnijfilter/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjferror.o -MD -MP -MF .deps/bjferror.Tpo -c -o bjferror.o bjferror.c
mv -f .deps/bjferror.Tpo .deps/bjferror.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjfilter.o -MD -MP -MF .deps/bjfilter.Tpo -c -o bjfilter.o bjfilter.c
mv -f .deps/bjfilter.Tpo .deps/bjfilter.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjfimage.o -MD -MP -MF .deps/bjfimage.Tpo -c -o bjfimage.o bjfimage.c
bjfimage.c: In Funktion »bmp_image_open«:
bjfimage.c:610: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »bmp_image_read_raster«:
bjfimage.c:804: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c:809: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c:815: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »bmp_image_flush«:
bjfimage.c:875: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »ppm_image_open«:
bjfimage.c:924: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »ppm_image_read_raster«:
bjfimage.c:1106: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c:1109: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c:1114: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »ppm_image_flush«:
bjfimage.c:1159: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »png_image_open«:
bjfimage.c:1498: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
bjfimage.c: In Funktion »png_image_init«:
bjfimage.c:1578: Warnung: »jmpbuf« ist veraltet (deklariert bei /usr/include/png.h:1132)
bjfimage.c:1590: Warnung: Übergabe des Arguments 3 von »png_get_IHDR« von inkompatiblem Zeigertyp
/usr/include/png.h:2381: Anmerkung: expected »png_uint_32 *« but argument is of type »long int *«
bjfimage.c:1590: Warnung: Übergabe des Arguments 4 von »png_get_IHDR« von inkompatiblem Zeigertyp
/usr/include/png.h:2381: Anmerkung: expected »png_uint_32 *« but argument is of type »long int *«
bjfimage.c: In Funktion »ppm_write_tmpfile«:
bjfimage.c:1839: Warnung: Der Rückgabewert von »fread«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
mv -f .deps/bjfimage.Tpo .deps/bjfimage.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjfoption.o -MD -MP -MF .deps/bjfoption.Tpo -c -o bjfoption.o bjfoption.c
bjfoption.c: In Funktion »SetCmdOption«:
bjfoption.c:541: Warnung: Übergabe des Arguments 3 von »poptGetContext« von inkompatiblem Zeigertyp
/usr/include/popt.h:261: Anmerkung: expected »const char **« but argument is of type »char **«
mv -f .deps/bjfoption.Tpo .deps/bjfoption.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjfpos.o -MD -MP -MF .deps/bjfpos.Tpo -c -o bjfpos.o bjfpos.c
mv -f .deps/bjfpos.Tpo .deps/bjfpos.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjfrcaccess.o -MD -MP -MF .deps/bjfrcaccess.Tpo -c -o bjfrcaccess.o bjfrcaccess.c
mv -f .deps/bjfrcaccess.Tpo .deps/bjfrcaccess.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT getipc.o -MD -MP -MF .deps/getipc.Tpo -c -o getipc.o getipc.c
getipc.c: In Funktion »GetIPCData«:
getipc.c:69: Warnung: Der Rückgabewert von »read«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
getipc.c:72: Warnung: Der Rückgabewert von »read«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
getipc.c:83: Warnung: Der Rückgabewert von »read«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
getipc.c:89: Warnung: Der Rückgabewert von »read«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
mv -f .deps/getipc.Tpo .deps/getipc.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/cncl -I../include/misc -O2 -MT bjflist.o -MD -MP -MF .deps/bjflist.Tpo -c -o bjflist.o bjflist.c
mv -f .deps/bjflist.Tpo .deps/bjflist.Po
gcc -O2 -L../../333/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 -lcnbpcmcm333 -lcnbpess333 -lm -ldl -ltiff -lpng -lcnbpcnclapi333 -lcnbpcnclbjcmd333 -lcnbpcnclui333 -lpopt
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib32/libtiff.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [cif] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/ip3600/cnijfilter/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00/ip3600/cnijfilter'
make: *** [all] Fehler 2
[31;01m*[0m ERROR: net-print/cnijfilter-3.00 failed (compile phase):
[31;01m*[0m Couldn't make ip3600/cnijfilter
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 56: Called src_compile
[31;01m*[0m environment, line 2626: Called src_compile_pr
[31;01m*[0m environment, line 2658: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m make || die "Couldn't make ${_pr}/cnijfilter";
[31;01m*[0m
[31;01m*[0m If you need support, post the output of 'emerge --info =net-print/cnijfilter-3.00',
[31;01m*[0m the complete build log and the output of 'emerge -pqv =net-print/cnijfilter-3.00'.
[31;01m*[0m This ebuild is from an overlay named 'calculate': '/usr/local/portage/layman/calculate/'
[31;01m*[0m The complete build log is located at '/var/tmp/portage/net-print/cnijfilter-3.00/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-print/cnijfilter-3.00/temp/environment'.
[31;01m*[0m S: '/var/tmp/portage/net-print/cnijfilter-3.00/work/cnijfilter-3.00' |
emerge --info =net-print/cnijfilter-3.00
Code: | emerge --info =net-print/cnijfilter-3.00
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.3, libc-0-r0, 2.6.36-gentoo-r5 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 05 May 2011 13:15:01 +0000
app-shells/bash: 4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.1-r1, 3.1.3-r1
dev-util/cmake: 2.8.4-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool: 2.2.10
sys-devel/make: 3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc: 2.10.1-r1
virtual/os-headers: 0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j5"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/calculate /usr/local/portage/layman/wdzierzan"
SYNC="rsync://rsync6.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apm bash-completion berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 java jpeg lcms ldap libnotify lock mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl pmu png policykit ppds pppd python qt3support readline sdl session spell sse sse2 sse4 ssl ssse3 startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid xvmc 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 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" CAMERAS="ptp2" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
|
|
Back to top |
|
|
castor_fou Apprentice
Joined: 23 May 2002 Posts: 249 Location: Clermont-Ferrand, France
|
Posted: Wed Nov 02, 2011 5:47 pm Post subject: |
|
|
For a reason I cannot build scangearmp-1.60 (cnijfilter is ok)
I have this output
Code: | mv -f .deps/scangearmp-prev_sub.Tpo .deps/scangearmp-prev_sub.Po
gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -I../include -I../backend -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/gimp-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DV_MAJOR=1 -DV_MINOR=0 -O2 -D__GIMP_PLUGIN_ENABLE__ -D_FILE_OFFSET_BITS=64 -MT scangearmp-scanfile.o -MD -MP -MF .deps/scangearmp-scanfile.Tpo -c -o scangearmp-scanfile.o `test -f 'scanfile.c' || echo './'`scanfile.c
scanfile.c: In function 'WritePnmHeader':
scanfile.c:328:2: warning: format '%d' expects type 'int', but argument 4 has type 'CNMSInt32'
scanfile.c:328:2: warning: format '%d' expects type 'int', but argument 4 has type 'CNMSInt32'
scanfile.c:340:2: warning: format '%d' expects type 'int', but argument 4 has type 'CNMSInt32'
scanfile.c:340:2: warning: format '%d' expects type 'int', but argument 4 has type 'CNMSInt32'
scanfile.c:353:3: warning: format '%d' expects type 'int', but argument 4 has type 'CNMSInt32'
scanfile.c:353:3: warning: format '%d' expects type 'int', but argument 4 has type 'CNMSInt32'
scanfile.c: In function 'write_data_for_png':
scanfile.c:389:41: error: dereferencing pointer to incomplete type
scanfile.c: In function 'Change_RAW_to_PNG':
scanfile.c:463:40: error: 'Z_BEST_SPEED' undeclared (first use in this function)
scanfile.c:463:40: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scangearmp-scanfile.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-print/scangearmp-1.60/work/scangearmp-1.60/scangearmp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-print/scangearmp-1.60/work/scangearmp-1.60/scangearmp'
make: *** [all] Error 2
* ERROR: net-print/scangearmp-1.60 failed (compile phase):
* Couldn't make scangearmp
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2549: Called die
* The specific snippet of code:
* make || die "Couldn't make scangearmp";
*
* If you need support, post the output of 'emerge --info =net-print/scangearmp-1.60',
* the complete build log and the output of 'emerge -pqv =net-print/scangearmp-1.60'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/net-print/scangearmp-1.60/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-print/scangearmp-1.60/temp/environment'.
* S: '/var/tmp/portage/net-print/scangearmp-1.60/work/scangearmp-1.60'
>>> Failed to emerge net-print/scangearmp-1.60, Log file:
>>> '/var/tmp/portage/net-print/scangearmp-1.60/temp/build.log'
* Messages for package net-print/scangearmp-1.60:
* ERROR: net-print/scangearmp-1.60 failed (compile phase):
* Couldn't make scangearmp
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2549: Called die
* The specific snippet of code:
* make || die "Couldn't make scangearmp";
*
* If you need support, post the output of 'emerge --info =net-print/scangearmp-1.60',
* the complete build log and the output of 'emerge -pqv =net-print/scangearmp-1.60'.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/net-print/scangearmp-1.60/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-print/scangearmp-1.60/temp/environment'.
* S: '/var/tmp/portage/net-print/scangearmp-1.60/work/scangearmp-1.60'
|
Does anyone know how to fix that ? |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Sat Nov 19, 2011 1:42 pm Post subject: |
|
|
I'm getting compilation errors with both scangear mp and cnijfilter. I posted them on the running bug but it seems not much people read it, so I'm posting it here as well. The bug can be found here: https://bugs.gentoo.org/show_bug.cgi?id=130645
Any suggestions would be wonderful. I got my MX410 working from Ubuntu and Windows 7 (it's a dualboot netbook), but no luck on Gentoo, which is my main system and has been for many years. Would be sad to see it not working :/ _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
castor_fou Apprentice
Joined: 23 May 2002 Posts: 249 Location: Clermont-Ferrand, France
|
Posted: Sat Nov 19, 2011 5:20 pm Post subject: |
|
|
Theimon wrote: | I'm getting compilation errors with both scangear mp and cnijfilter. I posted them on the running bug but it seems not much people read it, so I'm posting it here as well. The bug can be found here: https://bugs.gentoo.org/show_bug.cgi?id=130645
Any suggestions would be wonderful. I got my MX410 working from Ubuntu and Windows 7 (it's a dualboot netbook), but no luck on Gentoo, which is my main system and has been for many years. Would be sad to see it not working :/ |
which version do you use. I cannot build scangear but net-print/cnijfilter 3.40-r5 is ok |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Sun Nov 20, 2011 6:54 am Post subject: |
|
|
I'm using cnijfilter 3.50. It fails at the install phase. Scangear MP 1.70 fails at the compilation phase. _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
iopi n00b
Joined: 13 Mar 2005 Posts: 68
|
Posted: Sat Nov 26, 2011 8:36 am Post subject: |
|
|
Unfortunately I'm getting the same error as castor on scangearmp; I tried building the package manually but still a no go. Maybe it's our version of sane we are using? I've tried both 1.0.22-r2 & 1.0.22-r1, but no go.
I've been stuck on this forever x___x |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Sun Nov 27, 2011 9:51 am Post subject: |
|
|
I think it has something to do with libpng. I tried earlier versions but it just won't work.
Getting a bit annoying, also because noone is responding to the bugreport :/ _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Mon Nov 28, 2011 8:29 pm Post subject: |
|
|
iopi, thank you for your message. It made me take a closer look at the ebuild I was using. Cnijfilter failed on me at the install-phase because it couldn't find the "381/libs_bin/" directory. That seems logical since that directory simply doesn't exist.
It's either libs_bin32 or libs_bin64. When adjusting it to libs_bin64 the emerge finishes successfully, but cups is then unable to load libraries. By adjusting it to libs_bin32, the emerge finishes successfully and the printer gets installed. But that's all that will happen. When I query it for default options or tell it to print a test page nothing will happen. The printer wakes up from idle condition, but nothing more. Strange thing is: Cups tells me in the job log, error-log and access-log that all jobs were completed successfully (???????????) It's getting tiresome.
Scangearmp is still hopelessly failing on me...I still think it has something to do libpng. With every update libpng gets something is messed up on my system. Do they change the whole package every bloody time they do a revbump?! _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Mon Nov 28, 2011 11:30 pm Post subject: |
|
|
I see the MX410 as experimental in that list, but I'm gonna try it anyway...tomorrow that is. _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
iopi n00b
Joined: 13 Mar 2005 Posts: 68
|
Posted: Tue Nov 29, 2011 2:40 am Post subject: |
|
|
Good luck on Gutenprint -- I had no luck with my mp495 running through it.
I really wish I wrote my steps down on how I fixed the printer because your issue of waking up from idle sounds eerily familiar.
IIRC: I think it was the ebuild tar file that it was pulling was just bad (wherever it was pointing); I had to point it to canon Europe in order for it to work.
Don't know if this helps you any but here are the versions of my relevant installs:
net-print/cups-bjnp
Latest version available: 1.0
Latest version installed: 1.0
net-print/cups
Latest version available: 1.4.8-r22
Latest version installed: 1.4.8-r22
app-emulation/emul-linux-x86-bjdeps
Latest version available: 0.1-r2
Latest version installed: 0.1-r2 |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Tue Nov 29, 2011 9:31 pm Post subject: |
|
|
Gutenprint isn't working for me, so it's back to cnijfilter. It uses the cnijnet backend (also on my Ubuntu box) so the bjnp package is of no use. I tried it before I installed the cnijfilter package, but it wasn't working either.
I unmasked cups 1.5.0, since that version is also working on my Ubuntu box, but on Gentoo it makes no difference. Just now I tried to print a test page: Job Completed, but the printer stays silent.
I'm in the dark..... _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
iopi n00b
Joined: 13 Mar 2005 Posts: 68
|
Posted: Sun Dec 04, 2011 11:27 am Post subject: |
|
|
Well; I got my scangearmp to build.
Grab your tar.gz file for scangearmp and move it to your home directory.
Extract.
Edit scanfile.c
add a Z_BEST_SPEED definition
Code: |
#include "cnmsfunc.h"
#include "png.h"
#include "errors.h"
#include "w1.h"
#include "file_control.h"
#include "save_dialog.h"
#include "progress_bar.h"
#include "raw2pdf.h"
#include "scanmsg.h"
#define Z_BEST_SPEED 1
|
Kill PNG functionality (definately failing because of something with libpng) ... should still be able to scan to pdf -- haven't tested.
Code: |
/********************************************************************************************/
/* Portable Network Graphics File Format */
/********************************************************************************************/
void write_data_for_png( png_structp png_ptr, png_bytep data, png_size_t length )
{
//FileControlWriteFile( *( (int *)png_ptr->io_ptr ), (CNMSLPSTR)data, length );
return;
}
|
recompress (Tar.gz the file with the same name) and move back to your distfile directory
Edit your scangearmp ebuild to look for your local file.
Top of the scangearmp ebuild:
Code: |
GNU nano 2.2.5 File: /usr/local/portage/net-print/scangearmp/scangearmp-1.60.ebuild
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Changelog since last bugzilla upload
#
# initial version
# updated to use cnijfilter-common-2.80 2008-01-12 by Victor Mataré
#
# 2010-03-19 GuS Version 3.20-r1
# Replaced dependency of non-existing dev-libs/libxml with
# dependency of >=dev-libs/libxml2-2.7.3-r2.
#
# 2010-03-20 GuS Version 3.20-r2
# Replaced dependency of non-existing virtual/ghostscript with
# dependency of app-text/ghostscript-gpl.
inherit eutils flag-o-matic multilib
DESCRIPTION="Canon InkJet Scanner Driver and ScanGear MP for Linux (Pixus/Pixma-Series)."
HOMEPAGE="http://support-au.canon.com.au/contents/AU/EN/0100303302.html"
#RESTRICT="nomirror confcache"
RESTRICT="fetch"
#SRC_URI="http://files.canon-europe.com/files/soft40247/software/scangearmp-source-1.60-1.tar.gz"
SRC_URI="http://www.www.www/scangearmp-source-1.60-1.tar.gz"
|
digest it
Code: |
ebuild scangearmp digest
|
should compile successfully now; won't work scanning to png.
I've tested it and the printer is detected successfully as well as scanned to pdf. I'll peak into the png issue some more tomorrow.
From the png.h header I saw this comment line -- these two are where we are blowing up on the commented out png line...
Code: |
*
* Binary incompatibility exists only when applications make direct access
* to the info_ptr or png_ptr members through png.h, and the compiled
* application is loaded with a different version of the library.
*
|
I checked my build log and it is pointing to libpng15 so I'm not quite sure why this error pops up |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Sat Dec 10, 2011 2:34 am Post subject: |
|
|
I made the adjustments to the source and ebuild. I had some trouble getting the ebuild to digest. It wouldn't create a manifest on a bogus SRC_URI and I couldn't get it to point to a local file.
I solved it by throwing the .tar.gz in my Public folder on my Dropbox account. Digested it and emerged it. It went great and the program seems to be working I haven't tried it completely yet, but to come this far is an achievement on its own
I will do some simple testing tomorrow (it can find and connect to the machine so we're halfway there).
Cheers for the help on this one so far, great job _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
iopi n00b
Joined: 13 Mar 2005 Posts: 68
|
Posted: Sat Dec 10, 2011 3:07 am Post subject: |
|
|
Now we just have to figure out why it doesn't like libpng ;].
Still have made no progress on that though . Been massive busy at work -- hope to look into it some more this weekend.
Glad the source fix worked for you! |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Sat Dec 10, 2011 10:08 am Post subject: |
|
|
The scanner works!
Now to get cnijfilter going....
Edit1: One thing that caught my eye just now when building cnijfilter: I have the net USE-flag enabled, but it doesn't install the cnijnet backend, only the cnijusb backend. Hmmmm.....
Edit2: That thing mentioned in Edit 1 doesn't interfere with the (lack of) operation of the printer. If you build cnijnet yourself and place it in the right directory it connects just as it should.
I still get Print Job Completed but nothing bloody happens, but if it is able to work on Ubuntu, why the hell not on Gentoo? _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Thu Dec 15, 2011 1:16 am Post subject: |
|
|
Well, getting a bit frustrated with it all I went ahead and came to a sort of "last-resort"-ish solution. Currently the printer is hooked up to the main machine with a USB cable. It uses the cnijusb backend from the cnijfilter package, but uses the Gutenprint driver.
And it finally works, but it's a dirty solution to be honest.
I will however keep on going with getting it to work like it should because I bought a wifi-printer for a reason. Currently it's still in my livingroom due to the USB cable, but I don't want it here. It _must_ work eventually! _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Sun Dec 18, 2011 4:11 pm Post subject: |
|
|
iopi wrote: | Good luck on Gutenprint -- I had no luck with my mp495 running through it...
|
Theimon wrote: | Gutenprint isn't working for me...
|
I don't know what is the problem you are encountering with gutenprint, since you both did not say anything about that. If the problem is the printing looks like crap, as if it is stretched, then you are using 600dpi. Drop it to 300dpi. It works for me. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
Theimon Tux's lil' helper
Joined: 16 Mar 2007 Posts: 99 Location: Netherlands
|
Posted: Sun Dec 18, 2011 5:56 pm Post subject: |
|
|
keenblade wrote: | iopi wrote: | Good luck on Gutenprint -- I had no luck with my mp495 running through it...
|
Theimon wrote: | Gutenprint isn't working for me...
|
I don't know what is the problem you are encountering with gutenprint, since you both did not say anything about that. If the problem is the printing looks like crap, as if it is stretched, then you are using 600dpi. Drop it to 300dpi. It works for me. |
Well, I think it was the combination of wifi and Gutenprint, I'm using Gutenprint now on USB, printing looks ok to me. _________________ It doesn't matter what's right, it's only wrong if you get caught. |
|
Back to top |
|
|
iopi n00b
Joined: 13 Mar 2005 Posts: 68
|
Posted: Mon Dec 19, 2011 3:45 am Post subject: |
|
|
keenblade -- for me it would send to the printer and say job complete but nothing came out; but the canon drivers; once I got them to work, seemed fine. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|