cc -O -g -Wall -DLOCAL_ROOT=\"/usr/share/polipo/www/\" -DDISK_CACHE_ROOT=\"/var/cache/polipo/\" -c -o util.o util.c In file included from util.c:23: polipo.h:27:23: sys/param.h: No such file or directory polipo.h:29:20: stdlib.h: No such file or directory polipo.h:31:19: stdio.h: No such file or directory polipo.h:32:19: errno.h: No such file or directory polipo.h:33:20: string.h: No such file or directory polipo.h:34:20: assert.h: No such file or directory polipo.h:36:23: sys/types.h: No such file or directory polipo.h:37:21: sys/uio.h: No such file or directory polipo.h:38:20: unistd.h: No such file or directory polipo.h:39:19: fcntl.h: No such file or directory polipo.h:40:20: signal.h: No such file or directory polipo.h:41:22: sys/poll.h: No such file or directory polipo.h:42:22: sys/wait.h: No such file or directory polipo.h:43:18: time.h: No such file or directory polipo.h:44:22: sys/time.h: No such file or directory polipo.h:45:22: sys/stat.h: No such file or directory polipo.h:46:20: dirent.h: No such file or directory polipo.h:47:22: sys/mman.h: No such file or directory polipo.h:49:19: regex.h: No such file or directory polipo.h:51:24: sys/socket.h: No such file or directory polipo.h:52:24: netinet/in.h: No such file or directory polipo.h:53:25: netinet/tcp.h: No such file or directory polipo.h:54:23: arpa/inet.h: No such file or directory polipo.h:55:19: netdb.h: No such file or directory In file included from ftsimport.h:4, from polipo.h:156, from util.c:23: fts_compat.h:54: error: syntax error before "DIR" fts_compat.h:54: warning: no semicolon at end of struct or union fts_compat.h:59: error: syntax error before '}' token In file included from polipo.h:159, from util.c:23: util.h:65: error: syntax error before "size_t" util.h:76: error: syntax error before "mktime_gmt" util.h:76: warning: `struct tm' declared inside parameter list util.h:76: warning: its scope is only this definition or declaration, which is probably not what you want util.h:76: warning: type defaults to `int' in declaration of `mktime_gmt' util.h:76: warning: data definition has no type or storage class In file included from polipo.h:160, from util.c:23: config.h:55: error: syntax error before '*' token In file included from polipo.h:161, from util.c:23: event.h:28: error: field `time' has incomplete type event.h:44: error: syntax error before '*' token In file included from polipo.h:164, from util.c:23: object.h:59: error: syntax error before "time_t" object.h:59: warning: no semicolon at end of struct or union object.h:60: warning: type defaults to `int' in declaration of `age' object.h:60: warning: data definition has no type or storage class object.h:61: error: syntax error before "expires" object.h:61: warning: type defaults to `int' in declaration of `expires' object.h:61: warning: data definition has no type or storage class object.h:62: error: syntax error before "last_modified" object.h:62: warning: type defaults to `int' in declaration of `last_modified' object.h:62: warning: data definition has no type or storage class object.h:63: error: syntax error before "atime" object.h:63: warning: type defaults to `int' in declaration of `atime' object.h:63: warning: data definition has no type or storage class object.h:77: error: syntax error before '}' token object.h:77: warning: type defaults to `int' in declaration of `ObjectRec' object.h:77: warning: type defaults to `int' in declaration of `ObjectPtr' object.h:77: warning: data definition has no type or storage class object.h:96: error: syntax error before "time_t_max" object.h:96: warning: type defaults to `int' in declaration of `time_t_max' object.h:96: warning: data definition has no type or storage class object.h:164: error: syntax error before "findObject" object.h:164: warning: type defaults to `int' in declaration of `findObject' object.h:164: warning: data definition has no type or storage class object.h:165: error: syntax error before "makeObject" object.h:167: error: syntax error before "int" object.h:168: warning: type defaults to `int' in declaration of `makeObject' object.h:168: warning: data definition has no type or storage class object.h:169: error: syntax error before "object" object.h:170: error: syntax error before "retainObject" object.h:170: warning: type defaults to `int' in declaration of `retainObject' object.h:170: warning: parameter names (without types) in function declaration object.h:170: warning: data definition has no type or storage class object.h:171: warning: parameter names (without types) in function declaration object.h:172: error: syntax error before "object" object.h:173: error: syntax error before "int" object.h:174: error: syntax error before "int" object.h:175: error: syntax error before "object" object.h:176: error: syntax error before "object" object.h:177: error: syntax error before "object" object.h:178: warning: parameter names (without types) in function declaration object.h:179: error: syntax error before "object" object.h:180: error: `registerObjectHandler' declared as function returning a function object.h:181: error: syntax error before "int" object.h:184: warning: parameter names (without types) in function declaration object.h:185: warning: parameter names (without types) in function declaration object.h:186: error: syntax error before "objectPartial" object.h:186: error: syntax error before "object" object.h:186: warning: type defaults to `int' in declaration of `objectPartial' object.h:186: warning: data definition has no type or storage class object.h:187: error: syntax error before "object" object.h:188: error: syntax error before "object" object.h:189: error: syntax error before "object" object.h:194: error: syntax error before "object" object.h:195: error: syntax error before "object" In file included from polipo.h:166, from util.c:23: http.h:24: error: syntax error before "time_t" http.h:24: warning: no semicolon at end of struct or union http.h:25: warning: type defaults to `int' in declaration of `inms' http.h:25: warning: data definition has no type or storage class http.h:29: error: syntax error before '}' token http.h:29: warning: type defaults to `int' in declaration of `HTTPConditionRec' http.h:29: warning: type defaults to `int' in declaration of `HTTPConditionPtr' http.h:29: warning: data definition has no type or storage class http.h:33: error: syntax error before "ObjectPtr" http.h:33: warning: no semicolon at end of struct or union http.h:37: error: conflicting types for `cache_control' object.h:65: error: previous declaration of `cache_control' http.h:38: error: syntax error before "condition" http.h:38: warning: type defaults to `int' in declaration of `condition' http.h:38: warning: data definition has no type or storage class http.h:42: error: syntax error before "can_mutate" http.h:42: warning: type defaults to `int' in declaration of `can_mutate' http.h:42: warning: data definition has no type or storage class http.h:52: error: conflicting types for `next' object.h:76: error: previous declaration of `next' http.h:53: error: syntax error before '}' token http.h:53: warning: type defaults to `int' in declaration of `HTTPRequestRec' http.h:53: warning: type defaults to `int' in declaration of `HTTPRequestPtr' http.h:53: warning: data definition has no type or storage class http.h:61: error: syntax error before "HTTPRequestPtr" http.h:61: warning: no semicolon at end of struct or union http.h:62: warning: type defaults to `int' in declaration of `request_last' http.h:62: warning: data definition has no type or storage class http.h:78: error: syntax error before '}' token http.h:78: warning: type defaults to `int' in declaration of `HTTPConnectionRec' http.h:78: warning: type defaults to `int' in declaration of `HTTPConnectionPtr' http.h:78: warning: data definition has no type or storage class http.h:135: error: syntax error before "connection" http.h:137: error: syntax error before "ObjectPtr" http.h:141: error: syntax error before '*' token http.h:142: error: syntax error before "httpMakeConnection" http.h:142: warning: type defaults to `int' in declaration of `httpMakeConnection' http.h:142: warning: data definition has no type or storage class http.h:143: error: syntax error before "connection" http.h:144: error: syntax error before "httpMakeRequest" http.h:144: warning: type defaults to `int' in declaration of `httpMakeRequest' http.h:144: warning: data definition has no type or storage class http.h:145: error: syntax error before "request" http.h:146: warning: parameter names (without types) in function declaration http.h:147: error: syntax error before "httpDequeueRequest" http.h:147: error: syntax error before "connection" http.h:147: warning: type defaults to `int' in declaration of `httpDequeueRequest' http.h:147: warning: data definition has no type or storage class http.h:148: error: syntax error before "httpMakeCondition" http.h:148: warning: type defaults to `int' in declaration of `httpMakeCondition' http.h:148: warning: data definition has no type or storage class http.h:149: error: syntax error before "condition" http.h:150: warning: parameter names (without types) in function declaration In file included from polipo.h:167, from util.c:23: client.h:24: error: syntax error before "connection" client.h:26: error: syntax error before "int" client.h:27: error: syntax error before "int" client.h:28: error: syntax error before "int" client.h:30: error: syntax error before "int" client.h:40: error: syntax error before "request" client.h:41: error: syntax error before "connection" client.h:46: error: syntax error before "HTTPConnectionPtr" client.h:47: error: syntax error before "request" client.h:48: warning: parameter names (without types) in function declaration client.h:49: error: syntax error before "connection" client.h:57: error: syntax error before "request" In file included from polipo.h:168, from util.c:23: local.h:24: error: syntax error before "ObjectPtr" local.h:24: warning: no semicolon at end of struct or union local.h:28: error: syntax error before "pid" local.h:28: warning: type defaults to `int' in declaration of `pid' local.h:28: warning: data definition has no type or storage class local.h:29: warning: type defaults to `int' in declaration of `SpecialRequestRec' local.h:29: warning: type defaults to `int' in declaration of `SpecialRequestPtr' local.h:29: warning: data definition has no type or storage class local.h:32: error: syntax error before "object" local.h:34: error: syntax error before "object" In file included from polipo.h:169, from util.c:23: diskcache.h:30: error: syntax error before "ObjectPtr" diskcache.h:30: warning: no semicolon at end of struct or union diskcache.h:32: error: syntax error before "offset" diskcache.h:32: warning: type defaults to `int' in declaration of `offset' diskcache.h:32: warning: data definition has no type or storage class diskcache.h:33: error: syntax error before "size" diskcache.h:33: warning: type defaults to `int' in declaration of `size' diskcache.h:33: warning: data definition has no type or storage class diskcache.h:38: error: conflicting types for `next' http.h:52: error: previous declaration of `next' diskcache.h:39: error: conflicting types for `previous' object.h:76: error: previous declaration of `previous' diskcache.h:40: error: syntax error before '}' token diskcache.h:40: warning: type defaults to `int' in declaration of `DiskCacheEntryPtr' diskcache.h:40: warning: type defaults to `int' in declaration of `DiskCacheEntryRec' diskcache.h:40: warning: data definition has no type or storage class diskcache.h:48: error: syntax error before "time_t" diskcache.h:48: warning: no semicolon at end of struct or union diskcache.h:49: warning: type defaults to `int' in declaration of `access' diskcache.h:49: warning: data definition has no type or storage class diskcache.h:50: error: syntax error before "date" diskcache.h:50: warning: type defaults to `int' in declaration of `date' diskcache.h:50: warning: data definition has no type or storage class diskcache.h:51: error: syntax error before "last_modified" diskcache.h:51: warning: type defaults to `int' in declaration of `last_modified' diskcache.h:51: warning: data definition has no type or storage class diskcache.h:52: error: syntax error before "expires" diskcache.h:52: warning: type defaults to `int' in declaration of `expires' diskcache.h:52: warning: data definition has no type or storage class diskcache.h:53: error: conflicting types for `next' diskcache.h:38: error: previous declaration of `next' diskcache.h:54: error: syntax error before '}' token diskcache.h:54: warning: type defaults to `int' in declaration of `DiskObjectRec' diskcache.h:54: warning: type defaults to `int' in declaration of `DiskObjectPtr' diskcache.h:54: warning: data definition has no type or storage class diskcache.h:60: error: syntax error before "object" diskcache.h:61: error: syntax error before "objectGetFromDisk" diskcache.h:61: warning: type defaults to `int' in declaration of `objectGetFromDisk' diskcache.h:61: warning: parameter names (without types) in function declaration diskcache.h:61: warning: data definition has no type or storage class diskcache.h:62: error: syntax error before "object" diskcache.h:63: error: syntax error before "object" diskcache.h:64: error: syntax error before "object" diskcache.h:65: error: syntax error before "object" diskcache.h:66: error: syntax error before "object" diskcache.h:67: error: syntax error before "readDiskObject" diskcache.h:67: warning: type defaults to `int' in declaration of `readDiskObject' diskcache.h:67: warning: data definition has no type or storage class In file included from polipo.h:170, from util.c:23: server.h:36: error: syntax error before "time_t" server.h:36: warning: no semicolon at end of struct or union server.h:39: error: syntax error before '*' token server.h:39: warning: type defaults to `int' in declaration of `connection' server.h:39: warning: data definition has no type or storage class server.h:41: error: syntax error before "request" server.h:41: warning: type defaults to `int' in declaration of `request' server.h:41: error: conflicting types for `request' http.h:51: error: previous declaration of `request' server.h:41: warning: type defaults to `int' in declaration of `request_last' server.h:41: warning: data definition has no type or storage class server.h:42: error: conflicting types for `next' diskcache.h:53: error: previous declaration of `next' server.h:43: error: syntax error before '}' token server.h:43: warning: type defaults to `int' in declaration of `HTTPServerRec' server.h:43: warning: type defaults to `int' in declaration of `HTTPServerPtr' server.h:43: warning: data definition has no type or storage class server.h:48: error: syntax error before "object" server.h:49: error: syntax error before "ObjectPtr" server.h:52: error: syntax error before "server" server.h:53: error: syntax error before "server" server.h:54: error: syntax error before "server" server.h:55: error: syntax error before "connection" server.h:67: error: syntax error before "connection" server.h:69: error: syntax error before "connection" server.h:70: error: syntax error before "connection" server.h:71: error: syntax error before "request" server.h:72: error: syntax error before "request" server.h:73: error: syntax error before "request" server.h:75: error: syntax error before "connection" server.h:96: error: syntax error before "object" server.h:101: error: syntax error before "HTTPConnectionPtr" server.h:102: error: syntax error before "int" server.h:103: error: syntax error before "connection" server.h:105: error: syntax error before "connection" In file included from polipo.h:171, from util.c:23: http_parse.h:44: error: syntax error before "HTTPRequestPtr" In file included from polipo.h:172, from util.c:23: parse_time.h:24: error: syntax error before "time_t_max" parse_time.h:24: warning: type defaults to `int' in declaration of `time_t_max' parse_time.h:24: warning: data definition has no type or storage class parse_time.h:26: error: syntax error before "time_t" parse_time.h:27: error: syntax error before "time_t" In file included from polipo.h:174, from util.c:23: log.h:49: error: syntax error before '*' token log.h:49: warning: type defaults to `int' in declaration of `logF' log.h:49: warning: data definition has no type or storage class util.c: In function `strdup_n': util.c:30: warning: implicit declaration of function `malloc' util.c:30: warning: assignment makes pointer from integer without a cast util.c:31: error: `NULL' undeclared (first use in this function) util.c:31: error: (Each undeclared identifier is reported only once util.c:31: error: for each function it appears in.) util.c:33: warning: implicit declaration of function `memcpy' util.c: In function `snnprintf': util.c:46: warning: implicit declaration of function `vsnprintf' util.c: At top level: util.c:187: error: syntax error before "size_t" util.c: In function `memrchr': util.c:189: error: `s' undeclared (first use in this function) util.c:190: error: `c' undeclared (first use in this function) util.c:191: error: `size_t' undeclared (first use in this function) util.c:191: error: syntax error before "i" util.c:192: error: `i' undeclared (first use in this function) util.c:192: error: `n' undeclared (first use in this function) util.c:195: error: `NULL' undeclared (first use in this function) util.c: In function `log2_floor': util.c:218: warning: implicit declaration of function `assert' util.c: In function `vsprintf_a': util.c:276: warning: assignment makes pointer from integer without a cast util.c:278: error: `NULL' undeclared (first use in this function) util.c:286: warning: implicit declaration of function `free' util.c: In function `pstrerror': util.c:338: error: `NULL' undeclared (first use in this function) util.c:340: warning: implicit declaration of function `strerror' util.c:340: warning: assignment makes pointer from integer without a cast util.c: At top level: util.c:389: error: syntax error before "mktime_gmt" util.c:389: warning: `struct tm' declared inside parameter list util.c:390: warning: return type defaults to `int' util.c:390: error: conflicting types for `mktime_gmt' util.h:76: error: previous declaration of `mktime_gmt' util.c: In function `mktime_gmt': util.c:391: error: `time_t' undeclared (first use in this function) util.c:391: error: syntax error before "t" util.c:393: error: `NULL' undeclared (first use in this function) util.c:395: warning: implicit declaration of function `getenv' util.c:395: warning: assignment makes pointer from integer without a cast util.c:396: warning: implicit declaration of function `putenv' util.c:397: warning: implicit declaration of function `tzset' util.c:398: error: `t' undeclared (first use in this function) util.c:398: warning: implicit declaration of function `mktime' util.c:404: warning: implicit declaration of function `strdup' util.c:404: warning: assignment makes pointer from integer without a cast util.c: In function `expandTilde': util.c:424: error: `NULL' undeclared (first use in this function) util.c:428: warning: assignment makes pointer from integer without a cast util.c:433: warning: implicit declaration of function `strlen' util.c:434: warning: assignment makes pointer from integer without a cast util.c: In function `do_daemonise': util.c:457: warning: implicit declaration of function `fflush' util.c:457: error: `stdout' undeclared (first use in this function) util.c:458: error: `stderr' undeclared (first use in this function) util.c:460: warning: implicit declaration of function `fork' util.c:462: error: `errno' undeclared (first use in this function) util.c:463: warning: implicit declaration of function `exit' util.c:470: warning: implicit declaration of function `close' util.c:474: warning: implicit declaration of function `setsid' util.c: In function `writePid': util.c:487: warning: implicit declaration of function `open' util.c:487: error: `O_WRONLY' undeclared (first use in this function) util.c:487: error: `O_CREAT' undeclared (first use in this function) util.c:487: error: `O_EXCL' undeclared (first use in this function) util.c:489: error: `errno' undeclared (first use in this function) util.c:493: warning: implicit declaration of function `snprintf' util.c:493: warning: implicit declaration of function `getpid' util.c:496: warning: implicit declaration of function `unlink' util.c:500: warning: implicit declaration of function `write' util.c: In function `b64cmp': util.c:555: warning: assignment makes pointer from integer without a cast util.c:556: error: `NULL' undeclared (first use in this function) util.c:559: warning: implicit declaration of function `memcmp' util.c: In function `makeIntList': util.c:571: warning: assignment makes pointer from integer without a cast util.c:572: error: `NULL' undeclared (first use in this function) util.c:575: warning: assignment makes pointer from integer without a cast util.c: In function `deleteRange': util.c:615: warning: implicit declaration of function `memmove' util.c: In function `insertRange': util.c:631: warning: implicit declaration of function `realloc' util.c:631: warning: initialization makes pointer from integer without a cast util.c:632: error: `NULL' undeclared (first use in this function) util.c: At top level: fts_compat.h:57: error: storage size of `stat' isn't known http.h:50: error: storage size of `time0' isn't known http.h:50: error: storage size of `time1' isn't known make: *** [util.o] Error 1