I have installed midgard-lib and midgard-data and am now trying to install mod_midgard with very little success.
Below is the result of 'make' :
Please can anyone help.
diane
/etc/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache2 -I/usr/include/apache2 -I/usr/include/apache2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/mysql -I/usr/local/include -DHAVE_LIBMIDGARD=1 -DHAVE_MIDGARD_H=1 -c -o mod_midgard.lo mod_midgard.c && touch mod_midgard.slo
In file included from mod_midgard.c:24:
/usr/local/include/midgard/apache.h:77: parse error before `pool'
/usr/local/include/midgard/apache.h:77: warning: no semicolon at end of struct or union
/usr/local/include/midgard/apache.h:102: parse error before `*'
/usr/local/include/midgard/apache.h:102: warning: data definition has no type or storage class
/usr/local/include/midgard/apache.h:104: parse error before `*'
/usr/local/include/midgard/apache.h:104: warning: data definition has no type or storage class
/usr/local/include/midgard/apache.h:112: parse error before `}'
/usr/local/include/midgard/apache.h:112: warning: data definition has no type or storage class
In file included from mod_midgard.c:25:
select_db.h:30: parse error before `midgard_request_config'
select_db.h: In function `mgd_select_database':
select_db.h:32: `dbc' undeclared (first use in this function)
select_db.h:32: (Each undeclared identifier is reported only once
select_db.h:32: for each function it appears in.)
select_db.h:32: `rcfg' undeclared (first use in this function)
select_db.h:34: `r' undeclared (first use in this function)
select_db.h:35: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
select_db.h:39: `assert_conn' undeclared (first use in this function)
select_db.h:53: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
select_db.h:58: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
select_db.h:68: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
select_db.h:72: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
select_db.h:89: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c: At top level:
mod_midgard.c:55: parse error before `*'
mod_midgard.c:78: parse error before `midgard_module'
mod_midgard.c:78: warning: data definition has no type or storage class
mod_midgard.c:80: parse error before `*'
mod_midgard.c: In function `verify_user':
mod_midgard.c:89: `rcfg' undeclared (first use in this function)
mod_midgard.c:100: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:103: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:103: too few arguments to function `ap_log_rerror'
mod_midgard.c:106: warning: assignment makes pointer from integer without a cast
mod_midgard.c:117: warning: assignment makes pointer from integer without a cast
mod_midgard.c:118: warning: assignment makes pointer from integer without a cast
mod_midgard.c:122: warning: assignment makes pointer from integer without a cast
mod_midgard.c:123: warning: assignment makes pointer from integer without a cast
mod_midgard.c: At top level:
mod_midgard.c:133: parse error before `*'
mod_midgard.c: In function `mgd_find_pageblob':
mod_midgard.c:140: `rcfg' undeclared (first use in this function)
mod_midgard.c:142: `dcfg' undeclared (first use in this function)
mod_midgard.c:143: warning: unreachable code at beginning of switch statement
mod_midgard.c:153: `name' undeclared (first use in this function)
mod_midgard.c:153: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:173: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:186: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:205: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c: At top level:
mod_midgard.c:210: parse error before `pool'
mod_midgard.c: In function `midgard_child_init':
mod_midgard.c:214: `p' undeclared (first use in this function)
mod_midgard.c: In function `midgard_disconnect_all':
mod_midgard.c:240: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_midgard.c:240: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_midgard.c:240: warning: passing arg 6 of `ap_log_error' makes pointer from integer without a cast
mod_midgard.c: At top level:
mod_midgard.c:285: parse error before `pool'
mod_midgard.c: In function `midgard_child_exit':
mod_midgard.c:287: `s' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:290: parse error before `pool'
mod_midgard.c: In function `midgard_module_init':
mod_midgard.c:294: `p' undeclared (first use in this function)
mod_midgard.c:294: warning: assignment makes pointer from integer without a cast
mod_midgard.c:295: warning: passing arg 1 of `ap_add_version_component' from incompatible pointer type
mod_midgard.c:295: too few arguments to function `ap_add_version_component'
mod_midgard.c:301: `s' undeclared (first use in this function)
mod_midgard.c:301: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_midgard.c:301: too few arguments to function `ap_log_error'
mod_midgard.c:314: warning: assignment makes pointer from integer without a cast
mod_midgard.c: At top level:
mod_midgard.c:321: parse error before `*'
mod_midgard.c: In function `midgard_get_database_connection':
mod_midgard.c:333: incompatible type for argument 1 of `__rawmemchr'
mod_midgard.c:333: incompatible type for argument 1 of `strchr'
mod_midgard.c:335: incompatible types in assignment
mod_midgard.c:336: incompatible types in assignment
mod_midgard.c:350: `username' undeclared (first use in this function)
mod_midgard.c:352: `password' undeclared (first use in this function)
mod_midgard.c:357: wrong type argument to unary exclamation mark
mod_midgard.c:357: invalid operands to binary !=
mod_midgard.c:357: incompatible type for argument 1 of `strlen'
mod_midgard.c:357: invalid operands to binary +
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: invalid operands to binary +
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: incompatible type for argument 1 of `strlen'
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: invalid operands to binary +
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: cannot convert to a pointer type
mod_midgard.c:357: incompatible type for argument 1 of `strcmp'
mod_midgard.c:384: invalid operands to binary +
mod_midgard.c:384: cannot convert to a pointer type
mod_midgard.c:384: cannot convert to a pointer type
mod_midgard.c:384: incompatible type for argument 1 of `strlen'
mod_midgard.c:384: incompatible type for argument 2 of `memcpy'
mod_midgard.c:384: incompatible type for argument 1 of `__strdup'
mod_midgard.c: At top level:
mod_midgard.c:397: parse error before `*'
mod_midgard.c: In function `midgard_create_directory_config':
mod_midgard.c:400: `p' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:416: parse error before `*'
mod_midgard.c: In function `midgard_merge_directory_config':
mod_midgard.c:418: `base' undeclared (first use in this function)
mod_midgard.c:419: `new' undeclared (first use in this function)
mod_midgard.c:421: `p' undeclared (first use in this function)
mod_midgard.c:432: warning: assignment makes pointer from integer without a cast
mod_midgard.c:435: warning: assignment makes pointer from integer without a cast
mod_midgard.c:437: warning: assignment makes pointer from integer without a cast
mod_midgard.c:442: warning: assignment makes pointer from integer without a cast
mod_midgard.c:444: warning: assignment makes pointer from integer without a cast
mod_midgard.c: At top level:
mod_midgard.c:449: parse error before `*'
mod_midgard.c: In function `midgard_create_server_config':
mod_midgard.c:452: `p' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:464: parse error before `*'
mod_midgard.c: In function `midgard_merge_server_config':
mod_midgard.c:466: `base' undeclared (first use in this function)
mod_midgard.c:467: `new' undeclared (first use in this function)
mod_midgard.c:469: `p' undeclared (first use in this function)
mod_midgard.c:473: warning: assignment makes pointer from integer without a cast
mod_midgard.c: In function `midgard_main_db_cmd':
mod_midgard.c:502: request for member `module_index' in something not a structure or union
mod_midgard.c: In function `midgard_page_db_cmd':
mod_midgard.c:516: request for member `module_index' in something not a structure or union
mod_midgard.c: In function `midgard_auth_db_cmd':
mod_midgard.c:530: request for member `module_index' in something not a structure or union
mod_midgard.c: In function `midgard_template_cmd':
mod_midgard.c:589: warning: assignment makes pointer from integer without a cast
mod_midgard.c: In function `midgard_realm_cmd':
mod_midgard.c:609: request for member `module_index' in something not a structure or union
mod_midgard.c:612: warning: assignment makes pointer from integer without a cast
mod_midgard.c: In function `midgard_parser_cmd':
mod_midgard.c:627: warning: assignment makes pointer from integer without a cast
mod_midgard.c: In function `midgard_pagecache_cmd':
mod_midgard.c:637: request for member `module_index' in something not a structure or union
mod_midgard.c:640: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_midgard.c:640: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
mod_midgard.c:640: too few arguments to function `ap_log_error'
mod_midgard.c: In function `midgard_create_request_config':
mod_midgard.c:647: `rcfg' undeclared (first use in this function)
mod_midgard.c:647: parse error before `)'
mod_midgard.c: At top level:
mod_midgard.c:695: parse error before `midgard_request_config'
mod_midgard.c:695: warning: no semicolon at end of struct or union
mod_midgard.c:698: parse error before `*'
mod_midgard.c: In function `midgard_get_host':
mod_midgard.c:704: `ftstatus' undeclared (first use in this function)
mod_midgard.c:706: `rcfg' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:765: parse error before `*'
mod_midgard.c: In function `midgard_get_elements':
mod_midgard.c:771: `rcfg' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:783: parse error before `*'
mod_midgard.c: In function `midgard_style_walk':
mod_midgard.c:792: `rcfg' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:804: parse error before `*'
mod_midgard.c: In function `midgard_get_pelements':
mod_midgard.c:810: `rcfg' undeclared (first use in this function)
mod_midgard.c:811: `inherit' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:823: parse error before `midgard_request_config'
mod_midgard.c: In function `midgard_find_pathelement':
mod_midgard.c:831: `rcfg' undeclared (first use in this function)
mod_midgard.c:835: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:918: `dcfg' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:945: parse error before `*'
mod_midgard.c: In function `midgard_page_walk':
mod_midgard.c:953: `rcfg' undeclared (first use in this function)
mod_midgard.c:960: warning: assignment makes pointer from integer without a cast
mod_midgard.c:963: warning: assignment makes pointer from integer without a cast
mod_midgard.c:980: `dcfg' undeclared (first use in this function)
mod_midgard.c:1007: warning: assignment makes pointer from integer without a cast
mod_midgard.c: At top level:
mod_midgard.c:1078: parse error before `*'
mod_midgard.c: In function `midgard_authenticate':
mod_midgard.c:1082: `rcfg' undeclared (first use in this function)
mod_midgard.c:1090: `AUTH_REQUIRED' undeclared (first use in this function)
mod_midgard.c: In function `mod_mgd_ft_filename':
mod_midgard.c:1111: dereferencing pointer to incomplete type
mod_midgard.c: In function `mod_mgd_ft_signal':
mod_midgard.c:1121: dereferencing pointer to incomplete type
mod_midgard.c:1125: dereferencing pointer to incomplete type
mod_midgard.c:1129: dereferencing pointer to incomplete type
mod_midgard.c:1134: dereferencing pointer to incomplete type
mod_midgard.c:1136: dereferencing pointer to incomplete type
mod_midgard.c:1136: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1141: dereferencing pointer to incomplete type
mod_midgard.c:1143: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1143: warning: passing arg 6 of `ap_log_rerror' makes pointer from integer without a cast
mod_midgard.c: In function `mod_mgd_ft_element':
mod_midgard.c:1154: dereferencing pointer to incomplete type
mod_midgard.c:1155: dereferencing pointer to incomplete type
mod_midgard.c: In function `midgard_translate_handler':
mod_midgard.c:1304: `rcfg' undeclared (first use in this function)
mod_midgard.c:1305: parse error before `const'
mod_midgard.c:1322: request for member `module_index' in something not a structure or union
mod_midgard.c:1329: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1329: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1342: `subreq' undeclared (first use in this function)
mod_midgard.c:1342: too few arguments to function `ap_sub_req_lookup_uri'
mod_midgard.c:1345: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1345: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1355: request for member `module_index' in something not a structure or union
mod_midgard.c:1360: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1360: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1365: parse error before `)'
mod_midgard.c:1376: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1376: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1381: `parser' undeclared (first use in this function)
mod_midgard.c:1392: `ftstatus' undeclared (first use in this function)
mod_midgard.c:1396: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1396: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1421: `AUTH_REQUIRED' undeclared (first use in this function)
mod_midgard.c:1426: `uri' undeclared (first use in this function)
mod_midgard.c:1450: invalid type argument of `->'
mod_midgard.c:1450: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1450: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1465: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1465: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1434: warning: unreachable code at beginning of switch statement
mod_midgard.c:1470: request for member `module_index' in something not a structure or union
mod_midgard.c: In function `midgard_type_checker':
mod_midgard.c:1480: `rcfg' undeclared (first use in this function)
mod_midgard.c:1480: parse error before `)'
mod_midgard.c:1481: request for member `module_index' in something not a structure or union
mod_midgard.c: In function `midgard_host_auth':
mod_midgard.c:1507: storage size of `ftstatus' isn't known
mod_midgard.c:1508: `midgard_request_config' undeclared (first use in this function)
mod_midgard.c:1508: parse error before `rcfg'
mod_midgard.c:1515: request for member `module_index' in something not a structure or union
mod_midgard.c:1521: request for member `module_index' in something not a structure or union
mod_midgard.c:1527: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1527: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1531: `rcfg' undeclared (first use in this function)
mod_midgard.c:1548: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1548: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1561: `AUTH_REQUIRED' undeclared (first use in this function)
mod_midgard.c: At top level:
mod_midgard.c:1577: warning: initialization from incompatible pointer type
mod_midgard.c:1579: warning: initialization from incompatible pointer type
mod_midgard.c:1581: warning: initialization from incompatible pointer type
mod_midgard.c:1583: warning: initialization from incompatible pointer type
mod_midgard.c:1585: warning: initialization from incompatible pointer type
mod_midgard.c:1587: warning: initialization from incompatible pointer type
mod_midgard.c:1589: warning: initialization from incompatible pointer type
mod_midgard.c:1591: warning: initialization from incompatible pointer type
mod_midgard.c:1593: warning: initialization from incompatible pointer type
mod_midgard.c:1595: warning: initialization from incompatible pointer type
mod_midgard.c:1597: warning: initialization from incompatible pointer type
mod_midgard.c:1599: warning: initialization from incompatible pointer type
mod_midgard.c:1601: warning: initialization from incompatible pointer type
mod_midgard.c:1606: parse error before `midgard_module'
mod_midgard.c:1607: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_midgard.c:1607: initializer element is not constant
mod_midgard.c:1607: (near initialization for `midgard_module')
mod_midgard.c:1608: warning: excess elements in scalar initializer
mod_midgard.c:1608: warning: (near initialization for `midgard_module')
mod_midgard.c:1609: warning: excess elements in scalar initializer
mod_midgard.c:1609: warning: (near initialization for `midgard_module')
mod_midgard.c:1610: warning: excess elements in scalar initializer
mod_midgard.c:1610: warning: (near initialization for `midgard_module')
mod_midgard.c:1611: warning: excess elements in scalar initializer
mod_midgard.c:1611: warning: (near initialization for `midgard_module')
mod_midgard.c:1612: warning: excess elements in scalar initializer
mod_midgard.c:1612: warning: (near initialization for `midgard_module')
mod_midgard.c:1613: warning: excess elements in scalar initializer
mod_midgard.c:1613: warning: (near initialization for `midgard_module')
mod_midgard.c:1614: warning: excess elements in scalar initializer
mod_midgard.c:1614: warning: (near initialization for `midgard_module')
mod_midgard.c:1615: warning: excess elements in scalar initializer
mod_midgard.c:1615: warning: (near initialization for `midgard_module')
mod_midgard.c:1616: warning: excess elements in scalar initializer
mod_midgard.c:1616: warning: (near initialization for `midgard_module')
mod_midgard.c:1617: warning: excess elements in scalar initializer
mod_midgard.c:1617: warning: (near initialization for `midgard_module')
mod_midgard.c:1618: warning: excess elements in scalar initializer
mod_midgard.c:1618: warning: (near initialization for `midgard_module')
mod_midgard.c:1619: warning: excess elements in scalar initializer
mod_midgard.c:1619: warning: (near initialization for `midgard_module')
mod_midgard.c:1620: warning: excess elements in scalar initializer
mod_midgard.c:1620: warning: (near initialization for `midgard_module')
mod_midgard.c:1621: warning: excess elements in scalar initializer
mod_midgard.c:1621: warning: (near initialization for `midgard_module')
mod_midgard.c:1623: warning: excess elements in scalar initializer
mod_midgard.c:1623: warning: (near initialization for `midgard_module')
mod_midgard.c:1626: warning: excess elements in scalar initializer
mod_midgard.c:1626: warning: (near initialization for `midgard_module')
mod_midgard.c:1629: warning: excess elements in scalar initializer
mod_midgard.c:1629: warning: (near initialization for `midgard_module')
mod_midgard.c:1634: warning: excess elements in scalar initializer
mod_midgard.c:1634: warning: (near initialization for `midgard_module')
mod_midgard.c:1634: warning: data definition has no type or storage class
mod_midgard.c: In function `mgd_get_basic_auth_pw':
mod_midgard.c:1646: warning: initialization makes pointer from integer without a cast
mod_midgard.c:1651: `AUTH_REQUIRED' undeclared (first use in this function)
mod_midgard.c:1658: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1658: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1671: warning: assignment makes pointer from integer without a cast
mod_midgard.c: In function `mgd_set_apache_auth_env':
mod_midgard.c:1686: structure has no member named `user'
mod_midgard.c:1687: structure has no member named `ap_auth_type'
mod_midgard.c: In function `mgd_note_basic_auth_failure':
mod_midgard.c:1702: warning: assignment makes pointer from integer without a cast
mod_midgard.c:1713: warning: assignment makes pointer from integer without a cast
mod_midgard.c:1716: warning: passing arg 4 of `ap_log_rerror' makes integer from pointer without a cast
mod_midgard.c:1716: warning: passing arg 5 of `ap_log_rerror' from incompatible pointer type
mod_midgard.c:1716: warning: passing arg 6 of `ap_log_rerror' makes pointer from integer without a cast
mod_midgard.c:1722: warning: assignment makes pointer from integer without a cast
apxs:Error: Command failed with rc=65536
.
make: *** [mod_midgard.so] Error 1
oriental cats persia
www.minihub.org
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
