Hi! tryin to port driver from Linux to old 660 Canon printer.
First i got this io.h missing stuff.
Replacing io.h with ioctl.h
produced following.
Any help would be appriciated.
First i got this io.h missing stuff.
Code:
gcc -O2 -s lbp660.c -o lbp660
lbp660.c:25:47: error: sys/io.h: No such file or directory
lbp660.c: In function 'get_bitmap':
lbp660.c:162: warning: incompatible implicit declaration of built-in function 'memset'
lbp660.c: In function 'errorexit':
lbp660.c:410: warning: incompatible implicit declaration of built-in function 'exit'
lbp660.c: In function 'main':
lbp660.c:949: warning: incompatible implicit declaration of built-in function 'strcpy'
*** Error code 1
Stop in /kakkonen/leffat/lbp660-0.3.1.
bsdkone#
Replacing io.h with ioctl.h
produced following.
Code:
bsdkone# make
gcc -O2 -s lbp660.c -o lbp660
lbp660.c: In function 'get_bitmap':
lbp660.c:162: warning: incompatible implicit declaration of built-in function 'memset'
lbp660.c: In function 'errorexit':
lbp660.c:410: warning: incompatible implicit declaration of built-in function 'exit'
lbp660.c: In function 'main':
lbp660.c:949: warning: incompatible implicit declaration of built-in function 'strcpy'
/var/tmp//cccICL2w.o(.text+0x16e): In function `statusin':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x18e): In function `ctrlin':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1b5): In function `ctrlout':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1d5): In function `dataout':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x50e): In function `checkstatus':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x58e): In function `checkctrl':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xc2a): In function `cmddataouts':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xc81): In function `cmddataouts':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xc96): In function `cmddataouts':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xca2): In function `cmddataouts':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xd27): In function `cmdout':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xd80): In function `cmdout':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xd8e): In function `cmdout':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xe1e): In function `checkcmddataouts':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xe75): In function `checkcmddataouts':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xe8a): In function `checkcmddataouts':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xe96): In function `checkcmddataouts':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xf46): In function `cmddataout':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xfa0): In function `cmddataout':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0xfb3): In function `cmddataout':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0xfbf): In function `cmddataout':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x103b): In function `checkcmdout':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1093): In function `checkcmdout':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x10a1): In function `checkcmdout':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x117e): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1192): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x11f2): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1206): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x121a): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x127d): more undefined references to `outb' follow
/var/tmp//cccICL2w.o(.text+0x1289): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x12ab): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1306): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1344): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1366): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x137a): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x138e): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x13e6): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1426): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1448): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x14a0): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x152c): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1552): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1566): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x15c0): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x15fd): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1655): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1663): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x16d4): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1704): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1764): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1770): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x17ae): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x17c2): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x17d6): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x182e): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x186e): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1890): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x18e8): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1941): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x19a4): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x19ec): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x19f8): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1a1a): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1a4a): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1aa2): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1aea): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1af6): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1b18): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1b48): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1ba0): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1be8): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1bf4): In function `reset_printer':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1c16): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1c62): In function `reset_printer':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1dbb): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1dc7): In function `print_band':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1de9): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1e41): In function `print_band':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1e57): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1e85): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1ee0): In function `print_band':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1f10): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1f68): In function `print_band':
: undefined reference to `inb'
/var/tmp//cccICL2w.o(.text+0x1f7e): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1fd6): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1fea): In function `print_band':
: undefined reference to `outb'
/var/tmp//cccICL2w.o(.text+0x1ff6): In function `print_band':