LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-02-2005, 11:00 AM   #1
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Rep: Reputation: 15
Lexmark USB Driver won't "make"


I downloaded the usb drivers from the lexmark site, but when i make i get the following huge output:


gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-`uname -r`/include -include /usr/src/linux-`uname -r`/include/linux/modversions.h -c lxkscanner.c
<command line>:138129254:44968: /usr/src/linux-2.4.20-8/include/linux/modversions.h: No such file or directory
In file included from lxkscanner.c:358:
lxkscanner.h:34:25: asm/uaccess.h: No such file or directory
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /usr/include/linux/delay.h:12,
from lxkscanner.h:37,
from lxkscanner.c:358:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from lxkscanner.h:37,
from lxkscanner.c:358:
/usr/include/linux/timex.h:173: error: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/delay.h:12,
from lxkscanner.h:37,
from lxkscanner.c:358:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/delay.h:12,
from lxkscanner.h:37,
from lxkscanner.c:358:
/usr/include/asm/signal.h:107: error: parse error before "sigset_t"
/usr/include/asm/signal.h:110: error: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/delay.h:12,
from lxkscanner.h:37,
from lxkscanner.c:358:
/usr/include/linux/timer.h:45: error: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: error: parse error before '}' token
/usr/include/linux/timer.h:67: error: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from lxkscanner.h:37,
from lxkscanner.c:358:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from /usr/include/linux/pagemap.h:15,
from /usr/include/linux/locks.h:8,
from /usr/include/linux/devfs_fs_kernel.h:6,
from lxkscanner.h:41,
from lxkscanner.c:358:
/usr/include/asm/pgtable.h:17:24: asm/fixmap.h: No such file or directory
In file included from /usr/include/linux/pagemap.h:15,
from /usr/include/linux/locks.h:8,
from /usr/include/linux/devfs_fs_kernel.h:6,
from lxkscanner.h:41,
from lxkscanner.c:358:
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:24: error: parse error before "swapper_pg_dir"
In file included from /usr/include/asm/pgtable.h:115,
from /usr/include/linux/pagemap.h:15,
from /usr/include/linux/locks.h:8,
from /usr/include/linux/devfs_fs_kernel.h:6,
from lxkscanner.h:41,
from lxkscanner.c:358:
/usr/include/asm/pgtable-2level.h:32: error: parse error before "pgd"
/usr/include/asm/pgtable-2level.h:33: error: parse error before "pgd"
/usr/include/asm/pgtable-2level.h:34: error: parse error before "pgd"
/usr/include/asm/pgtable-2level.h:53: error: parse error before '*' token
/usr/include/asm/pgtable-2level.h:53: error: parse error before '*' token
/usr/include/asm/pgtable-2level.h: In function `pmd_offset':
/usr/include/asm/pgtable-2level.h:55: error: `pmd_t' undeclared (first use in this function)
/usr/include/asm/pgtable-2level.h:55: error: (Each undeclared identifier is reported only once
/usr/include/asm/pgtable-2level.h:55: error: for each function it appears in.)
/usr/include/asm/pgtable-2level.h:55: error: parse error before ')' token
In file included from /usr/include/linux/pagemap.h:15,
from /usr/include/linux/locks.h:8,
from /usr/include/linux/devfs_fs_kernel.h:6,
from lxkscanner.h:41,
from lxkscanner.c:358:
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:277: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_read':
/usr/include/asm/pgtable.h:277: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:278: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_exec':
/usr/include/asm/pgtable.h:278: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:279: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_dirty':
/usr/include/asm/pgtable.h:279: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:280: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_young':
/usr/include/asm/pgtable.h:280: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:281: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_write':
/usr/include/asm/pgtable.h:281: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:283: error: parse error before "pte_rdprotect"
/usr/include/asm/pgtable.h:283: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_rdprotect':
/usr/include/asm/pgtable.h:283: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:284: error: parse error before "pte_exprotect"
/usr/include/asm/pgtable.h:284: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_exprotect':
/usr/include/asm/pgtable.h:284: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:285: error: parse error before "pte_mkclean"
/usr/include/asm/pgtable.h:285: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkclean':
/usr/include/asm/pgtable.h:285: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:286: error: parse error before "pte_mkold"
/usr/include/asm/pgtable.h:286: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkold':
/usr/include/asm/pgtable.h:286: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:287: error: parse error before "pte_wrprotect"
/usr/include/asm/pgtable.h:287: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_wrprotect':
/usr/include/asm/pgtable.h:287: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:288: error: parse error before "pte_mkread"
/usr/include/asm/pgtable.h:288: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkread':
/usr/include/asm/pgtable.h:288: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:289: error: parse error before "pte_mkexec"
/usr/include/asm/pgtable.h:289: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkexec':
/usr/include/asm/pgtable.h:289: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:290: error: parse error before "pte_mkdirty"
/usr/include/asm/pgtable.h:290: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkdirty':
/usr/include/asm/pgtable.h:290: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:291: error: parse error before "pte_mkyoung"
/usr/include/asm/pgtable.h:291: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkyoung':
/usr/include/asm/pgtable.h:291: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:292: error: parse error before "pte_mkwrite"
/usr/include/asm/pgtable.h:292: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkwrite':
/usr/include/asm/pgtable.h:292: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:294: error: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_test_and_clear_dirty':
/usr/include/asm/pgtable.h:294: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:295: error: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_test_and_clear_young':
/usr/include/asm/pgtable.h:295: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:296: error: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_set_wrprotect':
/usr/include/asm/pgtable.h:296: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:297: error: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_mkdirty':
/usr/include/asm/pgtable.h:297: error: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:309: error: parse error before "pte_modify"
/usr/include/asm/pgtable.h:309: error: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_modify':
/usr/include/asm/pgtable.h:311: error: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h:311: error: `PTE_MASK' undeclared (first use in this function)
/usr/include/asm/pgtable.h:312: error: `newprot' undeclared (first use in this function)

