LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-02-2007, 01:03 PM   #1
salvadorsing
LQ Newbie
 
Registered: Mar 2007
Location: Kuching
Distribution: Ubuntu 7.04
Posts: 17

Rep: Reputation: 0
Unhappy HP1020 printer not working on my ubuntu


I just installed my new ubuntu 7.04 feisty fawn. It detected my printer correctly. but it just cant print. when i clicked print test page, but nothing happened(the printer). It seems that the printer isn't receiving anything from the comp.
I experiment printing different docs. same. downloaded the foo2zjs. tried installing it but got errors like this.

cc -c -o foo2zjs.o foo2zjs.c
foo2zjs.c:56:19: error: stdio.h: No such file or directory
foo2zjs.c:57:20: error: stdlib.h: No such file or directory
foo2zjs.c:58:19: error: ctype.h: No such file or directory
foo2zjs.c:59:20: error: string.h: No such file or directory
foo2zjs.c:60:20: error: unistd.h: No such file or directory
In file included from foo2zjs.c:63:
zjs.h:9:22: error: inttypes.h: No such file or directory
In file included from foo2zjs.c:63:
zjs.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DWORD’
zjs.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘WORD’
zjs.h:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘BYTE’
zjs.h:29: error: expected specifier-qualifier-list before ‘DWORD’
zjs.h:227: error: expected specifier-qualifier-list before ‘DWORD’
zjs.h:235: error: expected specifier-qualifier-list before ‘DWORD’
zjs.h:240: error: expected specifier-qualifier-list before ‘int32_t’
zjs.h:244: error: ‘uint32_t’ undeclared here (not in a function)
zjs.h:245: error: expected specifier-qualifier-list before ‘uint32_t’
zjs.h:249: error: ‘uint16_t’ undeclared here (not in a function)
zjs.h:250: error: expected specifier-qualifier-list before ‘uint16_t’
zjs.h:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘be32’
zjs.h:272: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘be16’
foo2zjs.c: In function ‘usage’:
foo2zjs.c:104: warning: incompatible implicit declaration of built-in function ‘fprintf’
foo2zjs.c:104: error: ‘stderr’ undeclared (first use in this function)
foo2zjs.c:104: error: (Each undeclared identifier is reported only once
foo2zjs.c:104: error: for each function it appears in.)
foo2zjs.c:181: warning: incompatible implicit declaration of built-in function ‘exit’
foo2zjs.c: In function ‘debug’:
foo2zjs.c:279: error: ‘stderr’ undeclared (first use in this function)
foo2zjs.c: In function ‘error’:
foo2zjs.c:289: error: ‘stderr’ undeclared (first use in this function)
foo2zjs.c:293: warning: incompatible implicit declaration of built-in function ‘exit’
foo2zjs.c: At top level:
foo2zjs.c:298: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘chunk_write’:
foo2zjs.c:302: error: ‘ZJ_HEADER’ has no member named ‘type’
foo2zjs.c:303: error: ‘ZJ_HEADER’ has no member named ‘items’
foo2zjs.c:304: error: ‘ZJ_HEADER’ has no member named ‘size’
foo2zjs.c:305: error: ‘ZJ_HEADER’ has no member named ‘reserved’
foo2zjs.c:306: error: ‘ZJ_HEADER’ has no member named ‘signature’
foo2zjs.c:307: warning: incompatible implicit declaration of built-in function ‘fwrite’
foo2zjs.c:307: error: ‘fp’ undeclared (first use in this function)
foo2zjs.c: At top level:
foo2zjs.c:311: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘item_uint32_write’:
foo2zjs.c:315: error: ‘ZJ_ITEM_HEADER’ has no member named ‘size’
foo2zjs.c:316: error: ‘ZJ_ITEM_HEADER’ has no member named ‘item’
foo2zjs.c:317: error: ‘ZJ_ITEM_HEADER’ has no member named ‘type’
foo2zjs.c:318: error: ‘ZJ_ITEM_HEADER’ has no member named ‘param’
foo2zjs.c:319: error: ‘ZJ_ITEM_UINT32’ has no member named ‘value’
foo2zjs.c:320: warning: incompatible implicit declaration of built-in function ‘fwrite’
foo2zjs.c:320: error: ‘fp’ undeclared (first use in this function)
foo2zjs.c: At top level:
foo2zjs.c:324: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘item_str_write’:
foo2zjs.c:329: warning: incompatible implicit declaration of built-in function ‘strlen’
foo2zjs.c:331: error: ‘ZJ_ITEM_HEADER’ has no member named ‘size’
foo2zjs.c:332: error: ‘ZJ_ITEM_HEADER’ has no member named ‘item’
foo2zjs.c:333: error: ‘ZJ_ITEM_HEADER’ has no member named ‘type’
foo2zjs.c:334: error: ‘ZJ_ITEM_HEADER’ has no member named ‘param’
foo2zjs.c:335: error: ‘fp’ undeclared (first use in this function)
foo2zjs.c:337: warning: incompatible implicit declaration of built-in function ‘fwrite’
foo2zjs.c: At top level:
foo2zjs.c:367: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘write_plane’:
foo2zjs.c:374: warning: incompatible implicit declaration of built-in function ‘fprintf’
foo2zjs.c:374: error: ‘stderr’ undeclared (first use in this function)
foo2zjs.c:386: error: ‘fp’ undeclared (first use in this function)
foo2zjs.c:386: error: too many arguments to function ‘chunk_write’
foo2zjs.c:387: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:394: error: too many arguments to function ‘chunk_write’
foo2zjs.c:395: warning: incompatible implicit declaration of built-in function ‘fwrite’
foo2zjs.c:405: error: too many arguments to function ‘chunk_write’
foo2zjs.c:406: warning: incompatible implicit declaration of built-in function ‘fwrite’
foo2zjs.c:414: error: too many arguments to function ‘chunk_write’
foo2zjs.c:416: error: too many arguments to function ‘chunk_write’
foo2zjs.c: At top level:
foo2zjs.c:421: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘start_page’:
foo2zjs.c:451: error: ‘ofp’ undeclared (first use in this function)
foo2zjs.c:451: error: too many arguments to function ‘chunk_write’
foo2zjs.c:452: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:453: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:454: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:455: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:456: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:457: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:458: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:459: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:460: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:461: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:462: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:463: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:465: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:467: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c:469: error: too many arguments to function ‘item_uint32_write’
foo2zjs.c: At top level:
foo2zjs.c:474: error: expected ‘)’ before ‘*’ token
foo2zjs.c:481: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘write_page’:
foo2zjs.c:485: error: ‘ofp’ undeclared (first use in this function)
foo2zjs.c:485: error: too many arguments to function ‘start_page’
foo2zjs.c:488: error: too many arguments to function ‘write_plane’
foo2zjs.c:490: error: too many arguments to function ‘write_plane’
foo2zjs.c:494: error: too many arguments to function ‘write_plane’
foo2zjs.c:496: error: too many arguments to function ‘write_plane’
foo2zjs.c:499: error: too many arguments to function ‘write_plane’
foo2zjs.c: In function ‘output_jbig’:
foo2zjs.c:518: warning: incompatible implicit declaration of built-in function ‘malloc’
foo2zjs.c:540: warning: incompatible implicit declaration of built-in function ‘malloc’
foo2zjs.c:547: warning: incompatible implicit declaration of built-in function ‘memcpy’
foo2zjs.c:554: warning: incompatible implicit declaration of built-in function ‘malloc’
foo2zjs.c: At top level:
foo2zjs.c:566: error: expected ‘)’ before ‘*’ token
foo2zjs.c:602: error: expected ‘)’ before ‘*’ token
foo2zjs.c: In function ‘cmyk_planes’:
foo2zjs.c:628: warning: incompatible implicit declaration of built-in function ‘memset’
foo2zjs.c: At top level:
foo2zjs.c:711: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘cmyk_page’:
foo2zjs.c:721: warning: incompatible implicit declaration of built-in function ‘malloc’
foo2zjs.c:731: error: ‘FILE’ undeclared (first use in this function)
foo2zjs.c:731: error: ‘dfp’ undeclared (first use in this function)
foo2zjs.c:733: warning: incompatible implicit declaration of built-in function ‘sprintf’
foo2zjs.c:737: warning: incompatible implicit declaration of built-in function ‘fwrite’
foo2zjs.c:752: error: ‘ofp’ undeclared (first use in this function)
foo2zjs.c:752: error: too many arguments to function ‘write_page’
foo2zjs.c:754: error: too many arguments to function ‘write_page’
foo2zjs.c:756: error: too many arguments to function ‘write_page’
foo2zjs.c: At top level:
foo2zjs.c:764: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘pksm_page’:
foo2zjs.c:786: error: ‘ofp’ undeclared (first use in this function)
foo2zjs.c:786: error: too many arguments to function ‘write_page’
foo2zjs.c:788: error: too many arguments to function ‘write_page’
foo2zjs.c:790: error: too many arguments to function ‘write_page’
foo2zjs.c: At top level:
foo2zjs.c:796: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘pbm_page’:
foo2zjs.c:810: error: ‘ofp’ undeclared (first use in this function)
foo2zjs.c:810: error: too many arguments to function ‘write_page’
foo2zjs.c: At top level:
foo2zjs.c:818: error: expected declaration specifiers or ‘...’ before ‘FILE’
foo2zjs.c: In function ‘read_and_clip_image’:
foo2zjs.c:824: warning: incompatible implicit declaration of built-in function ‘malloc’
foo2zjs.c:833: error: ‘ifp’ undeclared (first use in this function)
foo2zjs.c:886: error: ‘EOF’ undeclared (first use in this function)
foo2zjs.c: At top level:
foo2zjs.c:890: error: expected ‘)’ before ‘*’ token
foo2zjs.c:947: error: expected ‘)’ before ‘*’ token
foo2zjs.c:964: error: expected ‘)’ before ‘*’ token
foo2zjs.c:978: error: expected ‘)’ before ‘*’ token
foo2zjs.c:1003: error: expected ‘)’ before ‘*’ token
foo2zjs.c:1120: error: expected ‘)’ before ‘*’ token
foo2zjs.c:1195: error: expected ‘)’ before ‘*’ token
foo2zjs.c: In function ‘main’:
foo2zjs.c:1235: error: ‘EOF’ undeclared (first use in this function)
foo2zjs.c:1239: error: ‘optarg’ undeclared (first use in this function)
foo2zjs.c:1282: warning: incompatible implicit declaration of built-in function ‘printf’
foo2zjs.c:1282: warning: incompatible implicit declaration of built-in function ‘exit’
foo2zjs.c:1295: error: ‘optind’ undeclared (first use in this function)
foo2zjs.c:1298: error: ‘stdout’ undeclared (first use in this function)
foo2zjs.c:1302: error: ‘stdin’ undeclared (first use in this function)
foo2zjs.c:1310: error: ‘FILE’ undeclared (first use in this function)
foo2zjs.c:1310: error: ‘ifp’ undeclared (first use in this function)
foo2zjs.c:1320: warning: incompatible implicit declaration of built-in function ‘exit’
make: *** [foo2zjs.o] Error 1

