Rexxenexx 0 Posted January 27, 2007 when I type sh server-1.96.shar I get this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Operation Flashpoint Resistance dedicated server 1.96 x - creating lock directory x - extracting server (binary) x - extracting ofpserver (binary) x - extracting tolower.c (binary) x - extracting readme.txt (binary) Converting OFP directory: tolower.c:11:19: error: stdio.h: No such file or directory tolower.c:12:20: error: stdlib.h: No such file or directory tolower.c:13:23: error: sys/types.h: No such file or directory tolower.c:14:22: error: sys/stat.h: No such file or directory tolower.c:15:20: error: dirent.h: No such file or directory tolower.c:16:20: error: unistd.h: No such file or directory tolower.c:17:20: error: string.h: No such file or directory tolower.c:18:19: error: ctype.h: No such file or directory tolower.c: In function ‘convertDirectory’: tolower.c:25: error: ‘DIR’ undeclared (first use in this function) tolower.c:25: error: (Each undeclared identifier is reported only once tolower.c:25: error: for each function it appears in.) tolower.c:25: error: ‘dir’ undeclared (first use in this function) tolower.c:29: error: storage size of ‘st’ isn’t known tolower.c:34: warning: incompatible implicit declaration of built-in function ‘strcpy’ tolower.c:35: warning: incompatible implicit declaration of built-in function ‘strlen’ tolower.c:39: warning: assignment makes pointer from integer without a cast tolower.c:40: error: dereferencing pointer to incomplete type tolower.c:41: error: dereferencing pointer to incomplete type tolower.c:42: error: dereferencing pointer to incomplete type tolower.c:43: error: dereferencing pointer to incomplete type tolower.c:46: error: dereferencing pointer to incomplete type tolower.c:58: error: ‘S_IWUSR’ undeclared (first use in this function) tolower.c:68: warning: incompatible implicit declaration of built-in function ‘printf’ tolower.c:79: warning: incompatible implicit declaration of built-in function ‘printf’ tolower.c: In function ‘main’: tolower.c:93: warning: incompatible implicit declaration of built-in function ‘printf’ server-1.96.shar: line 152005: ./tolower: No such file or directory This is on a new install of Ubuntu 6.06 with gcc and sharutils installed. It looks like the first set of errors are commented out in the file "tolower", why they parse is beyond me. Any ideas? Share this post Link to post Share on other sites
HitmanFF 6 Posted January 27, 2007 when I type sh server-1.96.shar I get this:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">tolower.c:11:19: error: stdio.h: No such file or directory tolower.c:12:20: error: stdlib.h: No such file or directory tolower.c:13:23: error: sys/types.h: No such file or directory tolower.c:14:22: error: sys/stat.h: No such file or directory tolower.c:15:20: error: dirent.h: No such file or directory tolower.c:16:20: error: unistd.h: No such file or directory tolower.c:17:20: error: string.h: No such file or directory tolower.c:18:19: error: ctype.h: No such file or directory Looks like your system is lacking header files. I can't verify right now, but with Ubuntu I think the package is build-essential. So <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">apt-get install build-essentialshould solve it for you Share this post Link to post Share on other sites
Rexxenexx 0 Posted January 27, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Operation Flashpoint Resistance dedicated server 1.96 x - creating lock directory x - extracting server (binary) x - extracting ofpserver (binary) x - extracting tolower.c (binary) x - extracting readme.txt (binary) Converting OFP directory: 597 file-names were converted WHA!! You're genius!! Thanks Hitman! One last run with OFP coop missions until next month!! So for anyone w/ Ubuntu install 3 things first (gcc, sharutils-for uudecode-, and build-essential) Share this post Link to post Share on other sites