Hi,

I am trying to compile the "mod_WebObjects.c" source for building the WOAdaptor, environment is Solaris 10 using Apache 2.2.64 version, but getting the following error:
---------------------------------------------------------------------------------------------
bash-3.00# gcc mod_WebObjects.c
mod_WebObjects.c:47:20: config.h: No such file or directory
mod_WebObjects.c:48:22: womalloc.h: No such file or directory
mod_WebObjects.c:49:21: request.h: No such file or directory
mod_WebObjects.c:50:22: response.h: No such file or directory
mod_WebObjects.c:51:17: log.h: No such file or directory
mod_WebObjects.c:52:25: transaction.h: No such file or directory
mod_WebObjects.c:53:20: appcfg.h: No such file or directory
mod_WebObjects.c:54:31: MoreURLCUtilities.h: No such file or directory
mod_WebObjects.c:55:21: listing.h: No such file or directory
mod_WebObjects.c:56:20: errors.h: No such file or directory
mod_WebObjects.c:57:24: httperrors.h: No such file or directory
mod_WebObjects.c:67:19: httpd.h: No such file or directory
mod_WebObjects.c:68:25: http_config.h: No such file or directory
mod_WebObjects.c:69:26: http_request.h: No such file or directory
mod_WebObjects.c:70:22: http_log.h: No such file or directory
mod_WebObjects.c:71:23: http_main.h: No such file or directory
mod_WebObjects.c:72:64: http_core.h: No such file or directory
mod_WebObjects.c:73:27: http_protocol.h: No such file or directory
mod_WebObjects.c:77:17: apr.h: No such file or directory
mod_WebObjects.c:78:23: ap_compat.h: No such file or directory
mod_WebObjects.c:79:25: apr_strings.h: No such file or directory
mod_WebObjects.c:80:24: apr_tables.h: No such file or directory
mod_WebObjects.c:104: error: syntax error before '*' token
mod_WebObjects.c:104: warning: data definition has no type or storage class mod_WebObjects.c:114: error: syntax error before "AP_MODULE_DECLARE_DATA" mod_WebObjects.c:114: warning: data definition has no type or storage class
mod_WebObjects.c:122: error: syntax error before "strtbl"
mod_WebObjects.c:122: warning: no semicolon at end of struct or union
mod_WebObjects.c:123: warning: data definition has no type or storage class
mod_WebObjects.c:196: error: syntax error before '*' token
mod_WebObjects.c: In function `setDocroot':
mod_WebObjects.c:199: error: `s_cfg' undeclared (first use in this function) mod_WebObjects.c:199: error: (Each undeclared identifier is reported only once
mod_WebObjects.c:199: error: for each function it appears in.)
mod_WebObjects.c:199: error: `cmd' undeclared (first use in this function) mod_WebObjects.c:202: error: `value' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:211: error: syntax error before '*' token
mod_WebObjects.c: In function `setScriptAlias':
mod_WebObjects.c:214: error: `s_cfg' undeclared (first use in this function) mod_WebObjects.c:214: error: `cmd' undeclared (first use in this function) mod_WebObjects.c:217: error: `value' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:223: error: syntax error before '*' token
mod_WebObjects.c: In function `setOption':
mod_WebObjects.c:226: error: `wc' undeclared (first use in this function) mod_WebObjects.c:226: error: `cmd' undeclared (first use in this function) mod_WebObjects.c:229: error: `value' undeclared (first use in this function) mod_WebObjects.c:229: error: `STR_COPYKEY' undeclared (first use in this function) mod_WebObjects.c:229: error: `STR_COPYVALUE' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:236: error: syntax error before '*' token
mod_WebObjects.c: In function `setOption2':
mod_WebObjects.c:240: error: `wc' undeclared (first use in this function) mod_WebObjects.c:240: error: `cmd' undeclared (first use in this function) mod_WebObjects.c:247: error: `v1' undeclared (first use in this function) mod_WebObjects.c:247: error: `STR_COPYKEY' undeclared (first use in this function) mod_WebObjects.c:247: error: `STR_COPYVALUE' undeclared (first use in this function) mod_WebObjects.c:248: error: `v2' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:253: error: syntax error before '*' token
mod_WebObjects.c: In function `setOption3':
mod_WebObjects.c:257: error: `wc' undeclared (first use in this function) mod_WebObjects.c:257: error: `cmd' undeclared (first use in this function) mod_WebObjects.c:266: error: `v1' undeclared (first use in this function) mod_WebObjects.c:266: error: `STR_COPYKEY' undeclared (first use in this function) mod_WebObjects.c:266: error: `STR_COPYVALUE' undeclared (first use in this function) mod_WebObjects.c:267: error: `v2' undeclared (first use in this function) mod_WebObjects.c:268: error: `v3' undeclared (first use in this function)
mod_WebObjects.c: In function `copyTableEntries':
mod_WebObjects.c:279: error: `HTTPRequest' undeclared (first use in this function)
mod_WebObjects.c:279: error: syntax error before ')' token
mod_WebObjects.c: At top level:
mod_WebObjects.c:287: error: syntax error before '*' token
mod_WebObjects.c: In function `copyHeaders':
mod_WebObjects.c:288: error: `server_rec' undeclared (first use in this function)
mod_WebObjects.c:288: error: `s' undeclared (first use in this function)
mod_WebObjects.c:288: error: `r' undeclared (first use in this function)
mod_WebObjects.c:289: error: `conn_rec' undeclared (first use in this function)
mod_WebObjects.c:289: error: `c' undeclared (first use in this function)
mod_WebObjects.c:290: error: `apr_table_t' undeclared (first use in this function) mod_WebObjects.c:290: error: `hdrs' undeclared (first use in this function) mod_WebObjects.c:293: error: `proc_env' undeclared (first use in this function) mod_WebObjects.c:301: error: `req' undeclared (first use in this function) mod_WebObjects.c:363: error: `STR_FREEVALUE' undeclared (first use in this function) mod_WebObjects.c:367: error: `REMOTE_NAME' undeclared (first use in this function)
mod_WebObjects.c: In function `gethdr':
mod_WebObjects.c:411: error: `request_rec' undeclared (first use in this function)
mod_WebObjects.c:411: error: `r' undeclared (first use in this function)
mod_WebObjects.c:411: error: syntax error before ')' token
mod_WebObjects.c:413: error: `CONTENT_TYPE' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:421: error: syntax error before '*' token
mod_WebObjects.c: In function `sendResponse':
mod_WebObjects.c:427: error: `resp' undeclared (first use in this function)
mod_WebObjects.c:427: error: `r' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:461: error: syntax error before '*' token
mod_WebObjects.c: In function `die_resp':
mod_WebObjects.c:462: error: `r' undeclared (first use in this function)
mod_WebObjects.c:462: error: `resp' undeclared (first use in this function) mod_WebObjects.c:464: error: `DECLINED' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:467: error: syntax error before '*' token
mod_WebObjects.c: In function `die':
mod_WebObjects.c:468: error: `HTTPResponse' undeclared (first use in this function) mod_WebObjects.c:468: error: `resp' undeclared (first use in this function) mod_WebObjects.c:470: error: `WO_ERR' undeclared (first use in this function) mod_WebObjects.c:470: error: `msg' undeclared (first use in this function) mod_WebObjects.c:471: error: `status' undeclared (first use in this function)
mod_WebObjects.c:472: error: `r' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:478: error: syntax error before '*' token
mod_WebObjects.c: In function `readContentData':
mod_WebObjects.c:479: error: `request_rec' undeclared (first use in this function)
mod_WebObjects.c:479: error: `r' undeclared (first use in this function)
mod_WebObjects.c:479: error: syntax error before ')' token
mod_WebObjects.c:480: error: `dataSize' undeclared (first use in this function) mod_WebObjects.c:483: error: `dataBuffer' undeclared (first use in this function) mod_WebObjects.c:485: error: `mustFill' undeclared (first use in this function) mod_WebObjects.c:498: error: `WO_WARN' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:510: error: syntax error before "WebObjects_cmds"
mod_WebObjects.c:517: error: `RSRC_CONF' undeclared here (not in a function)
mod_WebObjects.c:519: error: initializer element is not constant
mod_WebObjects.c:519: error: (near initialization for `WebObjects_cmds[0]')
mod_WebObjects.c:527: error: initializer element is not constant
mod_WebObjects.c:527: error: (near initialization for `WebObjects_cmds[1]') mod_WebObjects.c:531: error: `WOCONFIG' undeclared here (not in a function)
mod_WebObjects.c:531: error: syntax error before string constant
mod_WebObjects.c:532: error: initializer element is not constant
mod_WebObjects.c:532: error: (near initialization for `WebObjects_cmds[2]')
mod_WebObjects.c:534: error: syntax error before ')' token
mod_WebObjects.c:538: error: `WOUSERNAME' undeclared here (not in a function)
mod_WebObjects.c:541: error: excess elements in struct initializer
mod_WebObjects.c:541: error: (near initialization for `WebObjects_cmds')
mod_WebObjects.c:545: error: `WOPASSWORD' undeclared here (not in a function)
mod_WebObjects.c:548: error: excess elements in struct initializer
mod_WebObjects.c:548: error: (near initialization for `WebObjects_cmds')
mod_WebObjects.c:552: error: `WOLOGPATH' undeclared here (not in a function)
mod_WebObjects.c:552: error: syntax error before string constant
mod_WebObjects.c:553: error: excess elements in struct initializer
mod_WebObjects.c:553: error: (near initialization for `WebObjects_cmds')
mod_WebObjects.c:555: error: excess elements in char array initializer
mod_WebObjects.c:555: error: (near initialization for `WebObjects_cmds')
mod_WebObjects.c:555: error: syntax error before ')' token
mod_WebObjects.c:559: error: `WOOPTIONS' undeclared here (not in a function)
mod_WebObjects.c:562: error: excess elements in struct initializer
mod_WebObjects.c:562: error: (near initialization for `WebObjects_cmds')
mod_WebObjects.c:563: warning: braces around scalar initializer
mod_WebObjects.c:563: warning: (near initialization for `WebObjects_cmds[3]')
mod_WebObjects.c:563: error: excess elements in struct initializer
mod_WebObjects.c:563: error: (near initialization for `WebObjects_cmds')
mod_WebObjects.c:564: error: invalid initializer
mod_WebObjects.c:564: warning: data definition has no type or storage class
mod_WebObjects.c:572: error: syntax error before '*' token
mod_WebObjects.c: In function `WebObjects_create_config':
mod_WebObjects.c:574: error: `wc' undeclared (first use in this function)
mod_WebObjects.c:577: error: syntax error before ')' token
mod_WebObjects.c:583: error: `WEBOBJECTS' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:602: error: syntax error before '*' token
mod_WebObjects.c: In function `WebObjects_post_config':
mod_WebObjects.c:604: error: `wc' undeclared (first use in this function)
mod_WebObjects.c:607: error: `s' undeclared (first use in this function)
mod_WebObjects.c:608: error: syntax error before ')' token
mod_WebObjects.c:616: error: `WO_INFO' undeclared (first use in this function) mod_WebObjects.c:619: error: `WO_ERR' undeclared (first use in this function) mod_WebObjects.c:620: error: `DECLINED' undeclared (first use in this function) mod_WebObjects.c:626: error: `OK' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:633: error: syntax error before '*' token
mod_WebObjects.c: In function `WebObjects_child_init':
mod_WebObjects.c:634: error: `s' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:649: error: syntax error before '*' token
mod_WebObjects.c: In function `WebObjects_translate':
mod_WebObjects.c:650: error: `wc' undeclared (first use in this function) mod_WebObjects.c:651: error: `WOURLComponents' undeclared (first use in this function)
mod_WebObjects.c:651: error: syntax error before "url"
mod_WebObjects.c:652: error: `WOURLError' undeclared (first use in this function)
mod_WebObjects.c:655: error: `r' undeclared (first use in this function)
mod_WebObjects.c:657: error: `WO_DBG' undeclared (first use in this function) mod_WebObjects.c:660: error: `url' undeclared (first use in this function) mod_WebObjects.c:660: error: `WOURLComponents_Initializer' undeclared (first use in this function) mod_WebObjects.c:661: error: `urlerr' undeclared (first use in this function) mod_WebObjects.c:662: error: `WOURLOK' undeclared (first use in this function) mod_WebObjects.c:662: error: `WOURLInvalidApplicationName' undeclared (first use in this function) mod_WebObjects.c:664: error: `DECLINED' undeclared (first use in this function) mod_WebObjects.c:668: error: `WO_ERR' undeclared (first use in this function) mod_WebObjects.c:676: error: `WEBOBJECTS' undeclared (first use in this function) mod_WebObjects.c:679: error: `OK' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:692: error: syntax error before '*' token
mod_WebObjects.c: In function `WebObjects_handler':
mod_WebObjects.c:694: error: `conf' undeclared (first use in this function) mod_WebObjects.c:695: error: `HTTPRequest' undeclared (first use in this function) mod_WebObjects.c:695: error: `req' undeclared (first use in this function) mod_WebObjects.c:696: error: `HTTPResponse' undeclared (first use in this function) mod_WebObjects.c:696: error: `resp' undeclared (first use in this function) mod_WebObjects.c:697: error: `WOURLComponents' undeclared (first use in this function)
mod_WebObjects.c:697: error: syntax error before "wc"
mod_WebObjects.c:701: error: `WOURLError' undeclared (first use in this function)
mod_WebObjects.c:701: error: syntax error before "urlerr"
mod_WebObjects.c:708: error: `r' undeclared (first use in this function)
mod_WebObjects.c:708: error: `WEBOBJECTS' undeclared (first use in this function) mod_WebObjects.c:709: error: `DECLINED' undeclared (first use in this function) mod_WebObjects.c:714: error: `WO_INFO' undeclared (first use in this function) mod_WebObjects.c:716: error: `WO_ERR' undeclared (first use in this function) mod_WebObjects.c:720: error: `urlerr' undeclared (first use in this function) mod_WebObjects.c:720: error: `wc' undeclared (first use in this function) mod_WebObjects.c:721: error: `WOURLOK' undeclared (first use in this function) mod_WebObjects.c:722: error: `WO_DBG' undeclared (first use in this function) mod_WebObjects.c:725: warning: assignment makes pointer from integer without a cast mod_WebObjects.c:727: error: `WOURLInvalidApplicationName' undeclared (first use in this function) mod_WebObjects.c:733: error: `OK' undeclared (first use in this function) mod_WebObjects.c:735: error: `HTTP_SERVER_ERROR' undeclared (first use in this function) mod_WebObjects.c:737: error: `HTTP_NOT_FOUND' undeclared (first use in this function) mod_WebObjects.c:739: error: `HTTP_BAD_REQUEST' undeclared (first use in this function) mod_WebObjects.c:743: error: `REQUEST_CHUNKED_ERROR' undeclared (first use in this function) mod_WebObjects.c:758: warning: assignment makes pointer from integer without a cast mod_WebObjects.c:775: error: `req_getMoreContentCallback' undeclared (first use in this function)
mod_WebObjects.c:775: error: syntax error before "readContentData"
mod_WebObjects.c:778: error: `ALLOCATION_FAILURE' undeclared (first use in this function) mod_WebObjects.c:783: error: `WOURLInvalidPostData' undeclared (first use in this function)
mod_WebObjects.c:795: error: syntax error before ')' token
mod_WebObjects.c: At top level:
mod_WebObjects.c:830: error: syntax error before '*' token
mod_WebObjects.c: In function `WebObjects_register_hooks':
mod_WebObjects.c:832: error: `APR_HOOK_MIDDLE' undeclared (first use in this function) mod_WebObjects.c:833: error: `APR_HOOK_FIRST' undeclared (first use in this function)
mod_WebObjects.c: At top level:
mod_WebObjects.c:845: error: syntax error before "AP_MODULE_DECLARE_DATA" mod_WebObjects.c:847: error: `STANDARD20_MODULE_STUFF' undeclared here (not in a function)
mod_WebObjects.c:847: error: initializer element is not constant
mod_WebObjects.c:847: error: (near initialization for `WebObjects_module')
mod_WebObjects.c:848: warning: excess elements in scalar initializer
mod_WebObjects.c:848: warning: (near initialization for `WebObjects_module')
mod_WebObjects.c:849: warning: excess elements in scalar initializer
mod_WebObjects.c:849: warning: (near initialization for `WebObjects_module')
mod_WebObjects.c:850: warning: excess elements in scalar initializer
mod_WebObjects.c:850: warning: (near initialization for `WebObjects_module')
mod_WebObjects.c:851: warning: excess elements in scalar initializer
mod_WebObjects.c:851: warning: (near initialization for `WebObjects_module')
mod_WebObjects.c:852: warning: excess elements in scalar initializer
mod_WebObjects.c:852: warning: (near initialization for `WebObjects_module')
mod_WebObjects.c:854: warning: excess elements in scalar initializer
mod_WebObjects.c:854: warning: (near initialization for `WebObjects_module') mod_WebObjects.c:854: warning: data definition has no type or storage class
---------------------------------------------------------------------------------------------

        Any help would be appreciated.

Thanks,
Raghu.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to