wat does this mean? Why is it using Hp on ubuntu so hard? Din experience any trouble on mandriva 2007.

Please advise...
 
Old 05-02-2007, 07:18 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 63
I am guessing this is a laserjet. If so check out this site and search under the printer tab for the printer to see any notes or perferred drivers.
http://www.linux-foundation.org/en/O...SDocumentation

Also might look in the HCL section here at the top or to the right of this page.

Brian
 
Old 05-02-2007, 08:30 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
I promise you that Ubuntu has drivers for the 1020 ( I have a 1022, and every distro I have tried works fine)
If that promise does not work, then I REALLY promise that you don't need to be compiling a driver.

Just for kicks, are you running thru a USB router? My 1022 will not run with anything but a direct USB2 connection. I forget if this is in the docs or I found it with Google.

By the way, please don't post these long error messages---the first few lines told the whole story.
 
Old 05-02-2007, 09:54 PM   #4
salvadorsing
LQ Newbie
 
Registered: Mar 2007
Location: Kuching
Distribution: Ubuntu 7.04
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany
I promise you that Ubuntu has drivers for the 1020 ( I have a 1022, and every distro I have tried works fine)
If that promise does not work, then I REALLY promise that you don't need to be compiling a driver.

Just for kicks, are you running thru a USB router? My 1022 will not run with anything but a direct USB2 connection. I forget if this is in the docs or I found it with Google.

