|
From: Johannes B. <joh...@jo...> - 2005-02-10 18:55:01
|
Hello list,
is there any hope for the following printer config problem? I don't
know what I did wrong:=20
Hp psc 500 connected via parallel to a gentoo linux (2.6.10-ck5) box
running cups (1.1.23) and having libusb 0.1.8 on it. First
hpoi-0.91-r3 didn't want to compile; here is a small report about what
the linker complained:=20
Configuration done. Created Makefiles using the following substitutions:
SUBDIRS =3D lib/hpojip lib/ptal lib/sane mlcd apps/cmdline
bindir_program =3D apps/cmdline/ptal-connect apps/cmdline/ptal-dev=
ice apps/
cmdline/ptal-devid apps/cmdline/ptal-pml apps/cmdline/ptal-hp apps/cmdline/=
hpojip-
test
sbindir_program =3D mlcd/ptal-mlcd apps/cmdline/ptal-printd apps/cm=
dline/pta
l-photod scripts/ptal-init scripts/ptal-cups
includedir_data =3D include/hpojip.h include/ptal.h
VAR_RUN_PREFIX_CFLAGS =3D -DVAR_RUN_PREFIX=3D"\"/var/run\""
PAR_PLATFORM =3D LINUX
USB_PLATFORM =3D LINUX
MLCD_OBJS =3D ParPort.o
MLCD_CFLAGS =3D -DHAVE_LIBUSB=20
MLCD_LFLAGS =3D -lusb
DEFINES_CMDLINE =3D=20
INCLUDE_CMDLINE =3D -I/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/=
include
LIBRARY_CMDLINE =3D -L/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/=
lib/hpoji
p -L/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/lib/ptal -L/var/tmp/portag=
e/hpoj-
0.91-r3/work/hpoj-0.91/lib/sane
LIBSNMP_CMDLINE =3D=20
CUPS_BACKEND_DIR =3D /usr
SANE_BACKEND_DIR =3D /usr/lib/sane
SANE_ETC_DIR =3D /etc/sane.d
LIBQT_CMDLINE =3D=20
QT_MOC =3D=20
[...]
g++ -I/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/mlcd -I/var/tmp/portage/=
hpoj-0.
91-r3/work/hpoj-0.91/mlcd/transport -O -g -Wall -DEX_TRANSPORT_UNIX_PORT -D=
PAR_PLA
TFORM_LINUX -DUSB_PLATFORM_LINUX -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_P=
REFIX=3D"
\"/var/run\"" -c -o transport/ExMlcCommandChannel.o transport/ExMlcCommandC=
hannel.
cpp
g++ -lusb -o ptal-mlcd ExMgr.o ParPort.o transport/ExTransport.o transport/=
ExMlcTr
ansport.o transport/ExMlcCommandChannel.o=20
ExMgr.o(.text+0xb17f): In function `UsbMgr::llioInit()':
/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/mlcd/ExMgr.cpp:3945: undefined=
refere
nce to `usb_init'
ExMgr.o(.text+0xb1f5): In function `UsbMgr::llioGlob()':
/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/mlcd/ExMgr.cpp:3959: undefined=
refere
nce to `usb_find_busses'
[...etc. (more usb-stuff)]
I changed the following line in mlcd/Makefile.in:
--- Makefile.in.orig 2005-01-04 13:48:51.259014296 +0100
+++ Makefile.in 2005-01-04 13:49:28.096414160 +0100
@@ -31,7 +31,7 @@
all: $(GOAL)
=20
$(GOAL): $(OBJS)
- $(CXX) $(LFLAGS) -o $(GOAL) $(OBJS)
+ $(CXX) -o $(GOAL) $(OBJS) $(LFLAGS)
=20
clean:
rm -f $(OBJS) $(GOAL)
Install was fine then. Configuration:=20
init.version=3D2
init.mlcd.append+=3D-devidmatch "MDL:PSC 500;"
init.mlcd.append+=3D-devidmatch "SERN:MYJ06E19V3WZ;"
init.mlcd.append+=3D-base 0x378 -basehigh 0x778 -device /dev/lp0
ps -ef:
root 10735 1 0 16:58 ? 00:00:00 ptal-mlcd mlc:par:PSC_500 -=
devidmatch MDL:PSC 500; -devidmatch SERN:MYJ06E19V3WZ; -base 0x378 -basehig=
h 0x778 -device /dev/lp0
root 10742 1 0 16:58 ? 00:00:00 ptal-printd mlc:par:PSC_500=
-morepipes 9 -like /etc/ptal/ptal-printd-like
Now the printer prints -- but only the first half of a side and only
for the first time after boot. Sometimes there is an error message at
boot up, if not, then after printing...:
Not using the printd didn't change much. Maybe some lines more of the
first page.
Starting hpoj ... [ ok ]=20
Starting cupsd ...
ptal-mlcd: ERROR at transport/ExMlcCommandChannel.cpp:251, dev=3D<mlc:par:P=
SC_500@/dev/lp0>, pid=3D10735, e=3D11, t=3D1108051107
Command reply timeout on port=3D0, count=3D1, lastRequest=3D0x00!
ptal-mlcd: ERROR at ExMgr.cpp:871, dev=3D<mlc:par:PSC_500@/dev/lp0>, pid=3D=
10735, e=3D11, t=3D1108051107
exClose(reason=3D0x3002) [ ok ]=20
xsane recognizes the scanner.
Is it still a compile/linking problem or is it due to wrong config?
Any help is welcome. Thanks in advance.
Best Regards,
Johannes
--=20
Fr=F6hlich lass sein in dir, die deinen Namen lieben!
Psalm 5,12
|