Hey, guys, I downloaded the driver and the ppd to my temp directory, tar -xvf'd it, and then tried to install. The installer ran, but after I chose option 2 it crapped out, telling me it was unable to compile the code. The GCC debug output is below. From my very rudimentary knowlege of C programming (I can barely get "Hello, World" to run!), it sort of seems like some libraries are missing from my compiler. Is this correct? And how can I correct the problem? I'm running ubuntu 6.06 LTS.
Any feedback is appreciated. I would prefer to get the thing running, so I won't have to reboot to windoze every time I want to print something.
Thanks,
Bob
GCC debug output:
gcc -O3 -DDEBUG= cZ11-V2.c -o cZ11-V2
cZ11-V2.c:80:20: error: unistd.h: No such file or directory
cZ11-V2.c:81:23: error: sys/types.h: No such file or directory
cZ11-V2.c:82:19: error: fcntl.h: No such file or directory
cZ11-V2.c:83:19: error: stdio.h: No such file or directory
cZ11-V2.c:84:20: error: stdlib.h: No such file or directory
cZ11-V2.c:85:20: error: string.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11,
from cZ11-V2.c:86:
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122:61: error: limits.h: No such file or directory
cZ11-V2.c:87:20: error: malloc.h: No such file or directory
cZ11-V2.c: In function ‘CheckForTerminate’:
cZ11-V2.c:444: error: ‘O_RDONLY’ undeclared (first use in this function)
cZ11-V2.c:444: error: (Each undeclared identifier is reported only once
cZ11-V2.c:444: error: for each function it appears in.)
cZ11-V2.c:493: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:493: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:503: error: syntax error before ‘size_t’
cZ11-V2.c: In function ‘filewrite’:
cZ11-V2.c:506: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c:510: warning: incompatible implicit declaration of built-in function ‘fwrite’
cZ11-V2.c:510: error: ‘buffer’ undeclared (first use in this function)
cZ11-V2.c:510: error: ‘size’ undeclared (first use in this function)
cZ11-V2.c:510: error: ‘count’ undeclared (first use in this function)
cZ11-V2.c:510: error: ‘stream’ undeclared (first use in this function)
cZ11-V2.c: In function ‘WidthCMYKtoBIT’:
cZ11-V2.c:616: error: ‘RAND_MAX’ undeclared (first use in this function)
cZ11-V2.c: In function ‘WidthRGBtoBIT’:
cZ11-V2.c:669: error: ‘RAND_MAX’ undeclared (first use in this function)
cZ11-V2.c: In function ‘InitDataPipe’:
cZ11-V2.c:705: warning: incompatible implicit declaration of built-in function ‘memset’
cZ11-V2.c:791: warning: incompatible implicit declaration of built-in function ‘malloc’
cZ11-V2.c: At top level:
cZ11-V2.c:809: error: syntax error before ‘FILE’
cZ11-V2.c: In function ‘ReadDataPipe’:
cZ11-V2.c:812: error: ‘p’ undeclared (first use in this function)
cZ11-V2.c:823: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c:824: error: ‘EOF’ undeclared (first use in this function)
cZ11-V2.c:840: error: ‘fDiscardContents’ undeclared (first use in this function)cZ11-V2.c:849: error: ‘fUnget’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:878: error: syntax error before ‘FILE’
cZ11-V2.c: In function ‘EndPage’:
cZ11-V2.c:880: error: ‘p’ undeclared (first use in this function)
cZ11-V2.c:880: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:894: error: syntax error before ‘FILE’
cZ11-V2.c: In function ‘IsDataPipeEmpty’:
cZ11-V2.c:896: error: ‘p’ undeclared (first use in this function)
cZ11-V2.c:896: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:905: error: syntax error before ‘FILE’
cZ11-V2.c: In function ‘GetNextLine’:
cZ11-V2.c:907: error: ‘p’ undeclared (first use in this function)
cZ11-V2.c:915: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c: In function ‘StartRndLine’:
cZ11-V2.c:963: error: ‘RAND_MAX’ undeclared (first use in this function)
cZ11-V2.c: In function ‘FinishDataPipe’:
cZ11-V2.c:1067: warning: incompatible implicit declaration of built-in function ‘memset’
cZ11-V2.c: In function ‘ClearBuffer’:
cZ11-V2.c:1081: warning: incompatible implicit declaration of built-in function ‘memset’
cZ11-V2.c: In function ‘SweepBufferInit’:
cZ11-V2.c:1097: warning: incompatible implicit declaration of built-in function ‘malloc’
cZ11-V2.c: At top level:
cZ11-V2.c:1119: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘fPutLString’:
cZ11-V2.c:1121: error: ‘data’ undeclared (first use in this function)
cZ11-V2.c:1121: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1122: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1129: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘LexMove’:
cZ11-V2.c:1135: error: ‘pixel’ undeclared (first use in this function)
cZ11-V2.c:1138: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1138: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1145: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘LexInit’:
cZ11-V2.c:1147: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1148: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1155: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘LexEOP’:
cZ11-V2.c:1162: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1162: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1252: error: syntax error before ‘FILE’
cZ11-V2.c: In function ‘PrintSweep’:
cZ11-V2.c:1264: error: ‘sweep’ undeclared (first use in this function)
cZ11-V2.c:1281: warning: incompatible implicit declaration of built-in function ‘malloc’
cZ11-V2.c:1282: warning: incompatible implicit declaration of built-in function ‘memset’
cZ11-V2.c:1302: error: ‘lineDrive’ undeclared (first use in this function)
cZ11-V2.c:1310: error: ‘emptyLines’ undeclared (first use in this function)
cZ11-V2.c:1311: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1311: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1337: error: syntax error before ‘FILE’
cZ11-V2.c: In function ‘PrintBWSweep’:
cZ11-V2.c:1344: error: ‘emptyLines’ undeclared (first use in this function)
cZ11-V2.c:1345: error: ‘sweep’ undeclared (first use in this function)
cZ11-V2.c:1345: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1345: error: ‘lineDrive’ undeclared (first use in this function)
cZ11-V2.c:1346: error: ‘termFileName’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1443: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘LexPrintCMYK’:
cZ11-V2.c:1464: error: ‘pParam’ undeclared (first use in this function)
cZ11-V2.c:1484: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c:1494: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1727: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘LexPrintK’:
cZ11-V2.c:1741: error: ‘pParam’ undeclared (first use in this function)
cZ11-V2.c:1747: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c:1757: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c: At top level:
cZ11-V2.c:1913: error: syntax error before ‘*’ token
cZ11-V2.c: In function ‘LexPrintKAdjust’:
cZ11-V2.c:1933: error: ‘out’ undeclared (first use in this function)
cZ11-V2.c:1933: error: ‘pParam’ undeclared (first use in this function)
cZ11-V2.c:2029: warning: incompatible implicit declaration of built-in function ‘sprintf’
cZ11-V2.c:2030: warning: incompatible implicit declaration of built-in function ‘strlen’
cZ11-V2.c:2089: error: ‘in’ undeclared (first use in this function)
cZ11-V2.c:2089: error: ‘EOF’ undeclared (first use in this function)
cZ11-V2.c: In function ‘DecodeOption’:
cZ11-V2.c:2130: warning: incompatible implicit declaration of built-in function ‘strlen’
cZ11-V2.c: In function ‘DecodeTerminateFile’:
cZ11-V2.c:2280: warning: incompatible implicit declaration of built-in function ‘strlen’
cZ11-V2.c:2283: warning: incompatible implicit declaration of built-in function ‘strcpy’
cZ11-V2.c: In function ‘PrintHelp’:
cZ11-V2.c:2393: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2393: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c:2398: warning: incompatible implicit declaration of built-in function ‘exit’
cZ11-V2.c: In function ‘PrintVersion’:
cZ11-V2.c:2407: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2407: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c:2408: warning: incompatible implicit declaration of built-in function ‘exit’
cZ11-V2.c: In function ‘InvalidInvokation’:
cZ11-V2.c:2418: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2418: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c: In function ‘ConflictingInvokation’:
cZ11-V2.c:2429: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2429: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c: In function ‘DuplicateInvokation’:
cZ11-V2.c:2441: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2441: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c: In function ‘IncompleteInvokation’:
cZ11-V2.c:2453: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2453: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c: In function ‘IgnoringParameter’:
cZ11-V2.c:2464: warning: incompatible implicit declaration of built-in function ‘fprintf’
cZ11-V2.c:2464: error: ‘stderr’ undeclared (first use in this function)
cZ11-V2.c: In function ‘main’:
cZ11-V2.c:2700: error: ‘FILE’ undeclared (first use in this function)
cZ11-V2.c:2700: error: ‘InputFile’ undeclared (first use in this function)
cZ11-V2.c:2701: error: ‘OutPutFile’ undeclared (first use in this function)
cZ11-V2.c:2717: error: ‘stdin’ undeclared (first use in this function)
cZ11-V2.c:2718: error: ‘stdout’ undeclared (first use in this function)
make: *** [cZ11-V2] Error 1
------------------------------------------------------------------
Logged In: NO
Hello Bob,
you need to run
sudo apt-get install build-essential
first.
(found on http://ubuntuforums.org/showthread.php?t=646370&highlight=z11\)
Regards,
Georg