By the way, please don't post these long error messages---the first few lines told the whole story.
1st my printer were plugged into my usb hub. din work so i switch it to directly plugged into the usb port. nothing different happened.
 
Old 05-03-2007, 07:18 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
Have you tried installing the printer manually? (i.e. delete whatever queue is there and re-install)
I just noted that my system (Mepis6--based on Ubuntu) has a 1020 driver under "HP", and then the 1020-foo2zjs driver under "Hewlett-Packard".

Also, please confirm that you have USB2
 
Old 05-03-2007, 09:38 AM   #6
salvadorsing
LQ Newbie
 
Registered: Mar 2007
Location: Kuching
Distribution: Ubuntu 7.04
Posts: 17

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by pixellany
Have you tried installing the printer manually? (i.e. delete whatever queue is there and re-install)
I just noted that my system (Mepis6--based on Ubuntu) has a 1020 driver under "HP", and then the 1020-foo2zjs driver under "Hewlett-Packard".

Also, please confirm that you have USB2
wat do u mean usb2 = usb 2.0? yes or something else?

first, not familiar with the commands, then long filenames...can they just compile it in one installer, and let you select. i thought ubuntu is the best distro? why did they overlooked this small bug?? come on for how many version already? the same problem? or just me? hehe. luckily there's lots of forums. hehe