etc etc etc etc....it was too long too post here...
I need this damn printer for school stuff this weekend....
 
Old 07-02-2005, 12:01 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Do you have your kernel sources installed?

Dave
 
Old 07-02-2005, 02:08 PM   #3
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
thanks! that was it

I installed: LEXUSB-SCANNER-1.0-1 and z810llpddk-2.0-3.i386.rpm.
But still a problem...
I have a Lexmark Z815...but the printer configuration can't find the device.
And i can't find the driver in the list...
The Lexmark site has little info.
 
Old 07-02-2005, 02:23 PM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hmmm.

What are you using to configure the printer?

Dave
 
Old 07-02-2005, 02:40 PM   #5
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
System Settings > Printing

Any other ways?
My old printer was located automaticly so this is all new to me.
 
Old 07-02-2005, 02:55 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Try going to:
localhost:631
in your web browser. That's the CUPS configuration page for your machine.

You might want to try using a driver for a different Lexmark printer (try one from the same series).

Dave
 
Old 07-02-2005, 03:09 PM   #7
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
I need a username and password for Cups.
But i never set one :S
 
Old 07-02-2005, 03:15 PM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Use root and root's password.
 
Old 07-02-2005, 03:26 PM   #9
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
ok, i'm in
i guess the usb printer device is /dev/usb/lp0
Then i selected USB Printer#1...but then in the list of models/drivers still nothing, not even 1 lexmark there...
 
Old 07-02-2005, 03:35 PM   #10
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
OK.

What do you get when you run:
rpm -ql z810llpddk
 
Old 07-02-2005, 03:38 PM   #11
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
rpm -ql z810llpddk
/usr/include/lexmark-H/alignmentdata.h
/usr/include/lexmark-H/cartridgemanager.h
/usr/include/lexmark-H/cartridgeuserinterface.h
/usr/include/lexmark-H/cleaningdata.h
/usr/include/lexmark-H/clock.h
/usr/include/lexmark-H/errorcommunicator.h
/usr/include/lexmark-H/linuxinkjetprinter.h
/usr/include/lexmark-H/mediamanager.h
/usr/include/lexmark-H/portmonitor.h
/usr/include/lexmark-H/printerdevice.h
/usr/include/lexmark-H/printjobmanager.h
/usr/lib/liblexz810printer.a
/usr/lib/liblexz810printer.la
/usr/lib/liblexz810printer.so
/usr/lib/liblexz810printer.so.0
/usr/lib/liblexz810printer.so.0.0.0
/usr/lib/liblexz810printjob.a
/usr/lib/liblexz810printjob.la
/usr/lib/liblexz810printjob.so
/usr/lib/liblexz810printjob.so.0
/usr/lib/liblexz810printjob.so.0.0.0
/usr/lib/liblxbsflib.so
/usr/lib/liblxbshpec.so
/usr/lib/liblxbshpeh.so
/usr/lib/liblxbshpep.so
/usr/lib/lxbsdlfw.out
/usr/local/z810llpddk/utility/lxbsaual.out
/usr/local/z810llpddk/utility/lxbscln.out
/usr/local/z810llpddk/utility/lxbsclr1.lut
/usr/local/z810llpddk/utility/lxbsphau.out
/usr/local/z810llpddk/utility/lxbsphcl.out
 
Old 07-02-2005, 03:51 PM   #12
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Could you give me a link to the web page where you got the driver? I can't find it on the Lexmark site.
 
Old 07-02-2005, 03:55 PM   #13
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
http://www.lexmark.com/US/products/i...wnload_v2.html


thanks for your help so far
But i need to go now, lets continue tomorrow.

Thanks again!

Last edited by Cyber Maid; 07-02-2005 at 03:56 PM.
 
Old 07-02-2005, 04:04 PM   #14
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Ah.

What you have is the development kit for writing drivers. The stuff you have won't actually give you a working driver.

You might have some luck following these instructions:
http://users.netwit.net.au/~pursang/lex.html

Dave
 
Old 07-03-2005, 08:48 AM   #15
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
hello!

i tried with those drivers, but it cant detect a printer.
Since my printer wasn't detected automaticly by kudzu should i load the module manually?
USB printers are quite a pain...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MA111 USB adapter driver "make config" fail theonlydrew Linux - Wireless Networking 1 01-26-2005 10:53 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
Problem with "make" for rt8180" driver tdopko Linux - Wireless Networking 5 09-20-2004 01:17 AM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM
./MAKEDEV usb error - dont know hot to make device "usb" Zero-0-Effect Linux From Scratch 4 04-10-2004 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration