I'm running Arch Linux, stock 2.6.6 kernel, and I'm unable to build the
hpoj-0.91 without disabling libusb. .90 builds fine, but my PSC 1210
printer doesn't run under .90. :(
It's obviously a libusb problem, although as far as I can tell, it has
been part of the kernel for a while now.
I recall reading somewhere that a couple of device names have changed
when moving to kernel 2.6, so that could be a possibility.
Anyway, I posted my error messages. I hope someone can help. :-/
Thanks.
Jeramy
g++ -I/home/jeramy/hpoj/src/hpoj-0.91/mlcd
-I/home/jeramy/hpoj/src/hpoj-0.91/mlcd/transport -O -g -Wall
-DEX_TRANSPORT_UNIX_PORT -DPAR_PLATFORM_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/ExMlcTransport.o transport/ExMlcCommandChannel.o
ExMgr.o(.text+0xbd23): In function `UsbMgr::llioInit()':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3945: undefined reference
to `usb_init'
ExMgr.o(.text+0xbd95): In function `UsbMgr::llioGlob()':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3959: undefined reference
to `usb_find_busses'
ExMgr.o(.text+0xbd9a):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3960: undefined reference to `usb_find_devices'
ExMgr.o(.text+0xbdb0):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3964: undefined reference to `usb_busses'
ExMgr.o(.text+0xbfc0): In function `UsbMgr::libusbFindDevice(char*,
unsigned int, char*, unsigned int, int, int)':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:4031: undefined reference
to `usb_busses'
ExMgr.o(.text+0xc8a9): In function `UsbMgr::llioGetDeviceID(int*)':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3749: undefined reference
to `usb_open'
ExMgr.o(.text+0xc8ec):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3753: undefined reference to `usb_claim_interface'
ExMgr.o(.text+0xc977):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3743: undefined reference to `usb_close'
ExMgr.o(.text+0xc9cf):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:4301: undefined reference to `usb_control_msg'
ExMgr.o(.text+0xc9e0):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3743: undefined reference to `usb_close'
ExMgr.o(.text+0xd0b4): In function
`UsbMgr::llioSetProtocol(ExMgr::ExInterface)':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3749: undefined reference
to `usb_open'
ExMgr.o(.text+0xd0fa):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3753: undefined reference to `usb_claim_interface'
ExMgr.o(.text+0xd189):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3743: undefined reference to `usb_close'
ExMgr.o(.text+0xd1c2):/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:4551: undefined reference to `usb_set_altinterface'
ExMgr.o(.text+0xd362): In function
`UsbMgr::llioSetChannel(ExMgr::ExInterface, int)':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:4596: undefined reference
to `usb_control_msg'
ExMgr.o(.gnu.linkonce.t._ZN6UsbMgr10_llioWriteEN5ExMgr11ExInterfaceEPKhii+0x44):
In function `UsbMgr::_llioWrite(ExMgr::ExInterface, unsigned char
const*, int, int)':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:3817: undefined reference
to `usb_bulk_write'
ExMgr.o(.gnu.linkonce.t._ZN6UsbMgr10_llioWriteEN5ExMgr11ExInterfaceEPKhii+0xda):
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.cpp:77: undefined reference
to `usb_bulk_write'
ExMgr.o(.gnu.linkonce.t._ZN6UsbMgr9_llioReadEN5ExMgr11ExInterfaceEPhii+0x3b): In function `UsbMgr::_llioRead(ExMgr::ExInterface, unsigned char*, int, int)':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.h:1072: undefined reference
to `usb_bulk_read'
ExMgr.o(.gnu.linkonce.t._ZN6UsbMgr9llioResetEv+0x1d): In function
`UsbMgr::llioReset()':
/usr/include/sys/io.h:48: undefined reference to `usb_close'
ExMgr.o(.gnu.linkonce.t._ZN6UsbMgr9llioResetEv+0x3e): In function
`UsbMgr::llioReset()':
/home/jeramy/hpoj/src/hpoj-0.91/mlcd/ExMgr.h:963: undefined reference to
`usb_close'
collect2: ld returned 1 exit status
make[1]: *** [ptal-mlcd] Error 1
make[1]: Leaving directory `/home/jeramy/hpoj/src/hpoj-0.91/mlcd'
make: *** [just_compile] Error 2
|