How do i do all these. that 1st error msg are when i tried reinstalling with the downloaded driver. please advise me step by step. i would certainly apreciate it, i'm still new to linux.
 
Old 05-03-2007, 12:26 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
Quote:
Originally Posted by salvadorsing
wat do u mean usb2 = usb 2.0? yes or something else?
Yes USB 2.0
Quote:
Originally Posted by salvadorsing
first, not familiar with the commands, then long filenames...can they just compile it in one installer, and let you select. i thought ubuntu is the best distro? why did they overlooked this small bug?? come on for how many version already?
.
I don't know what you are saying here. how does this relate to what I suggested?
Again, I do not believe you will need to compile a driver.
 
Old 05-03-2007, 02:13 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
Quote:
Originally Posted by pixellany
Have you tried installing the printer manually? (i.e. delete whatever queue is there and re-install)
I just noted that my system (Mepis6--based on Ubuntu) has a 1020 driver under "HP", and then the 1020-foo2zjs driver under "Hewlett-Packard".

Also, please confirm that you have USB2
I just checked my (K)Ubuntu 6.06 system at the office and it offers the same options for the HP 1020
 
Old 05-24-2007, 08:43 AM   #9
salvadorsing
LQ Newbie
 
Registered: Mar 2007
Location: Kuching
Distribution: Ubuntu 7.04
Posts: 17

Original Poster
Rep: Reputation: 0
nothing worked. but after tried reinstalling with the synaptic manager. when i test print, it started blinking, but nothing happened. heard about ubuntu trying to develop something like printerdrak to replace cups. looking forward to that, cos, my hp1020 works on mandriva.
 
  


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
Brother DCP-110C Printer not working on Ubuntu Feisty Cheater Linux - Hardware 20 08-22-2007 05:08 AM
Fedora 6 - HP1020 not working Marineman Linux - Hardware 12 05-17-2007 10:31 PM
Ubuntu and HP printer JoeO Linux - Desktop 16 08-30-2006 09:29 AM
HP1020 switches itself off esteeven Linux - Hardware 1 06-24-2006 04:48 PM
LXer: Printing with Ubuntu: Insights for a quick and easy Ubuntu printer installation LXer Syndicated Linux News 0 06-03-2006 09:54 AM

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

All times are GMT -5. The time now is 03:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration