The following error sequence occurs when compiling midgard-php4 on RH9/php
4.3.4/Apache/1.3.29 after an apparently successful ./configure :

"midgard.lo
gcc -I. -I/usr/src/redhat/SOURCES/midgard/midgard-php4-1.5.0 -DPHP_ATOM_INC 
-I/usr/src/redhat/SOURCES/midgard/midgard-php4-1.5.0/include -I/usr/src/redh
at/SOURCES/midgard/midgard-php4-1.5.0/main -I/usr/src/redhat/SOURCES/midgard
/midgard-php4-1.5.0 -I/usr/include/php -I/usr/include/php/main -I/usr/includ
e/php/Zend -I/usr/include/php/TSRM -I/usr/include/httpd -I/usr/include/glib-
1.2 -I/usr/lib/glib/include -I/usr/include/mysql -I/usr/local/include -DHAVE
_CONFIG_H -g -O2 -c
/usr/src/redhat/SOURCES/midgard/midgard-php4-1.5.0/midgard.c  -fPIC -DPIC -o
midgard.lo
In file included from
/usr/src/redhat/SOURCES/midgard/midgard-php4-1.5.0/php_midgard.h:38,
                 from
/usr/src/redhat/SOURCES/midgard/midgard-php4-1.5.0/midgard.c:25:
/usr/local/include/midgard/apache.h:69: parse error before "table"
/usr/local/include/midgard/apache.h:79: parse error before "pool"
/usr/local/include/midgard/apache.h:104: parse error before '*' token
/usr/local/include/midgard/apache.h:106: parse error before '*' token
/usr/local/include/midgard/apache.h:107: parse error before '*' token
/usr/local/include/midgard/apache.h:114: parse error before '}' token"

I do notice a problem with the Apxs path in as recorded by config.log. It is
installed in usr/local/apache/bin/apxs which I designated on the command
line --with-apxs=/usr/local/apache/bin/apxs when running through the mkall
algorithm manually, but the logfile is showing the path to be
APXS='/usr/sbin/apxs'. I think this is an unrelated problem, the parse
errors appear to be related to gcc, which is gcc-3.2.2-5. I'm wondering if
it's actually formatted improperly or the compiler is misinterpreting it. I
can't see any reason that the lines should be tripping things up. Here are
the lines causing the first few errors:

/////// begin sample code
typedef struct _server_config
{
 char *default_realm;

   struct {
    midgard_database_connection* page;
    midgard_database_connection* auth;
    midgard_database_connection* main;
   } database;

   struct {
      int on, set;
   } forcedroot;

 char *pagecache;
        char *ntlm_auth;
 table *ntlm_map_domains;   --- LINE 69
}
midgard_server_config;

#define MGD_AUTH_SNOOP_NONE   0
#define MGD_AUTH_SNOOP_OK     1
#define MGD_AUTH_SNOOP_FAILED 2

typedef struct _request_config {
 request_rec *req;
 pool        *pool;         --- LINE 79
 midgard     *mgd;

 int host, style;
 int author;

   struct {
      int required;
      int passed;
      int cookie;
   } auth;

   int prelen;
   int self_len;

   struct {
      int status; /*[eeh] obsolete in mod2 */
      int id; /*[eeh] rename to page for mod2 */
      int type; /*[eeh] obsolete in mod2 */
      int active_page; /*[eeh] obsolete in mod2 */
    const char *content_type;
   } resource;

   const char *path; /*[eeh] obsolete in mod2 */

 array_header *argv;       ---LINE 104

 table *elements;                    ---LINE 106
 midgard_server_config *scfg;   ---LINE 107

   struct {
      midgard_database_connection* current;
      midgard_database_connection* page;
      midgard_database_connection* main;
   } database;
} midgard_request_config;

////// end sample code

This same exact parsing error sequence was reported earlier in this list by
Ivan Guvinec on 8/29/2003 compiling on a Gentoo box.

Any ideas would be greatly appreciated. Phpinfo is available for inspection
http://www.alpheta.net/phpinfo.php.

Thanks,
Don Holeman
Alpheta Online Hosting
www.alpheta.net


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to