HP PSC 500
"Johannes Br?gmann" <[email protected]> Thu, 10 Feb 2005 19:56:35 +0100
| Newsgroups | gmane.linux.drivers.hpofficejet.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello list,
is there any hope for the following printer config problem? I don't
know what I did wrong:
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:
Configuration done. Created Makefiles using the following substitutions:
SUBDIRS = lib/hpojip lib/ptal lib/sane mlcd apps/cmdline
bindir_program = apps/cmdline/ptal-connect apps/cmdline/ptal-device apps/
cmdline/ptal-devid apps/cmdline/ptal-pml apps/cmdline/ptal-hp apps/cmdline/hpojip-
test
sbindir_program = mlcd/ptal-mlcd apps/cmdline/ptal-printd apps/cmdline/pta
l-photod scripts/ptal-init scripts/ptal-cups
includedir_data = include/hpojip.h include/ptal.h
VAR_RUN_PREFIX_CFLAGS = -DVAR_RUN_PREFIX="\"/var/run\""
PAR_PLATFORM = LINUX
USB_PLATFORM = LINUX
MLCD_OBJS = ParPort.o
MLCD_CFLAGS = -DHAVE_LIBUSB
MLCD_LFLAGS = -lusb
DEFINES_CMDLINE =
INCLUDE_CMDLINE = -I/var/tmp/portage/hpoj-0.91-r3/work/hpoj-0.91/include
LIBRARY_CMDLINE = -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/portage/hpoj-
0.91-r3/work/hpoj-0.91/lib/sane
LIBSNMP_CMDLINE =
CUPS_BACKEND_DIR = /usr
SANE_BACKEND_DIR = /usr/lib/sane
SANE_ETC_DIR = /etc/sane.d
LIBQT_CMDLINE =
QT_MOC =
[...]
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 -DPAR_PLA
TFORM_LINUX -DUSB_PLATFORM_LINUX -DJD_DEBUGLITE -DHAVE_LIBUSB -DVAR_RUN_PREFIX="
\"/var/run\"" -c -o transport/ExMlcCommandChannel.o transport/ExMlcCommandChannel.
cpp
g++ -lusb -o ptal-mlcd ExMgr.o ParPort.o transport/ExTransport.o transport/ExMlcTr
ansport.o transport/ExMlcCommandChannel.o
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)
$(GOAL): $(OBJS)
- $(CXX) $(LFLAGS) -o $(GOAL) $(OBJS)
+ $(CXX) -o $(GOAL) $(OBJS) $(LFLAGS)
clean:
rm -f $(OBJS) $(GOAL)
Install was fine then. Configuration:
init.version=2
init.mlcd.append+=-devidmatch "MDL:PSC 500;"
init.mlcd.append+=-devidmatch "SERN:MYJ06E19V3WZ;"
init.mlcd.append+=-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 -basehigh 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 ]
Starting cupsd ...
ptal-mlcd: ERROR at transport/ExMlcCommandChannel.cpp:251, dev=<mlc:par:PSC_500@/dev/lp0>, pid=10735, e=11, t=1108051107
Command reply timeout on port=0, count=1, lastRequest=0x00!
ptal-mlcd: ERROR at ExMgr.cpp:871, dev=<mlc:par:PSC_500@/dev/lp0>, pid=10735, e=11, t=1108051107
exClose(reason=0x3002) [ ok ]
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
--
Fröhlich lass sein in dir, die deinen Namen lieben!
Psalm 5,12
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click